Important: The stats package has been deprecated. Use the superseding package Statistics instead.
>
|
|
| (1) |
| (2) |
The following is an extended example where a list of numbers will be randomly generated, used in a histogram which will be compared to the theoretical distribution. Generate 300 numbers (reduce this number for faster results), randomly generated with a normal distribution
>
|
|
Sort the data.
>
|
|
Number of lists is set to 5 (increase it for a better resolution, but ensure there are enough points in the list).
Split into lists of equal weight.
>
|
|
Obtain classes of equal weight from those lists. Make the total weight equal to 1.
>
|
|
Construct histogram:
>
|
|
Create a theoretical curve
>
|
|
Display both the theoretical curve and the histogram.
>
|
|