how to calculate the expected support?

2 Ansichten (letzte 30 Tage)
Mira le
Mira le am 27 Jul. 2021
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

Antworten (0)

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by