pcond

Conditional probability.
2.0K 次下载
更新时间 2009/8/31

查看许可证

Conditional probability is the probability of some event A, given the occurrence of some other event B. Conditional probability is written P(A|B), and is read 'the probability of A, given B'.

It is calculated as,

P(AB)
P(A|B) = --------
P(B)

P(AB) is the probability of the intersection of the events.

Syntax: function x = pcond(a,b,c)

Inputs:
a - Event A data vector (option=1) or probability of event A (option~=1)
b - Event B data vector (option=1) or probability of event B (option~=1)
c - Option 1=data vectors (default), option ~1=probability values

Outputs:
- Ask you if you are interested to know if the events(sets) are independent or not
- Conditional probability

引用格式

Antonio Trujillo-Ortiz (2024). pcond (https://www.mathworks.com/matlabcentral/fileexchange/25184-pcond), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R14
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Linear Regression 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1.0.0

It was added an appropriate format to cite this file.

1.0.0.0