Docsity

Lecture Slides on Standard Deviation, Modified Boxplot | ST 370, Study notes of Statistics

Partial preview of the text

Download Lecture Slides on Standard Deviation, Modified Boxplot | ST 370 and more Study notes Statistics in PDF only on Docsity!

North Carolina State University

STAT 370: Probability and Statistics for

EngineersEngineersYichao Wu

Lass class

  • Quartiles

IQR

  • IQR• Suspected outliers• 5-number summary• Boxplot

Boxplot

  • Modified boxplotHomework #2 due Monday Jan 26 at 5PM

Another measure of spread

  • Standard deviation

Sample Variance

s

2

-^

Deviation from mean: :the difference betweenan observation and the sample mean:

-^

Sample Variance

s

2 : the average of the

. x

x

i^

−

squares of the deviations of the observationsfrom their mean.

(^

2 2 2 2 1 2

=^

n

x x x x x x s

n

n

2 − −

∑=

n

x x n i

i

n

Sample Standard Deviation

s

• Sample Standard Deviation

s

: the square

root of the sample varianceroot of the sample variance.

1

2

x

x

n i

i

1

=

n

s^

i

Remarks on the definition of sample S.D.

  • The sum of the deviations of the obs from

th i

i^

l^

their mean is always 0.

  • Why “square the deviations” rather than

“absolute deviations”?absolute deviations ?– Mean is a natural center under the “squaring”.– S D is a natural measure of spread for the

S.D. is a natural measure of spread for the“normal distributions”.

Properties of sample S.D.

-^

s

measures the spread about the mean;

h

ld b

d

l^

h

h

i

-^

s

should be used only when the mean is

chosen to measure the center;

-^

s

=0 if and only if there is no spread;– When?

-^

s

>0 elsewhere; increases when more

spread;spread;

-^

s

, like the mean, is not resistant. Even less

resistant Why?resistant. Why?

In-class exercise

  • Calculate mean and variance

Fi

t d t

  • First data: 5, 8, 9, 10, 11– Second data: 5, 8, 9, 10, 111

Averaging reduces variability

  • The standard deviation of batting averages

of all teams in the American League isof all teams in the American League is0.008. The standard deviation of allplayers in the American League isplayers in the American League is0.02154.

Three measures of spread

-^

The

range

is the spread of all the observations;

-^

The

interquartile range

is the spread of (roughly)

the middle 50% of the observations;the middle 50% of the observations;Sample

S D

is a measure of the distance from

-^

Sample

S

.D.

is

a measure of the distance from

sample mean. Sample S.D. can be regarded asa “typical” distance of the observations from theira

typical

distance of the observations from their

mean.

Property of sample S.D

If the data are symmetric and unimodal (one peak) we can use theEmpirical Rule (OR 68-95-99.7) rule) to construct intervalsRoughly 68% of the data will fall between

and

Roughly 95% of the data will fall between

and

Roughly 99 7% of the data will fall between

and

x

s −

x s

2 x

s −

2 x

s

3

3 x

s

Roughly

99.7% of the data will fall between

and

  • These numbers come from a normal distribution, which we’ll seelater.

3 x

s

3 x

s −

Doesn’t apply when data are skewed

Example

Assume we have a symmetric, unimodal data set with =

and

s

Then according to the empirical rule:•^

Roughly 68% of data between 515-114=401 and515+114=

-^

Roughly 95% of data between 515-2114=287 and515+2114=743515+2 114 743

-^

Roughly 99.7% (almost all) of data between 515-3114=173and 507+3114= This sample mean and variance is for Math SAT data. Pretty

close (67% within 1 s.d., 95% within 2 s.d., really close)! So from just the mean and s d

you can get a pretty good

So from just the mean and s.d., you can get a pretty good

sense of the whole distribution.

  • Effect of adding a constant to all data points

(adds constant to sample mean and(adds constant to sample mean andmedian, doesn’t change sample variance)Eff

t^

f^

lti l i

ll d t

i t

b

  • Effect of multiplying all data points by a

constant (multiplies sample mean and

di

b

th

t^

t^

lti li

l

median by the constant, multiplies samplevariance by square of the constant)

  • Effect of adding to max (increases sample

mean, but sample median the same)

Statistics and parameter

-^

Numerical summarizations of sample data arecalled (sample) statisticscalled (sample) statistics.

-^

Numerical summarizations of population and

-^

Numerical summarizations of population andtheoretical distributions are call parameters.

-^

Roman letters are used as symbols forstatistics and Greek letters are used to standstatistics, and Greek letters are used to standfor parameters.