I want to example goodnes of fit and quantile-quantile plots byR Programe.
Solution
Constructing Quantile-Quantile Plots to Check Goodnessof Fit
The following steps will build a Q-Q plot to check how well adata set fits a particular theoretical distribution. This is themost common purpose for Q-Q plots.
- Sort the data from smallest to largest. These are thequantiles.
- Compute evenly spaced pointson the interval (0,1), where is the sample size.These points are the cumulative probabilities for the quantiles.They will be used to calculate the quantiles for the theoreticaldistribution. Notice that I have purposefully used
OROR