Calculate and visualize the probability distribution of univariate or bivariate data directly from Excel file. Numerical techniques have been implemented in MATLAB and incorporated with MATLAB graphical user interface (GUI) for user-friendly manipulation.
- Execute ProbDistGUI.m file and a GUI window will appear
- Load any of the files from
Data\
folder - For univariate data, only Plot and Hist buttons work
- Surf and Contourf buttons are for bivariate data
- To calculate the probability click on Probability button and another smaller window will appear to take the ranges of integration to calculate the probability
Here are the explanations of buttons in a nutshell.
- Plot: It plots the probability density function for univariate data but for bivariate data it only plots the data value.
- Hist: It plots the histogram of the data for both univariate and bivariate data.
- Surf: It plots the 3D surface plot of the probability density function of bivariate data.
- Contourf: It plots the contour plot of bivariate data.
Adaptive trapezoidal rule is a numerical approach to calculate the definite integral. To calculate the probability of the normal distribution, the area of under the normal curve, requires calculating the value of following single and double definite integral.
Probability distribution for univariate data:
Probability distribution function for bivariate data and the double integral of the function:
For more detail information, please go through the report.