How to find conditional probability ๐‘ท๐’“{๐’€ = ๐’š|๐‘ฟ = ๐’™}

I have this Excel sheet(attached) and a want to find conditional probability ??{? = ?|? = 0}
my code is
[num]=xlsread('Book1.xlsx');
x=num(:,3); %picked c column X
y=num(:,4); %picked d column Y
Min and Max value of both column is from 0 to 23 respectively
How cant i find the vaue of Y if X=0 for entire column

๋‹ต๋ณ€ (1๊ฐœ)

madhan ravi
madhan ravi 2018๋…„ 12์›” 22์ผ

1 ๊ฐœ ์ถ”์ฒœ

y(x==0)

๋Œ“๊ธ€ ์ˆ˜: 3

madhan ravi
madhan ravi 2018๋…„ 12์›” 22์ผ
Faheem Rehman's answer moved here for consistency:
how can it done by bayes law
P(y/x=0) = P(x=0 / y=0-23) P(y=0-23) / P(x=0)
madhan ravi
madhan ravi 2018๋…„ 12์›” 22์ผ
To be frank I have no experience with that though download the below file exchange and see if it helps:
john karli
john karli 2018๋…„ 12์›” 22์ผ
ok

๋Œ“๊ธ€์„ ๋‹ฌ๋ ค๋ฉด ๋กœ๊ทธ์ธํ•˜์‹ญ์‹œ์˜ค.

์นดํ…Œ๊ณ ๋ฆฌ

๋„์›€๋ง ์„ผํ„ฐ ๋ฐ File Exchange์—์„œ MATLAB์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์•Œ์•„๋ณด๊ธฐ

ํƒœ๊ทธ

์งˆ๋ฌธ:

2018๋…„ 12์›” 22์ผ

๋Œ“๊ธ€:

2018๋…„ 12์›” 22์ผ

Community Treasure Hunt

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

Start Hunting!

Translated by