Top Banner
Administrative Matters Midterm II Results Take max of two midterm scores:
235

Administrative Matters Midterm II Results Take max of two midterm scores:

Jan 19, 2016

Download

Documents

Tobias Booker
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Administrative Matters Midterm II Results Take max of two midterm scores:

Administrative Matters

Midterm II Results

Take max of two midterm scores:

Page 2: Administrative Matters Midterm II Results Take max of two midterm scores:

Administrative Matters

Midterm II Results

Take max of two midterm scores

Approx grades:

92-100 A

82-92 B

70-82 C

60-70 D

0 – 60 F

Page 3: Administrative Matters Midterm II Results Take max of two midterm scores:

Last Time

• Confidence Intervals– For proportions (Binomial)

• Choice of sample size– For Normal Mean– For proportions (Binomial)

• Interpretation of Confidence Intervals

Page 4: Administrative Matters Midterm II Results Take max of two midterm scores:

Reading In Textbook

Approximate Reading for Today’s Material:

Pages 493-501, 422-435, 447-467

Approximate Reading for Next Class:

Pages 422-435, 372-390

Page 5: Administrative Matters Midterm II Results Take max of two midterm scores:

Sample Size for Proportions

i.e. find so that:

Now solve to get:

(good candidate for list of formulas)

n )1,0,975.0(1

NORMINV

npp

m

m

ppNORMINVn

11,0,975.0

ppm

NORMINVn

1

1,0,975.02

Page 6: Administrative Matters Midterm II Results Take max of two midterm scores:

Sample Size for Proportions

i.e. find so that:

Now solve to get:

Problem: don’t know

n )1,0,975.0(1

NORMINV

npp

m

m

ppNORMINVn

11,0,975.0

p

ppm

NORMINVn

1

1,0,975.02

Page 7: Administrative Matters Midterm II Results Take max of two midterm scores:

Sample Size for Proportions

Solution 1: Best Guess

Use from:

– Earlier Study

– Previous Experience

– Prior Idea

Page 8: Administrative Matters Midterm II Results Take max of two midterm scores:

Sample Size for Proportions

Solution 2: Conservative

Recall

So “safe” to use:

4

11max1,0

ppp

411,0,975.0

2

mNORMINV

n

Page 9: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Mathematically:

pic 1 pic 2

3rd interpretation

"",.. bracketsmXmXICtheP

mXPmXmP 95.0

mXmXP

Page 10: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Frequentist View: If repeat the

experiment many times

Page 11: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Frequentist View: If repeat the

experiment many times,

About 95% of the time, CI’s will contain μ

Page 12: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Frequentist View: If repeat the

experiment many times,

About 95% of the time, CI’s will contain μ

(and 5% of the time it won’t)

Page 13: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Nice Illustration:

Publisher’s Website

• Statistical Applets

• Confidence Intervals

Page 14: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Page 15: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Page 16: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Page 17: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Page 18: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Page 19: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Page 20: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Page 21: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Page 22: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Page 23: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Nice Illustration:

Publisher’s Website

• Statistical Applets

• Confidence Intervals

Shows proper interpretation

Page 24: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Nice Illustration:

Publisher’s Website

• Statistical Applets

• Confidence Intervals

Shows proper interpretation:– If repeat drawing the sample

Page 25: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Nice Illustration:

Publisher’s Website

• Statistical Applets

• Confidence Intervals

Shows proper interpretation:– If repeat drawing the sample

– Interval will cover truth 95% of time

Page 26: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Nice Illustration:

Publisher’s Website

• Statistical Applets

• Confidence Intervals

Lower Confidence Level (95% 80%)

Page 27: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Nice Illustration:

Publisher’s Website

• Statistical Applets

• Confidence Intervals

Lower Confidence Level (95% 80%):– Shorter confidence intervals

Page 28: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Nice Illustration:

Publisher’s Website

• Statistical Applets

• Confidence Intervals

Lower Confidence Level (95% 80%):– Shorter confidence intervals

– Leads to lower hit rate

Page 29: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Recall Class HW:

Estimate % of Male Students at UNC

Page 30: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Recall Class HW:

Estimate % of Male Students at UNC

Revisit Class Example 7http://www.stat-or.unc.edu/webspace/courses/marron/UNCstor155-2009/ClassNotes/Stor155Eg7.xls

Page 31: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Estimate % of Male Students at UNC

Page 32: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Recall Class HW:

Estimate % of Male Students at UNC

Recall:

Q1: Sample of 25 from Class

Page 33: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Recall Class HW:

Estimate % of Male Students at UNC

Recall:

Q1: Sample of 25 from Class

Q2: Sample of 25 from any doorway

Page 34: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Recall Class HW:

Estimate % of Male Students at UNC

Recall:

Q1: Sample of 25 from Class

Q2: Sample of 25 from any doorway

Q3: Sample of 25 think of names

Page 35: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Recall Class HW:

Estimate % of Male Students at UNC

Recall:

Q1: Sample of 25 from Class

Q2: Sample of 25 from any doorway

Q3: Sample of 25 think of names

Q4: Random sample (from phone book)

Page 36: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Histogram analysis: Class Example 7http://www.stat-or.unc.edu/webspace/courses/marron/UNCstor155-2009/ClassNotes/Stor155Eg7.xls

Q1:

Sample from Class

Page 37: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Histogram analysis: Class Example 7http://www.stat-or.unc.edu/webspace/courses/marron/UNCstor155-2009/ClassNotes/Stor155Eg7.xls

Q1:

Sample from Class:

- Compare to

theoretical

Page 38: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Histogram analysis: Class Example 7http://www.stat-or.unc.edu/webspace/courses/marron/UNCstor155-2009/ClassNotes/Stor155Eg7.xls

Q1:

Sample from Class:

- Compare to

theoretical

- Some bias

Page 39: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Histogram analysis: Class Example 7http://www.stat-or.unc.edu/webspace/courses/marron/UNCstor155-2009/ClassNotes/Stor155Eg7.xls

Q1:

Sample from Class:

- Compare to

theoretical

- Some bias

- less variation

Page 40: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Histogram analysis: Class Example 7http://www.stat-or.unc.edu/webspace/courses/marron/UNCstor155-2009/ClassNotes/Stor155Eg7.xls

Q2:

From Doorways

Page 41: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Histogram analysis: Class Example 7http://www.stat-or.unc.edu/webspace/courses/marron/UNCstor155-2009/ClassNotes/Stor155Eg7.xls

Q2:

From Doorways:

- No bias

Page 42: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Histogram analysis: Class Example 7http://www.stat-or.unc.edu/webspace/courses/marron/UNCstor155-2009/ClassNotes/Stor155Eg7.xls

Q2:

From Doorways:

- No bias

- More variation

Page 43: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Histogram analysis: Class Example 7http://www.stat-or.unc.edu/webspace/courses/marron/UNCstor155-2009/ClassNotes/Stor155Eg7.xls

Q3:

Think up names

Page 44: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Histogram analysis: Class Example 7http://www.stat-or.unc.edu/webspace/courses/marron/UNCstor155-2009/ClassNotes/Stor155Eg7.xls

Q3:

Think up names:

- Upwards bias

Page 45: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Histogram analysis: Class Example 7http://www.stat-or.unc.edu/webspace/courses/marron/UNCstor155-2009/ClassNotes/Stor155Eg7.xls

Q3:

Think up names:

- Upwards bias

- More variation

Page 46: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Histogram analysis: Class Example 7http://www.stat-or.unc.edu/webspace/courses/marron/UNCstor155-2009/ClassNotes/Stor155Eg7.xls

Q4:

Random Sample

Page 47: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Histogram analysis: Class Example 7http://www.stat-or.unc.edu/webspace/courses/marron/UNCstor155-2009/ClassNotes/Stor155Eg7.xls

Q4:

Random Sample:

- Looks better?

Page 48: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Histogram analysis: Class Example 7http://www.stat-or.unc.edu/webspace/courses/marron/UNCstor155-2009/ClassNotes/Stor155Eg7.xls

Q4:

Random Sample:

- Looks better?

- Reasonable

variation?

Page 49: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Histogram analysis: Class Example 7http://www.stat-or.unc.edu/webspace/courses/marron/UNCstor155-2009/ClassNotes/Stor155Eg7.xls

Q4:

Random Sample:

- Looks better?

- Reasonable

variation?

- Really need

CIs etc.

Page 50: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Now consider C.I. View:

Class Example 13http://www.stat-or.unc.edu/webspace/courses/marron/UNCstor155-2009/ClassNotes/Stor155Eg13.xls

Page 51: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Now consider C.I. View:

Class Example 13http://www.stat-or.unc.edu/webspace/courses/marron/UNCstor155-2009/ClassNotes/Stor155Eg13.xls

Explore idea:

CI should cover 90% of time

Page 52: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Class Example 13

Page 53: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Class Example 13

Page 54: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Class Example 13

Page 55: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Class Example 13

Page 56: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Class Example 13

Page 57: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Class Example 13

Q1: Summarize Coverage

Page 58: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Class Example 13

Q1: Summarize Coverage

94% > 90%

(since sd too small)

Page 59: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Class Example 13

Q2: Summarize Coverage

77% < 90%

(since too

variable)

Page 60: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Class Example 13

Q3: Summarize Coverage

77% < 90%

(since too

biased)

Page 61: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Class Example 13

Q4: Summarize Coverage

87% ≈ 90%

(seems OK?)

Page 62: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Class Example 13

Simulate from

Binomial

87% ≈ 90%

(shows within

expected

range)

Page 63: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

Class Example 13:http://www.stat-or.unc.edu/webspace/courses/marron/UNCstor155-2009/ClassNotes/Stor155Eg13.xls

Q1: SD too small Too many cover

Q2: SD too big Too few cover

Q3: Big Bias Too few cover

Q4: Good sampling About right

Q5: Simulated Bi Shows “natural var’n”

Page 64: Administrative Matters Midterm II Results Take max of two midterm scores:

Interpretation of Conf. Intervals

HW: 6.20 ($1260, $1540), 6.21

6.28 (but use Excel & make histogram)

Page 65: Administrative Matters Midterm II Results Take max of two midterm scores:

Research Corner

Another SiZer analysis:

British Incomes Data

Page 66: Administrative Matters Midterm II Results Take max of two midterm scores:

Research Corner

Another SiZer analysis:

British Incomes Data

o Annual Survey (1985)

Page 67: Administrative Matters Midterm II Results Take max of two midterm scores:

Research Corner

Another SiZer analysis:

British Incomes Data

o Annual Survey (1985)

o Done in Great Britain

Page 68: Administrative Matters Midterm II Results Take max of two midterm scores:

Research Corner

Another SiZer analysis:

British Incomes Data

o Annual Survey (1985)

o Done in Great Britain

o Variable of Interest:

Family Income

Page 69: Administrative Matters Midterm II Results Take max of two midterm scores:

Research Corner

Another SiZer analysis:

British Incomes Data

o Annual Survey (1985)

o Done in Great Britain

o Variable of Interest:

Family Income

o Distribution?

Page 70: Administrative Matters Midterm II Results Take max of two midterm scores:

Research Corner

British Incomes Data

SiZer Results:

1 bump at coarse scale

(expected)

Page 71: Administrative Matters Midterm II Results Take max of two midterm scores:

Research Corner

British Incomes Data

SiZer Results:

1 bump at coarse scale

2 bumps at medium scale

Page 72: Administrative Matters Midterm II Results Take max of two midterm scores:

Research Corner

British Incomes Data

SiZer Results:

1 bump at coarse scale

2 bumps at medium scale

(Quite a radical

statement)

Page 73: Administrative Matters Midterm II Results Take max of two midterm scores:

Research Corner

British Incomes Data

SiZer Results:

1 bump at coarse scale

2 bumps at medium scale

Finer scale bumps not

statistically significant

Page 74: Administrative Matters Midterm II Results Take max of two midterm scores:

Research Corner

British Incomes Data

2 bumps at medium scale

Usual models for Incomes

(one bump only)

Page 75: Administrative Matters Midterm II Results Take max of two midterm scores:

Research Corner

British Incomes Data

2 bumps at medium scale

Usual models for Incomes

(one bump only)

2 bumps were verified

Page 76: Administrative Matters Midterm II Results Take max of two midterm scores:

Research Corner

British Incomes Data

2 bumps at medium scale

Usual models for Incomes

(one bump only)

2 bumps were verified

(in PhD dissertation)

Page 77: Administrative Matters Midterm II Results Take max of two midterm scores:

Research Corner

British Incomes Data

2 bumps at medium scale

Usual models for Incomes

(one bump only)

2 bumps were verified

(in PhD dissertation)

But when worth looking?

Page 78: Administrative Matters Midterm II Results Take max of two midterm scores:

Next time

• Add multiple year plots as well

In:

IncomesAllKDE.mpg

Page 79: Administrative Matters Midterm II Results Take max of two midterm scores:

Deeper look at Inference

Recall: “inference” = CIs and Hypo Tests

Page 80: Administrative Matters Midterm II Results Take max of two midterm scores:

Deeper look at Inference

Recall: “inference” = CIs and Hypo Tests

Main Issue: In sampling distribution

nNX /,0~

Page 81: Administrative Matters Midterm II Results Take max of two midterm scores:

Deeper look at Inference

Recall: “inference” = CIs and Hypo Tests

Main Issue: In sampling distribution

Usually σ is unknown

nNX /,0~

Page 82: Administrative Matters Midterm II Results Take max of two midterm scores:

Deeper look at Inference

Recall: “inference” = CIs and Hypo Tests

Main Issue: In sampling distribution

Usually σ is unknown, so replace with an estimate, s.

nNX /,0~

Page 83: Administrative Matters Midterm II Results Take max of two midterm scores:

Deeper look at Inference

Recall: “inference” = CIs and Hypo Tests

Main Issue: In sampling distribution

Usually σ is unknown, so replace with an estimate, s.

For n large, should be “OK”

nNX /,0~

Page 84: Administrative Matters Midterm II Results Take max of two midterm scores:

Deeper look at Inference

Recall: “inference” = CIs and Hypo Tests

Main Issue: In sampling distribution

Usually σ is unknown, so replace with an estimate, s.

For n large, should be “OK”, but what about:

• n small?

nNX /,0~

Page 85: Administrative Matters Midterm II Results Take max of two midterm scores:

Deeper look at Inference

Recall: “inference” = CIs and Hypo Tests

Main Issue: In sampling distribution

Usually σ is unknown, so replace with an estimate, s.

For n large, should be “OK”, but what about:

• n small?

• How large is n “large”?

nNX /,0~

Page 86: Administrative Matters Midterm II Results Take max of two midterm scores:

Unknown SD

Goal: Account for “extra variability in the

s ≈ σ approximation”

Page 87: Administrative Matters Midterm II Results Take max of two midterm scores:

Unknown SD

Goal: Account for “extra variability in the

s ≈ σ approximation”

Mathematics: Assume individual ,~ NX i

Page 88: Administrative Matters Midterm II Results Take max of two midterm scores:

Unknown SD

Goal: Account for “extra variability in the

s ≈ σ approximation”

Mathematics: Assume individual

I.e.

• Data have mound shaped histogram

,~ NX i

Page 89: Administrative Matters Midterm II Results Take max of two midterm scores:

Unknown SD

Goal: Account for “extra variability in the

s ≈ σ approximation”

Mathematics: Assume individual

I.e.

• Data have mound shaped histogram

• Recall averages generally normal

,~ NX i

Page 90: Administrative Matters Midterm II Results Take max of two midterm scores:

Unknown SD

Goal: Account for “extra variability in the

s ≈ σ approximation”

Mathematics: Assume individual

I.e.

• Data have mound shaped histogram

• Recall averages generally normal

• But now must focus on individuals

,~ NX i

Page 91: Administrative Matters Midterm II Results Take max of two midterm scores:

Unknown SD

Then nNX /,~

Page 92: Administrative Matters Midterm II Results Take max of two midterm scores:

Unknown SD

Then

So can write:

nNX /,~

1,0~ N

n

X

Page 93: Administrative Matters Midterm II Results Take max of two midterm scores:

Unknown SD

Then

So can write:

(recall: standardization (Z-score)

idea)

nNX /,~

1,0~ N

n

X

Page 94: Administrative Matters Midterm II Results Take max of two midterm scores:

Unknown SD

Then

So can write:

(recall: standardization (Z-score)

idea,

used in an important way here)

nNX /,~

1,0~ N

n

X

Page 95: Administrative Matters Midterm II Results Take max of two midterm scores:

Unknown SD

Then

So can write:

Replace

nNX /,~

1,0~ N

n

X

Page 96: Administrative Matters Midterm II Results Take max of two midterm scores:

Unknown SD

Then

So can write:

Replace by

nNX /,~

1,0~ N

n

X

s

Page 97: Administrative Matters Midterm II Results Take max of two midterm scores:

Unknown SD

Then

So can write:

Replace by , then

nNX /,~

1,0~ N

n

X

sn

sX

Page 98: Administrative Matters Midterm II Results Take max of two midterm scores:

Unknown SD

Then

So can write:

Replace by , then

has a distribution named

nNX /,~

1,0~ N

n

X

sn

sX

Page 99: Administrative Matters Midterm II Results Take max of two midterm scores:

Unknown SD

Then

So can write:

Replace by , then

has a distribution named:

“t-distribution with n-1 degrees of freedom”

nNX /,~

1,0~ N

n

X

sn

sX

Page 100: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Notes:

1. n is a parameter

Page 101: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Notes:

1. n is a parameter (like ),,, p

Page 102: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Notes:

1. n is a parameter (like )

(Recall: these index families

of probability distributions)

,,, p

Page 103: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Notes:

1. n is a parameter (like ) that controls “added variability that comes from the s ≈ σ approximation”

,,, p

Page 104: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Notes:

1. n is a parameter (like ) that controls “added variability that comes from the s ≈ σ approximation”

View: Study Densities,

over degrees of freedom…http://www.stat-or.unc.edu/webspace/courses/marron/UNCstor155-2009/ClassNotes/EgTDist.mpg

,,, p

Page 105: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Compare N(0,1) distribution, to t-distribution,

d.f. = 7

Page 106: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Compare N(0,1) distribution, to t-distribution,

d.f. = 7

Page 107: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Compare N(0,1) distribution, to t-distribution,

d.f. = 7

t is more spread

Page 108: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Compare N(0,1) distribution, to t-distribution,

d.f. = 7

t is more spread:

- Lower Peak

Page 109: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Compare N(0,1) distribution, to t-distribution,

d.f. = 7

t is more spread:

- Lower Peak

- Fatter Tails

Page 110: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Compare N(0,1) distribution, to t-distribution,

d.f. = 7

t is more spread

smaller 5%-tile

Page 111: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Compare N(0,1) distribution, to t-distribution,

d.f. = 7

t is more spread

smaller 5%-tile

larger 99%-tile

Page 112: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Compare N(0,1) distribution, to t-distribution,

d.f. = 7

t is more spread

Makes sense,

since s ≈ σ

more variation

Page 113: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Compare N(0,1) distribution, to t-distribution,

d.f. = 3

All effects are

magnified

Since s ≈ σ approx

gets worse

Page 114: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Compare N(0,1) distribution, to t-distribution,

d.f. = 1

Extreme Case

Have terrible

s ≈ σ approx

Page 115: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Compare N(0,1) distribution, to t-distribution,

d.f. = 7

Now try larger d.f.

Page 116: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Compare N(0,1) distribution, to t-distribution,

d.f. = 14

All approximations

are better

Page 117: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Compare N(0,1) distribution, to t-distribution,

d.f. = 25

Even better

Page 118: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Compare N(0,1) distribution, to t-distribution,

d.f. = 25

Even better

- Densities almost

on top

Page 119: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Compare N(0,1) distribution, to t-distribution,

d.f. = 25

Even better

- Densities almost

on top

- Quantiles very

close

Page 120: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Compare N(0,1) distribution, to t-distribution,

d.f. = 100

Hard to see any

difference

Page 121: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Compare N(0,1) distribution, to t-distribution,

d.f. = 100

Hard to see any

difference

Since excellent

s ≈ σ approx

Page 122: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Notes:

2. Careful: set “degrees of freedom” =

= n – 1

Page 123: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Notes:

2. Careful: set “degrees of freedom” =

= n – 1 (not n)

Page 124: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Notes:

2. Careful: set “degrees of freedom” =

= n – 1 (not n)

• Easy to forget later

Page 125: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Notes:

2. Careful: set “degrees of freedom” =

= n – 1 (not n)

• Easy to forget later

• Good to add to sheet of notes for exam

Page 126: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Notes:

3. Must work with standardized version of

X

Page 127: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Notes:

3. Must work with standardized version of

i.e.

nsX X

Page 128: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Notes:

3. Must work with standardized version of

i.e.

(will affect how we compute probs….)

nsX X

Page 129: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Notes:

3. Must work with standardized version of

i.e.

• No longer can plug mean and SD

into EXCEL formulas

nsX X

Page 130: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Notes:

3. Must work with standardized version of

i.e.

• No longer can plug mean and SD

into EXCEL formulas

• In text standardization was already done

nsX X

Page 131: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Notes:

3. Must work with standardized version of

i.e.

• No longer can plug mean and SD

into EXCEL formulas

• In text standardization was already done,

since used in Normal table calc’ns

nsX X

Page 132: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Notes:

4. Calculate t probs (e.g. areas & cutoffs),

Page 133: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Notes:

4. Calculate t probs (e.g. areas & cutoffs),

using TDIST

Page 134: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Notes:

4. Calculate t probs (e.g. areas & cutoffs),

using TDIST & TINV

Page 135: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Notes:

4. Calculate t probs (e.g. areas & cutoffs),

using TDIST & TINV

Caution: these are set up differently from NORMDIST & NORMINV

Page 136: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Notes:

4. Calculate t probs (e.g. areas & cutoffs),

using TDIST & TINV

Caution: these are set up differently from NORMDIST & NORMINV

See Class Example 14http://www.stat-or.unc.edu/webspace/courses/marron/UNCstor155-2009/ClassNotes/Stor155Eg14.xls

Page 137: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Page 138: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Calculate Upper Prob

Page 139: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Calculate Upper Prob

Page 140: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Calculate Upper Prob

Using TDIST

Page 141: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Calculate Upper Prob

Using TDIST

(Check TDIST menu)

Page 142: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Calculate Upper Prob

Using TDIST

- cutoff

Page 143: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Calculate Upper Prob

Using TDIST

- cutoff

- d. f.

Page 144: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Calculate Upper Prob

Using TDIST

- cutoff

- d. f.

- upper prob. only

Page 145: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Careful: opposite from NORMDIST

Using TDIST

- cutoff

- d. f.

- upper prob. only

Page 146: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Careful: opposite from NORMDIST

use upper

Using TDIST

- cutoff

- d. f.

- upper prob. only

Page 147: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Careful: opposite from NORMDIST

use upper, NOT lower probs

Using TDIST

- cutoff

- d. f.

- upper prob. only

Page 148: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

To compute lower prob

Page 149: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

To compute lower prob

Use “1 – trick”, i.e. Not Rule of probability

Page 150: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

How about upper prob of negative?

Page 151: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

How about upper prob of negative?

Give it a try

Page 152: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

How about upper prob of negative?

Give it a try

Get an error message in response

Page 153: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

How about upper prob of negative?

Give it a try

Get an error message in response

(Click this for sometimes useful info)

Page 154: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Reason:

TDIST tuned for 2-tailed

Page 155: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Reason:

TDIST tuned for 2-tailed

(where need cutoff > 0)

Page 156: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Reason:

TDIST tuned for 2-tailed

(where need cutoff > 0)

(correct version for CIs and H. tests)

Page 157: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Approach:

Page 158: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Approach:

Use “1 – trick”

Page 159: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Approach:

Use “1 – trick”

(to write as prob. can compute)

Page 160: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

For Two-Tailed Prob

Page 161: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

For Two-Tailed Prob

TDIST is very convenient

Page 162: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

For Two-Tailed Prob

TDIST is very convenient

(much better than NORMDIST)

Page 163: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

For Interior Prob

Page 164: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

For Interior Prob

Use “1 – trick”

Page 165: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

For Interior Prob

Use “1 – trick”

TDIST again very convenient

Page 166: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

For Interior Prob

Use “1 – trick”

TDIST again very convenient

(again better than NORMDIST)

Page 167: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Now try increasing d.f.

Page 168: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Now try increasing d.f.

Big difference for small n

Page 169: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Now try increasing d.f.

Big difference for small n

But converges for larger n

Page 170: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Now try increasing d.f.

Big difference for small n

But converges for larger n

To Normal(0,1)

Page 171: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Now try increasing d.f.

Big difference for small n

But converges for larger n

To Normal(0,1)

(as expected)

Page 172: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

HW: C23

For T ~ t, with degrees of freedom:

(a) 3 (b) 12 (c) 150 (d) N(0,1)

Find:

i. P{T> 1.7} (0.094, 0.057, 0.046, 0.045)

ii. P{T < 2.14} (0.939, 0.973, 0.983, 0.984)

iii. P{T < -0.74} (0.256, 0.237, 0.230, 0.230)

iv. P{T > -1.83} (0.918, 0.954, 0.965, 0.966)

Page 173: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

HW: C23

v. P{|T| > 1.18} (0.323, 0.261, 0.240, 0.238)

vi. P{|T| < 2.39} (0.903, 0.966, 0.982, 0.983)

vii. P{|T| < -2.74} (0, 0, 0, 0)

Page 174: Administrative Matters Midterm II Results Take max of two midterm scores:

And now for something completely different

“Thinking Outside the Box”

Also Called:“Lateral Thinking”

Page 175: Administrative Matters Midterm II Results Take max of two midterm scores:

And now for something completely different

Find the word or simple phrase suggested: 

death ..... life

 

Page 176: Administrative Matters Midterm II Results Take max of two midterm scores:

And now for something completely different

Find the word or simple phrase suggested: 

death ..... life

  life after death

Page 177: Administrative Matters Midterm II Results Take max of two midterm scores:

And now for something completely different

Find the word or simple phrase suggested: 

ecnalg

 

Page 178: Administrative Matters Midterm II Results Take max of two midterm scores:

And now for something completely different

Find the word or simple phrase suggested: 

ecnalg

  backward

glance

Page 179: Administrative Matters Midterm II Results Take max of two midterm scores:

And now for something completely different

Find the word or simple phrase suggested: 

He's X  himself  

 

Page 180: Administrative Matters Midterm II Results Take max of two midterm scores:

And now for something completely different

Find the word or simple phrase suggested: 

He's X  himself  

 He's by himself

Page 181: Administrative Matters Midterm II Results Take max of two midterm scores:

And now for something completely different

Find the word or simple phrase suggested: 

THINK  

Page 182: Administrative Matters Midterm II Results Take max of two midterm scores:

And now for something completely different

Find the word or simple phrase suggested: 

THINK  

  think big ! !

Page 183: Administrative Matters Midterm II Results Take max of two midterm scores:

And now for something completely different

Find the word or simple phrase suggested: 

ababaaabbbbaaaabbbb ababaabbaaabbbb. .

Page 184: Administrative Matters Midterm II Results Take max of two midterm scores:

And now for something completely different

Find the word or simple phrase suggested: 

ababaaabbbbaaaabbbb ababaabbaaabbbb. .

long time no 'C'

Page 185: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Next explore TINV

(Inverse function)

Page 186: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Next explore TINV

(Inverse function)

(Given cutoff, find area)

Page 187: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Next explore TINV

Page 188: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Next explore TINV

Given prob. (area)

Page 189: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Next explore TINV

Given prob. (area) & d.f.

Page 190: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Next explore TINV

Given prob. (area) & d.f., find cutoff

Page 191: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Next explore TINV

Given prob. (area) & d.f., find cutoff

(next think carefully about interpretation)

Page 192: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Next explore TINV

Recall TDIST e.g. from above:

Page 193: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Next explore TINV

Recall TDIST e.g. from above:

Now invert this,

Page 194: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Next explore TINV

Recall TDIST e.g. from above:

Now invert this, i.e. given prob.

Page 195: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Next explore TINV

Recall TDIST e.g. from above:

Now invert this, i.e. given prob., find cutoff

Page 196: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Next explore TINV

Recall TDIST e.g. from above:

For same d.f.

Page 197: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Next explore TINV

Recall TDIST e.g. from above:

For same d.f., use resulting prob. as input

Page 198: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Next explore TINV

Recall TDIST e.g. from above:

For same d.f., use resulting prob. as input

But new answer is different

Page 199: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Next explore TINV

Recall TDIST e.g. from above:

Maybe due to rounding?

Page 200: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Next explore TINV

Recall TDIST e.g. from above:

Maybe due to rounding? Try exact value

Page 201: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Next explore TINV

Recall TDIST e.g. from above:

Maybe due to rounding? Try exact value

Page 202: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Next explore TINV

Recall TDIST e.g. from above:

Maybe due to rounding? Try exact value

Still get wrong answer

Page 203: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Next explore TINV

Reason for inconsistency:

Page 204: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Next explore TINV

Reason for inconsistency:

Works via 2-tailed

Page 205: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14:

Next explore TINV

Reason for inconsistency:

Works via 2-tailed, not 1-tailed, probability

Page 206: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14: Explore TINV

Works via 2-tailed, not 1-tailed, probability

Page 207: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14: Explore TINV

Works via 2-tailed, not 1-tailed, probability

Check by inverting 2-tailed answer above:

Page 208: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14: Explore TINV

Works via 2-tailed, not 1-tailed, probability

Check by inverting 2-tailed answer above:

Page 209: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14: Explore TINV

Works via 2-tailed, not 1-tailed, probability

Check by inverting 2-tailed answer above:

Get:

Page 210: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14: Explore TINV

Works via 2-tailed, not 1-tailed, probability

Check by inverting 2-tailed answer above:

Get: plug in above output

Page 211: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

Class Example 14: Explore TINV

Works via 2-tailed, not 1-tailed, probability

Check by inverting 2-tailed answer above:

Get: plug in above output, to return to input

Page 212: Administrative Matters Midterm II Results Take max of two midterm scores:

EXCEL Functions

Summary:

Normal:

Page 213: Administrative Matters Midterm II Results Take max of two midterm scores:

EXCEL Functions

Summary:

Normal:

plug in: get out:

Page 214: Administrative Matters Midterm II Results Take max of two midterm scores:

EXCEL Functions

Summary:

Normal:

plug in: get out:

NORMDIST: cutoff

Page 215: Administrative Matters Midterm II Results Take max of two midterm scores:

EXCEL Functions

Summary:

Normal:

plug in: get out:

NORMDIST: cutoff area

Page 216: Administrative Matters Midterm II Results Take max of two midterm scores:

EXCEL Functions

Summary:

Normal:

plug in: get out:

NORMDIST: cutoff area

NORMINV: area

Page 217: Administrative Matters Midterm II Results Take max of two midterm scores:

EXCEL Functions

Summary:

Normal:

plug in: get out:

NORMDIST: cutoff area

NORMINV: area cutoff

Page 218: Administrative Matters Midterm II Results Take max of two midterm scores:

EXCEL Functions

Summary:

Normal:

plug in: get out:

NORMDIST: cutoff area

NORMINV: area cutoff

(but TDIST is set up really differently)

Page 219: Administrative Matters Midterm II Results Take max of two midterm scores:

EXCEL Functionst distribution:

1 tail:

Page 220: Administrative Matters Midterm II Results Take max of two midterm scores:

EXCEL Functionst distribution:

1 tail:

plug in: get out:

Page 221: Administrative Matters Midterm II Results Take max of two midterm scores:

EXCEL Functionst distribution:

1 tail:

plug in: get out:

TDIST: cutoff

Page 222: Administrative Matters Midterm II Results Take max of two midterm scores:

EXCEL Functionst distribution:

1 tail:

plug in: get out:

TDIST: cutoff area

Page 223: Administrative Matters Midterm II Results Take max of two midterm scores:

EXCEL Functionst distribution:

1 tail:

plug in: get out:

TDIST: cutoff area

EXCEL notes: - no explicit inverse

Page 224: Administrative Matters Midterm II Results Take max of two midterm scores:

EXCEL Functionst distribution:

1 tail:

plug in: get out:

TDIST: cutoff area

EXCEL notes: - no explicit inverse

- backwards from Normal…

Page 225: Administrative Matters Midterm II Results Take max of two midterm scores:

EXCEL Functions

t distribution:

2 tail:

Page 226: Administrative Matters Midterm II Results Take max of two midterm scores:

EXCEL Functions

t distribution:

2 tail:

plug in: get out:

Page 227: Administrative Matters Midterm II Results Take max of two midterm scores:

EXCEL Functions

t distribution:

2 tail:

plug in: get out:

TDIST: cutoff

Page 228: Administrative Matters Midterm II Results Take max of two midterm scores:

EXCEL Functions

t distribution:

Area

2 tail:

plug in: get out:

TDIST: cutoff area

Page 229: Administrative Matters Midterm II Results Take max of two midterm scores:

EXCEL Functions

t distribution:

Area

2 tail:

plug in: get out:

TDIST: cutoff area

TINV: area

Page 230: Administrative Matters Midterm II Results Take max of two midterm scores:

EXCEL Functions

t distribution:

Area

2 tail:

plug in: get out:

TDIST: cutoff area

TINV: area cutoff

Page 231: Administrative Matters Midterm II Results Take max of two midterm scores:

EXCEL Functions

t distribution:

Area

2 tail:

plug in: get out:

TDIST: cutoff area

TINV: area cutoff

(EXCEL note: this one has the inverse)

Page 232: Administrative Matters Midterm II Results Take max of two midterm scores:

EXCEL Functions

Note: when need to invert the 1-tail TDIST,

Use twice the area.

Page 233: Administrative Matters Midterm II Results Take max of two midterm scores:

EXCEL Functions

Note: when need to invert the 1-tail TDIST,

Use twice the area.

Area = A

Page 234: Administrative Matters Midterm II Results Take max of two midterm scores:

EXCEL Functions

Note: when need to invert the 1-tail TDIST,

Use twice the area.

Area = A Area = 2 A

Page 235: Administrative Matters Midterm II Results Take max of two midterm scores:

t - Distribution

HW: C23 (cont.)

viii. C so that 0.05 = P{|T| > C}

(3.18, 2.17, 1.98, 1.96)

ix. C so that 0.99 = P{|T| < C}

(5.84, 3.05, 2.61, 2.58)