Download Mathematical Statistics with Mathematica - 2002 edition

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Document related concepts

History of statistics wikipedia , lookup

Statistics wikipedia , lookup

Transcript
§5.2 B
5.2 B
SYSTEMS OF DISTRIBUTIONS
151
Fitting Pearson Densities
This section illustrates how to construct a Pearson distribution that is consistent with a set
of data whose first four moments are known. With mathStatica, this is a two step process:
Use PearsonPlot@8m2 , m3 , m4 <D to ascertain which Pearson Type is consistent
with the data.
(ii) If it is say Type III, then PearsonIII@m, 8m2 , m3 , m4 <, xD yields the desired
density function f HxL (and its domain).
(i)
The full set of functions is:
PearsonI
PearsonV
PearsonII
PearsonVI
PearsonIII
PearsonVII
PearsonIV
In the following examples, we categorise data as follows:
^ Is it population data or sample data?
^ Is it raw data or grouped data?
Example 1: Fitting a Pearson Density to Raw Population Data
The marks.dat data set lists the final marks of all 891 first year students in the
Department of Econometrics at the University of Sydney in 1996. It is raw data because it
has not been grouped or altered in any way, and may be thought of as population data (as
opposed to sample data) because the entire populationJs results are listed in the data set.
To proceed, we first load the data set into Mathematica:
data = ReadList@"marks.dat"D;
and then find its mean:
mean = SampleMean@dataD êê N
58.9024
We can use the mathStatica function FrequencyPlot to get an intuitive visual
perspective on this data set:
FrequencyPlot@dataD;
140
120
100
80
60
40
20
0
20
40
60
80
Fig. 2: Frequency polygon of student marks