


































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



































OPRE 6301
In the previous session, we used graphical techniques to describe data. For example:
While this histogram provides useful insight, other inter- esting questions are left unanswered. The most important ones are:
What is the class “average”? What is the “spread” of the marks?
The arithmetic mean, a.k.a. average, shortened to mean, is the most popular and useful measure of central location.
It is computed by simply adding up all the observations and dividing by the total number of observations:
Mean =
Sum of the Observations Number of Observations
To define things formally, we need a bit of notation...
When referring to the number of observations in a pop- ulation, we use uppercase letter N.
When referring to the number of observations in a sam- ple, we use lower case letter n.
The arithmetic mean for a population is denoted by the Greek letter “mu”: μ.
The arithmetic mean for a sample is denoted by “x- bar”: ¯x.
Thus,
Population Sample Size N n Mean μ x¯
The formal definitions of μ and ¯x are:
μ ≡
i=
xi
and
x¯ ≡
n
∑^ n
i=
xi ,
where xi denotes the ith value in the population or in the sample.
For a population that is described by a probability den- sity function f (x), we have:
μ ≡
−∞
xf (x) dx. (2)
To motivate this, observe that (1) can be written as:
x¯ =
k=
m(k) p(k) ,
where p(k) ≡ f (k)/n denotes the kth relative frequency. Now, if f (x) is a probability density, then “f (x) dx” ap- proximately equals the probability for a random sample from the population to fall in the interval (x, x + dx). Replacing the sum by an integral then yields (2).
As a simple example, consider the uniform density, which has f (x) = 1 for x in the interval (0, 1). Then,
μ =
0
x · 1 dx =
x^2
1
0
The Excel function RAND() generates (pseudo) samples, or realizations, from this theoretical density.
Pooled Mean
We often pool two data sets together. Let the sizes of two samples be n 1 and n 2 ; and let the respective sample means be ¯x 1 and ¯x 2. Suppose the two samples are pooled together to form one of size n 1 + n 2. Can we determine the mean of the combined group? The answer is:
x¯pooled =
n 1 x¯ 1 + n 2 x¯ 2 n 1 + n 2
Example: Suppose we have n 1 = 50, ¯x 1 = $15, n 2 = 100, and ¯x 2 = $17. These are samples of hourly wages. Then, the pooled average wage of the combined 150 individuals is:
50 · 15 + 100 · 17 50 + 100
The above readily extends to any number of data sets.
Finding the median is a two-step process. First, arrange all observations in ascending order; then, identify the ob- servation that is located in the middle.
Example 1: n is odd.
Data = {3, -1, 6, 10, 11} Ordered Data = {-1, 3, 6, 10, 11} Median = 6 Thus, the median is the value at position (n + 1)/2.
Example 2: n is even.
Data = {3, -1, 6, 10, 11, 7} Ordered Data = {-1, 3, 6, 7, 10, 11} Median = any value between 6 and 7. The usual conven- tion is to take the average of these two values, yielding 6.5. Thus, the median is the average of the two values at positions n/2 and (n/2) + 1.
Comments
From the F (k) column, we see that the 30th and the 31th observations (n is even in this case) lie in the inter- val (353. 5 , 356 .5]. Since we have 20 observations in this interval, we now make the following assumption:
The data points in a bin are equi-spaced.
It follows that the 30th value is approximately at
353 .5 + 10 · (3/20) = 355.
Similarly, the 31th value ≈ 355 .15 (the notation ≈ de- notes an approximation).
Hence, the median ≈ (355 + 355.15)/2 = 355.075.
Theoretical Density
Let f (x) be the probability density function that de- scribes a population. Denote the median by μmed. Then, μmed satisfies the integral equation:
∫ (^) μmed
−∞
f (x) dx = 0.5. (3)
For a standard f (x), this can be read from a table. Excel can also be used.
Equation (3) can be visualized as follows. First, compute
F (y) ≡
∫ (^) y
−∞
f (x) dx ;
then, pick μmed so that F (μmed) = 0.5. This is similar to finding a percentile using an ogive (see figure on p. 24 of the previous set of notes).
For large data sets the modal class is much more relevant than a single-value mode. Example: Data = { 0 , 7, 12, 5, 14, 8, 0 , 9, 22, 33}. The mode is 0 , but this is certainly not a good measure of central location. Identifying the modal class would be much better, as in:
F re q u e n c y
Variable
If a distribution is symmetrical, the mean, median and mode may coincide:
mode
mean
median
If a distribution is asymmetrical, say skewed to the left or to the right, the three measures may differ:
mode
mean
median
If data are skewed, reporting the median is recommended.
Use the mean to:
Use the median to:
Use the mode to:
Use the geometric mean to:
Measures of central location fail to tell the whole story about the distribution. Question: How much are the observations spread out around the mean value?
This question makes sense only for interval data.
Example: Shown below are the curves for two sets of grades. The means are the same at 50. However, the red class has greater variability than the blue class.
How do we quantify variability? This is a most important question in statistics.