how to calculate the expected support?

1 visualización (últimos 30 días)
Mira le
Mira le el 27 de Jul. de 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

Respuestas (0)

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by