Docsity

Calculating Descriptive Stats: Ranks, Range, Median, Mean, Variance & SD, Study notes of Data Analysis & Statistical Methods

Toggle sidebar
bg1
Computing Descriptive Statistics
Sample #1:
First: List the observations in the sample.
2, 3, 3, 4, 4, 4, 5, 5, 6
Second: Beneath (or next to) each sample value put its rank. The
smallest value will have rank 1 and the largest will have
rank n, where n = the number of observations in the
sample.
sample: 2, 3, 3, 4, 4, 4, 5, 5, 6
ranks: 132456789
Since two of the observations have the value 3, the first
one is given rank 2 and the second one is given rank 3.
Each value is given a unique rank.
Third: Compute the sample range.
R=H-L=6-2=4
Fourth: Graphically display the data. Since this is a small
sample with repetitions, I have used a line graph. For
larger data sets, s stemplot should be used. For really
large samples, let SPSS do the work for you. You will
still need to be able to answer the questions.
frequency
4
3
2
1
0x
1234567
The values on the vertical axis are the frequencies and
the values on the horizontal axis are the values of the
observations.
Fifth: Try to describe the shape of the distribution.
In this case, we have a symmetric distribution with a
single mode. Distributions like this are often called
"mound-shaped" distributions.
Sixth: Locate the median.
Therefore, the median is the value
with rank 5. In this case the value with rank 5 is 4.
HenceM=4.
pf3
pf4
pf5

Partial preview of the text

Download Calculating Descriptive Stats: Ranks, Range, Median, Mean, Variance & SD and more Study notes Data Analysis & Statistical Methods in PDF only on Docsity!

Computing Descriptive Statistics

Sample #1: First: List the observations in the sample.

2, 3, 3, 4, 4, 4, 5, 5, 6

Second: Beneath (or next to) each sample value put its rank. The smallest value will have rank 1 and the largest will have rank n, where n = the number of observations in the sample.

sample: 2, 3, 3, 4, 4, 4, 5, 5, 6 ranks: 1 3 2 4 5 6 7 8 9

Since two of the observations have the value 3, the first one is given rank 2 and the second one is given rank 3. Each value is given a unique rank.

Third: Compute the sample range. R = H - L = 6 - 2 = 4

Fourth: Graphically display the data. Since this is a small sample with repetitions, I have used a line graph. For larger data sets, s stemplot should be used. For really large samples, let SPSS do the work for you. You will still need to be able to answer the questions.

frequency

4 3 2 1 0 x 1 2 3 4 5 6 7

The values on the vertical axis are the frequencies and the values on the horizontal axis are the values of the observations.

Fifth: Try to describe the shape of the distribution.

In this case, we have a symmetric distribution with a single mode. Distributions like this are often called "mound-shaped" distributions.

Sixth: Locate the median.

Therefore, the median is the value

with rank 5. In this case the value with rank 5 is 4. Hence M = 4.

Seventh: Compute the mean, variance and standard deviation of the sample. These values are based not on the order of the observations, but on the actual values of the observations.

We need the following information: n, ∑x and ∑x^2. n = 9 ∑x = 36 ∑x^2 = 156

The sample mean is

We will use the computational formula rather than the definition to compute the sample variance. Both your text and ActivStats give the definition and use it in the examples. However, they assume you will be using a software package such as SPSS to do most of your computation. For testing purposes, we will use the computational formula.

The standard deviation is the square root of the

variance.

Note : For a larger sample we would also give the 5-number summary and check for outliers.

Sample #2:

First: List the observations in the sample.

2, 3, 2, 3, 4, 6, 4, 6, 5, 5

Second: Beneath (or next to) each sample value put its rank.

sample: 2, 3, 2, 3, 4, 6, 4, 6, 5, 5 ranks: 1 3 2 4 5 9 6 10 7 8

Third: Compute the sample range. R = H - L = 6 - 2 = 4

Fourth: Graphically display the data. frequency

3 2 1 0 x 1 2 3 4 5 6 7

The following examples are done without commentary to show you how I expect your answers to be written.

Sample #3: 2, 3, 2, 4, 6, 5, 6 rank 1 3 2 4 6 5 7

frequency 3 2 n = 7 ∑x = 28 ∑x^2 = 130 1 R = H - L = 6 - 2 = 4 0 x 1 2 3 4 5 6 7

, therefore M = 4.

This distribution is bimodal and has a "bathtub" shape.

Sample #4: 4, 5, 4, 6, 8, 7, 8 rank 1 3 2 4 6 5 7

frequency 4 3 2 n = 7 ∑x = 42 ∑x^2 = 270 1 R = H - L = 8 - 4 = 4 0 1 2 3 4 5 6 7 8 9 x

, therefore M= 6.

This distribution is also bimodal and has a "bathtub" shape.

Some questions to ponder.

What do these samples have in common? The range of each sample is 4 The distribution of each sample is symmetric. The mean of each sample is the same as its median.

What do samples 1-3 have in common besides the range? These samples have both mean and median equal to 4.

What do samples 3 and 4 have in common besides the range? They have the same variance and standard deviation. They also have the same shape.

How do these samples differ? Samples 1-3 have different sample sizes. The variances and standard deviations of samples 1-3 are different. The distributions of samples 1-3 have different shapes.

How do the values in sample 4 compare to those in sample 3? The values in sample 4 were obtained by adding 2 to each value in sample 3, that is x 4 = x 3 + 2.

x 4 = 6 and x 3 = 4. Hence x 4 = x 3 +2.

M4 = 6 and M 3 = 4. Hence M 4 = M 3 +2.

For any linear transformation of the data, the measures of central tendency of the new variable are the linear transformations of the measures of central tendency of the original.

The 4 graphs are given below. As the number of values away from the mean increases, the variance increases.

Sample #

frequency

4 3 2 1 0 x 1 2 3 4 5 6 7

s^2 = 1.

Sample #

frequency 3 2 1 0 x 1 2 3 4 5 6 7

s^2 = 3

Sample #

frequency

3 2 1 0 x 1 2 3 4 5 6 7

s^2 = 2.22...

Sample #

frequency 4 3 2 1 0 1 2 3 4 5 6 7 8 9 x s 2 = 3