Docsity

Data Summarization: Central Measures, Variability, and Standing, Study notes of Statistics

Partial preview of the text

Download Data Summarization: Central Measures, Variability, and Standing and more Study notes Statistics in PDF only on Docsity!

Numerical Summarization of Data

OPRE 6301

Motivation...

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?

Measures of Central Location...

Mean...

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:

μ ≡

N

∑^ N

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

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.

Median...

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

  • For raw data, median can be found using the Excel function MEDIAN().
  • The median is based on order. For example, if the value 11 in Example 2 is replaced by 12,000, the median would still remain at 6.5. The arithmetic mean, on the other hand, would be severely affected by the presence of extreme values, or “outliers.”
  • The median cannot be manipulated algebraically.
  • The median of pooled data sets cannot be determined by those of the original data sets. Hence, reordering is necessary.

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

A modal class

Mean, Median, Mode — Relationship...

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.

Summary...

Use the mean to:

  • Describe the central location of a single set of interval data

Use the median to:

  • Describe the central location of a single set of interval or ordinal data

Use the mode to:

  • Describe a single set of nominal data

Use the geometric mean to:

  • Describe a single set of interval data based on growth rates

Measures of Variability...

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.