how to calculate the expected support?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Database Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!