how to calculate the expected support?

조회 수: 1 (최근 30일)
Mira le
Mira le 2021년 7월 27일
Hello every one
I have a database
D
12 20 12 3 15
12 100 5 4 10
100 12 20 45 103
each value in D has its corresponding probability like this
D1
0.2 0.9 0.5 1 0.6
0.7 0.1 0.6 0.9 0.4
0.8 0.3 0.1 0.2 0.2
I want to calculate the expected support wchich is computed as follow:
for example:
expected support(12)=0.2+0.7+0.3=1.2 (each individual calculate as the sum of its probability in the whole database)
expected support (12,20) we compute this by the sum of the product of the probability of 12 and 20
so
expected support(12,20)=(0.2*0.9)+(0.3*0.2)=0.24
I want to implement this in matlab which the source code is fast and simple
Thank you

답변 (0개)

카테고리

Help CenterFile Exchange에서 Database Toolbox에 대해 자세히 알아보기

태그

제품


릴리스

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by