Q Function

版本 1.0.0.0 (1.0 KB) 作者: Timothy Felty
The Q Function implemented as integegraion of density function.
7.2K 次下载
更新时间 2005/6/28

查看许可证

This function computes the Q function by integrating the Normal distribution.

It takes one paramter and calculates the right tail probablity.
Ex. x=q(0)
x would have the value of .5

For an arbitrary Gaussian distribution with mean, mu, and variance, sigma^2, then the function is passed this form.
((y-mu)/sigma)

Ex. Say you have a distribution of G(3,4). mu = 3, and sigma = 2. You want to calculate the right tail probability that it will be greater than 3.5. The function call would look like
answer=q((3.5-3)/2);

This is not the most efficient way of calculating this. I wrote this because I didn't have the proper toolbox. If you have the toolbox its just QFunc.

引用格式

Timothy Felty (2024). Q Function (https://www.mathworks.com/matlabcentral/fileexchange/7920-q-function), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R13
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Statistics and Machine Learning Toolbox 的更多信息

Community Treasure Hunt

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

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