how to calculate the expected support?

2 次查看(过去 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 个)

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

标签

产品


版本

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by