Docsity

Understanding Variables & Descriptive Statistics: Central Measures & Variability - Prof. S, Assignments of Probability and Statistics

Toggle sidebar
bg1
1
STAT 3600 Reference: Chapter 1 of Devore’s 7th Ed. Maghsoodloo
Definition. A population is a collection (or an aggregate) of objects or
elements that, generally, have at least one characteristic in common. If all the
elements can be well defined and placed (or listed) onto a frame from which the
sample can be drawn, then the population is said to be concrete and existing;
otherwise, it is a hypothetical, conceptual, or a virtual population.
Example 1. (a) All Auburn University students (N ≅ 28000 members on 2
campuses). Here the frame may be AU Telephone Directories. (b) All households
in the city of Auburn. Again the frame can be the Auburn-Opelika Tel. Directory. (c)
All AU COE students, where the frame can be found on the web at
http://www.eng.auburn.edu/info/listing-all.html
Examples 1.1 and 1.2 on pp. 4-6, 1.4 on p. 8, 1.8 on p. 14, 1.10 on pp. 17-18,
1.12 on p. 25, 1.15 on p. 33, 1.18 on p. 37 of Devore’s 7th edition provide sampling
from conceptual (or virtual) populations.
A variable, X, is any characteristic whose value changes from one element of
a population to the next and can be categorical, or quantitative.
Example 2. (a) Categorical or Qualitative variable X: Examples are Grade
performance in a college course; Success/Failure; Freshman, Sophomore, Junior,
and Senior on a campus; Pass/Fail, Defective/ Conforming, Male/Female, etc.
(b) Quantitative Variable X: O-Ring Temperature (Example 1.1 on page 4 of
Devore); Flexural Strength in MPa (Example 1.2 of Devore, p. 5), Diameter of a
Cylindrical Rod, Length of steel pipes, Bond Strength of Concrete (Example 1.10 on
pp. 17-18, sample size n = 48), Shear Strength (lb) of Exercise 24, etc.
Note that W. Edwards Deming (perhaps the most prominent of Quality gurus
in the 20th century) generally refers to studies made on concrete populations as
enumerative and those made on conceptual populations as analytic.
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download Understanding Variables & Descriptive Statistics: Central Measures & Variability - Prof. S and more Assignments Probability and Statistics in PDF only on Docsity!

STAT 3600 Reference: Chapter 1 of Devore’s 7 th^ Ed. Maghsoodloo

Definition. A population is a collection (or an aggregate) of objects or

elements that, generally, have at least one characteristic in common. If all the elements can be well defined and placed (or listed) onto a frame from which the sample can be drawn, then the population is said to be concrete and existing; otherwise, it is a hypothetical, conceptual, or a virtual population.

Example 1. (a) All Auburn University students (N ≅ 28000 members on 2

campuses). Here the frame may be AU Telephone Directories. (b) All households in the city of Auburn. Again the frame can be the Auburn-Opelika Tel. Directory. (c) All AU COE students, where the frame can be found on the web at http://www.eng.auburn.edu/info/listing-all.html Examples 1.1 and 1.2 on pp. 4-6, 1.4 on p. 8, 1.8 on p. 14, 1.10 on pp. 17-18, 1.12 on p. 25, 1.15 on p. 33, 1.18 on p. 37 of Devore’s 7th^ edition provide sampling from conceptual (or virtual) populations.

A variable, X, is any characteristic whose value changes from one element of a population to the next and can be categorical, or quantitative.

Example 2. (a) Categorical or Qualitative variable X: Examples are Grade

performance in a college course; Success/Failure; Freshman, Sophomore, Junior, and Senior on a campus; Pass/Fail, Defective/ Conforming, Male/Female, etc.

(b) Quantitative Variable X: O-Ring Temperature (Example 1.1 on page 4 of

Devore); Flexural Strength in MPa (Example 1.2 of Devore, p. 5), Diameter of a Cylindrical Rod, Length of steel pipes, Bond Strength of Concrete (Example 1.10 on pp. 17-18, sample size n = 48), Shear Strength (lb) of Exercise 24, etc. Note that W. Edwards Deming (perhaps the most prominent of Quality gurus in the 20th^ century) generally refers to studies made on concrete populations as enumerative and those made on conceptual populations as analytic.

Branches of Statistics

(1) Descriptive, (2) Inductive or Inferential Descriptive Statistics comprises of all methods that summarize collected data and is subdivided into 2 categories: (i) Pictorial and Tabular : Stem-and-leaf plot, Histogram, and Boxplots. (ii) Numerical (or quantitative) Measures: of Location (i.e., the mean, the median), of Variability, of Skewness, and of Kurtosis.

(i) Stem-and-leaf Plot for the Example 1.1 on page 4 of Devore’s (7e)

Order-statistics x (^) (i) : 31°F, 40, 45, 49, 52, 53, 57, 58, 58, 60, 61, 61, 63, 66, 67, 67, 67, 67, 68, 69, 70, 70, 70, 70, 72, 73, 75, 75, 76, 76, 78, 79, 80, 81, 83, 84 The sample size, universally denoted by n, is equal to 36. x 1 = 84, x(1) = 31, x 2 = 49, x(2) = 40, x 3 = 61, x(3) = 45, ..., x 36 = 31, x(n) = x(36) = 84. Stem = 10 (Minitab increment =10) , Leaf = 1 °F.

(Cumf (^) i ) Stem Leaf (n/2 = 18) 1 3 1 4 4 0 5 9 9 5 2 3 7 8 8 (11) 6 0 1 1 3 6 7 7 7 7 8 9 16 7 0 0 0 0 2 3 5 5 6 6 8 9 4 8 0 1 3 4

I will name the stem “6” as the median stem for the above example because its

sample median lies in the interval 60 ≤ x~^ = xˆ0.50 = Sample Median = 67.50 ≤ 69 °F.

Histograms. (See the Example 1.9 on p.16 of Devore’s 7th^ edition)

The 1st-order statistic is x(1) = 2.97, the nth-order statistic is x(n) = 18.26, and the sample size n = 90. R = x(90) – x(1) = 15.29, C = No. of subgroups (or classes, or bins), C 1 = 1 + 3.3×log 10 (n) [Sturges’ practical guideline], C 1 = 1+3.3 log 10 (90) = 7.45. Or

C 2 ≅ n → C 2 = 9.49, or Shapiro’s recommendation C 3 = 4[0.75(n − 1) 2 ] 0.20^ = 4[0.75(89) 2 ] 0.20^ = 22.7420; this last guideline is generally too large and should be

0.02222/1.70 = 0.013072 = d 1 , d 2 = h 2 = 0.05555/1.70 = 0.032676/BTU, etc. Note that Δ must have the same number of decimals as the original data. It is extremely paramount to understand that the densities d (^) j have very little (if any) statistical or geometrical meaning but it is their product with the corresponding class-width, Δj, that gives the corresponding j th^ rectangular area aj = Relf j = dj×Δj.

Minitab Project Report

The Histogram for the Exp1.9 on page 16 of Devore’s 7th^ edition based on midpoints (m (^) j ) and 9 subgroups

Figure 1

Further, the midpoint of each subgroup (or bin) is simply mj = (Ubj + Lbj )/2 = (UclassL (^) j + LclassLj )/2, where Ubj is the upper boundary and LclassLj is the lower class limit of the j th^ subgroup. The 3rd^ pictorial summary, the Boxplot, will be discussed on pp. 11-12 of these notes.

1(ii) (Quantitative) Measures in Descriptive Statistics.

(a) Measures of Location : Mean (or arithmetic average), median, geometric

3.815 (^) 5.515 7.215 (^) 8.915 10.615 (^) 12.315 14.015 15.715 17.

0

BTUs

h =d

0.20 (^) 0.

0.05 0.

mean, harmonic mean, trimmed mean, mode, and percentiles.

A bar is universally used to denote averages such as the arithmetic mean x (or y ).

The arithmetic mean is defined as x =

n i i 1

x / n

=

∑. For the example 1.1 of Devore’s 7th

edition, p. 4, n = 36, ∑

=

n i 1 i

x = 2371 → x = 65.86111 °F. Note that the sample mean

( x , y , etc.) represents the center of gravity of a data set; see Figure 1.14 on p. 26 of

Devore’s 7 th^ edition.

The median, x~^ = xˆ0.50 , is another measure of central location of data such that

exactly (or at most) half of the data are below xˆ0.50 and at most half of the data

exceed xˆ 0.50. To obtain xˆ0.50 for any data (whether n is odd or even), 1st^ multiply n

by 0.50. If this result is an exact integer, say r, then xˆ 0.50 = [X(r) + x(r+1)]/2. Only in

this case exactly half the data will lie below and the other half above the sample

median x~^. If 0.50×n is not integer, then always round it up to the next higher

integer, say m. Then, for this last case xˆ 0.50 = x(m) = the mth^ order-statistic.

For the Example 1.1 on p. 4 of Devore, 0.50×n = 18, which is an exact

integer. Thus, ~x^ = xˆ0.50 = [x(18) + x(19) ]/2 = (67 + 78)/2 = 67.50. Note that exactly 18

data points lie below 67.50, and 18 points lie above 67.50. For the data of Example 1.12 on p. 25 of Devore’s 7th^ edition, the sample size n = 21 gives 0.50×n = 10.5, which is not an integer. Thus, round 10.5 up to the next higher order statistic m = 11, and

as a result ˆx0.50 = ~x^ = x(11) = 21.20, while x = 21.181. Note that only 47.61905% of the

data are below 21.20, and 47.61905% of the data are above xˆ 0.50 = ~x^ = 21.20.

The geometric mean is defined as x g = ( x 1 .x 2 …..xn) 1/n, i.e., xg is the nth^ root of

=

n i 1 i

x only if all xi ’s > 0 for all i, and in general x g ≤ x. For the data of example 1.

of Devore, xg = 19.379764 < 21.181 = x. Geometric mean has applications in DOE

(Design of Experiments) where at least 2 responses from each experimental unit is observed.

Step 3. Interpolate between xtr 3 and xtr 4 to obtain x tr( 10 ). Note that most

statistical packages, such as Minitab, only give the xtr(5) and round the 0.05×n to

the nearest integer in order to obtain the 5% trimmed mean.

xtr ( 10 ) = 66.90 + 0.60 (67.07143 −66.90) = 67.00286 ≅ 67.003.

xtr ( 10 ) = 67.07143 − 0.40(0.171430) = 67.

= 0.4× x tr 3 + 0.6× xtr 4

Had n been equal to 34, then the above formula would change to xtr ( 10 ) = 0.6× xtr 3

+ 0.4× xtr 4.

The trimmed mean, x (^) tr , has applications when data contain outliers (or when

the data originate from an underlying distribution with heavy tail probabilities), and

x (^) tr is always as close or closer to xˆ (^) 0.50 (= 67.50 for the Example 1.1 than is x ).

The MODE

The mode is the observation with the highest frequency. For the data of Example 1.1 on p. 4 of Devore, MO1 = 67 and MO2 = 70 because both observations 67 and 70 have a frequency f = 4 (i.e., the data is bimodal). Most populations have a single mode; however, if a population has two or more modes, then it should be stratified for the purpose of sampling. In calculus, Mode is referred to as the point on the abscissa at which the maximum of the ordinate occurs.

Computing Sample Percentiles (or Quantiles)

The 100×pth^ sample percentile, xˆp , is obtained using the following steps.

(1) First rearrange the data in ascending order of x(1), x(2), …, x(n). (2) Multiply p by n: if n×p is an exact integer, say i, then

xˆ p = [x(i) + x(i + 1)] / 2.

(3) If n×p is not an exact integer, then round n×p always up to the next higher

integer, i.e., n×p ↑ i. Then ˆxp = x(i). Note that this procedure is

consistent with SAS (Statistical Analysis System), which is the oldest prominent Statistical Package but not so with other statistical packages. For the data of Example 1.18 on p. 37 of Devore, where X represents pulse width, the 10 th, 25th, 50th, 75th, 80th, and 90th^ sample percentiles are computed below: (Note that only for convenience hats have been removed from sample percentiles, and the sample size n = 25.)

x 0.10 : 0.10×25 = 2.5 ↑ 3 → x0.10 = x(3) = 13.

x0.25 : 0.25×25 = 6.25 ↑ 7 x0.25 = x(7) = 90. x0.50 : 0.50×25 = 12.5 ↑ 13 x0.50 = x(13) = 94.8.

x0.75 : 0.75×n = 18.75 → x0.75 = x(19) = 96.

x0.80 : 0.80×n = 20 → x0.80 = [x(20) + x(21)]/2 = (98.1+ 99.0)/2 = 98. x0.90 : 0.90×n = 22.5 → x0.90 = x(23) = 103. The above sample percentiles are also called the 0.10, 0.25, 0.50, 0.75, 0.80, and 0. sample quantiles, respectively. The 0.10 quantile is also called the 1st^ decile, and the 0.90 quantile is called the 9 th^ decile. Note that Minitab’s quantile estimates do not always match those of SAS, both of which are given below.

**Variable N Mean SE Mean TrMean StDev Variance CoefVar PW 25 84.86 5.89 87.07 29.47 868.53 34.73% Minimum

Variable Q1 Median Q3 Maximum IQR Skewness Kurtosis PW 89.10 94.80 97.40 113.50 8.30 -2.22 3.**

Minitab, and many other sources, use the procedure of multiplying p by (n+1), instead of n; if this product is an exact integer i, then they set the pth quantile equal to x (^) (i). Otherwise, the pth quantile is the convex combination of the ensuing 2 order-statistics. This method is used in at least 50% of statistical literature. For the Example 1.18, Minitab’s Q is computed by first multiplying 0.25 by n+1 = 26, which results in 6.5, so that Q1 = 0.50x* (^) (6)+0.50x* (^) (7) = 0.50 × (88.0)+ 0.50 × (90.2)= 89.10, as listed above. Note that our text is not consistent in computing sample quantiles (see the error in Example 1.17, p. 36 of Devore, where Q1 must equal 70, not 72.5, using either methods.)

SAS Output 11:32 Wednesday, August 12, 2009 Example 1.18 on page 37 of Devore’s 7th Edition The UNIVARIATE Procedure

by R/d 2. In order to compute S , we must always compute the variance 1st.

Definition. The sample variance, v, is the average of deviations of n

observations from their-own-mean squared. (USS = Uncorrected Sum of Squares)

Data Set 1: 2.7, 3.5, 3.8, 4.6, 5.4. n = 5 → x = 4.0, R = 2.7, USS = 84.30, CF = 80 →

xi − x = −1.3, − 0.50, −0.20, 0.60, 1.

(xi – 4) 2 : 1.69, 0.25, 0.04, 0.36, 1.96, ∑ −

=

5 i 1

( xi x)^2 = 4.

v 1 = 4.3/5 = 0.86. Note that ∑ − ≡

=

n i 1 i^

( x x) 0 for all data sets in the universe.

Data Set 2: 2.1, 3.2, 3.6, 4.5, 6.6, ( x = 4.0, R = 4.5, USS = 91.42, CF = 80),

xi − x : −1.9, −0.8, −0.40, 0.50, 2.

→ (xi – x ) 2 : 3.61, 0.64, 0.16, 0.25, 6.

CSS = Corrected Sum of Squares = Sxx = ∑ −

=

5 i 1

(x i x)^2 = 11.

v 2 = 11.42/5 = 2.

Data sets 3: 1.9, 2.9, 4.0, 4.5, 6.7, ( x = 4.0, R = 4.8, USS = 93.16, CF = 80).

(xi – x ): −2.1, −1.1, 0, 0.50, 2.7 CSS = Sxx = 13.16 → v 3 = 13.16/5 = 2.632.

Note that as the overall spread of the data increases, so does the variance, i.e., variance is a measure of variability. Further, the divisor of v is n, i.e., v = (1/n)×Σ (xi

  • x ) 2. Note that the n deviations from the mean (x 1 − x ), (x 2 − x ), (x 3 − x ),…, (x (^) n − x )

are not independent because of the constraint ∑ − ≡

=

n i 1 i^

( x x) 0 for all data sets in the

universe. For the data set no. 3 above, if we are given x 1 − x^ = −2.1, x 2 – x^ = −1.1, x 3

− x = 0, and x 5 − x = 2.7, then the value of x 4 − x is automatically constrained to x 4 –

x = −(2.1) – (−1.1) – (0) – 2.7 = 3.2 – 2.7 = 0.50, i.e., the variables x 1 − x , x 2 − x ,…, xn

− x have (n −1) degrees of freedom ( df ) not n. Therefore, we define most common

measure of variability with the divisor of (n −1) for Sxx = Σ (xi − x ) 2 , given by

S^2 =

n (^2) i 1 i

1 (x x)

n − 1 ∑=^ − = n×v/(n^ −1) = Sxx^ /(n−1) = CSS/(n^ −^ 1)^ (1)

For data sets 1, 2 and 3 above the values of S 1^2 = 4.30/4 = 1.075, S 22 = 2.855, and S 32

= 13.16/4 = 3.29 because df = 4 (not 5). Further, as stated in equation (1), S 1^2 =

5 ×v 1 /4 = 5 × 0.86/4 =1.075, and so forth. The reader should follow from above examples that the USS plays a more important role in determining the value of S^2 than the CF. The exact name for S^2 is not the sample variance as defined by Devore on his

p. 32. In actuality the sample variance is v = Σ (xi – x ) 2 / n as defined herein, but v

generally underestimates the population variance σ^2 because

n (^2) ∑ i = 1 (x^ i − c) , where c is

any real constant, attains its minimum value iff c = x =

n i ∑ = 1^ x / ni. To compensate for

this underestimation, we divide the CSS = Sxx = Σ(xi − x ) 2 by a smaller number than

n, namely its df = n −1, in order to obtain an “unbiased estimate” of σ^2. The positive

square root of S^2 provides the standard deviation, S , and dividing S by n gives

the standard error of the mean, i.e., se ( x ) = S / n. Further, the ratio S / x is called the coefficient of variation (or variation coefficient), and generally the sample cv =

S / x is expressed in % with at least 2 decimals.

Graphical Measure of Variability (The Boxplot)

Step 1. Draw a vertical line thru the median ~x^ = xˆ (^) 0..

Step 2. Draw vertical lines thru Q1 = xˆ 0.25 and Q3 = xˆ0.75 and connect at the bottom

and the top to make a rectangular box. For the data of Example 1.1, the box is shown atop the next page, where hats are removed from sample percentiles only for convenience. Step 3. Compute both 1.5×IQR and 3×IQR. For the Example 1.1, 1.5×IQR = 24 and 3 ×IQR = 48. Then all data points less than Q1 − 1.5×IQR = 59 – 24 = 35 but larger than Q1 − 3 ×IQR = 11, or larger than 75 + 24 = 99 but less than 123 are mild outliers. Example 1.1 on page 4 of Devore has no extreme outliers because all data points lie within the interval (Q1 − 3 ×IQR, Q3 + 3×IQR).

(c) Prove that for any data set of size n the Corrected Sum of Squares =

CSS = Sxx = ∑

=

−

n i 1

2 ( xi x) = USS − CF , where the Uncorrected Sum of

Squares USS = ∑

=

n i 1

x (^2) i , and the correction factor CF = (^) ∑

n i 1

( xi )^2 /n.

(d) By definitions the mean and variance of a grouped (gr) data (or a

frequency distribution) are given by

gr =

1 C

n j 1m^ j^ fj

∑ ×

= xg r , and S gr^2 =

1 C 2

n 1 j 1(m^ j^ g )^ fj − ∑ −^ × =

Prove that for a histogram (or an empirical distribution )

C

(m (^) j g ) fj j 1

∑ −^ ×

and that the computing formula for S gr^2 is given by

S gr^2 = C^2 j j

j 1

(^1) m f n − 1 [^ ∑=^ × −

C 2

( m (^) j f )j j 1 n

∑^ ×

= (^) ] , where C^ m 2 f j 1 ∑= j × j = USSgr^ , and

( C^ m f )^2 j 1 j^ j n

∑^ ×

= (^) = CFgr = Grouped Correction Factor.

Bonus Homework 2 (7 Points). Compute the 0.25, 0.75 quantiles and the

resulting IQRs of the Example 1.9 atop page 16 of Devore’s 7th^ edition from 3 different methods: (1) SAS’s, (2) Minitab’s and verify your answers by submitting the Minitab output, (3) Excel’s using its percentile function. Further, fully explain how MS Excel computes the two quartiles, i.e., what formulation (not just the syntax) Excel uses to obtain sample percentiles. (4) Provide two data sets each of size n = 6 such that data set 1 has a larger range (R) than data set 2, but data set 1 has smaller standard deviation, S , than data set 2. Note that it will be impossible to create such 2 samples iff both sizes are n = 2.