probability distribution function (normal distribution) (Scripts) Publisher's description
from Sherif Omran
This function calculates the probability under the normal distribution curve, plots the graph and the area calculated
This function calculates the probability under the normal distribution curve, plots the graph and the area calculated.
calculating the area under a normal distribution curve
from -ve infinity upto point x.
x : point on the normal distribution curve
mean : mean of the normal distribution curve
sigma : standard deviation of the normal distribution curve
(hint: normal dist mean=0, sigma=1)
plotting: Plot the calculated area if plotting = 1
Output: area under the curve.
x=[-20:20] % your data points
sigma=length(x)/2/3.5 % PDF width is 3.5 sigma
mean=0 % mean between -20 and 20
normaldistribution(0, mean, sigma,1) % Calculate area from -inf to 0
University and university hospital of Zurich
Date: May 2009
Part of my phd thesis:
System Requirements:MATLAB 7.6 (R2008a)
Program Release Status: New Release
Program Install Support: Install and Uninstall