cohen chapter 4 - tysonbarrett.comtysonbarrett.com/educ-6600/slides/u01_ch4_zscores.pdf · s o me...

44
Standard and Normal Cohen Chapter 4 EDUC/PSY 6600

Upload: others

Post on 05-Sep-2019

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Standard and Normal

Cohen Chapter 4

EDUC/PSY 6600

Page 2: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

How do all these unusuals strike you, Watson? Their cumulative effect is certainly considerable,

and yet each of them is quite possible in itself.

-- Sherlock Holmes and Dr. Watson,

The Adventure of Abbey Grange

2 / 43

Page 3: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Exploring Quantitative DataBuilding on what we've already discussed:

1. Always plot your data: make a graph.2. Look for the overall pattern (shape, center, and spread) and for

striking departures such as outliers.3. Calculate a numerical summary to brie�y describe center and

spread.4. Sometimes the overall pattern of a large number of

observations is so regular that we can describe it by a smoothcurve.

3 / 43

Page 4: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Let's Start with Density Curves

A density curve is a curve that:

is always on or above the horizontal axishas an area of exactly 1 underneath it

It describes the overall pattern of a distribution and highlightsproportions of observations as the area.

4 / 43

Page 5: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Density Curves and NormalDistributions

5 / 43

Page 6: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

6 / 43

Page 7: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Many dependent variables areassumed to be normallydistributed

Many statistical procedures assumethis

Correlation, regression, t-tests,and ANOVA

Also called the Gaussiandistribution

for Karl Gauss

Normal Distribution

7 / 43

Page 8: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

8 / 43

Page 9: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

9 / 43

Page 10: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Points on the line?Bell shaped curve?

Do We Have a Normal Distribution?

Check Plot!

10 / 43

Page 11: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Standardizing

Convert a value to a standardscore ("z-score")

First subtract the meanThen divide by the standarddeviation

Z-Scores, Computation

z = =X − μ

σ

X − X̄

s

11 / 43

Page 12: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Z-Scores, Units

z-scores are in SD unitsRepresent SD distances away from the mean (M = 0)

if z-score = -0.50 then it is of SD below meanCan compare z-scores from 2 or more variablesoriginally measured in differing units

Note: Standardizing does NOT "normalize" the data

1

2

12 / 43

Page 13: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Let's Apply This to an Exmple Situation

13 / 43

Page 14: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Example: Draw a Picture

95% of students at a school are between 1.1 and 1.7meters tall

Assuming this data is normally distributed, can you calculate the MEAN and STANDARD DEVIATION?

14 / 43

Page 15: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Example: Draw a Picture

95% of students at a school are between 1.1 and 1.7meters tall

Assuming this data is normally distributed, can you calculate the MEAN and STANDARD DEVIATION?

15 / 43

Page 16: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Example: Calculate a z-Score

You have a friend who is 1.85 meters tall.

Class: M = 1.4 meters, SD = 0.15 meters

How far is 1.85 from the mean? How many standard deviations is that?

16 / 43

Page 17: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Example: Calculate a z-Score

You have a friend who is 1.85 meters tall.

Class: M = 1.4 meters, SD = 0.15 meters

How far is 1.85 from the mean? How many standard deviations is that?

17 / 43

Page 18: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Using the z-Table

18 / 43

Page 19: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Examples: Standardizing ScoresAssume: School's population of students heights are normal (M = 1.4m, SD = 0.15m)

1. The z-score for a student 1.63 m tall = __

2. The height of a student with a z-socre of -2.65 = __

3. The Pecentile Rank of a student that is 1.51 m tall = __

4. The 90th percentile for students heights = __

19 / 43

Page 20: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Examples: Standardizing ScoresAssume: School's population of students heights are normal (M = 1.4m, SD = 0.15m)

1. The z-score for a student 1.63 m tall = __

2. The height of a student with a z-socre of -2.65 = __

3. The Pecentile Rank of a student that is 1.51 m tall = __

4. The 90th percentile for students heights = __

20 / 43

Page 21: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Examples: Find the Probability That...Assume: School's population of students heights are normal (M = 1.4m, SD = 0.15m)

(1) More than 1.63 m tall

(2) Less than 1.2 m tall

(3) between 1.2 and 1.63 tall

21 / 43

Page 22: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Examples: Find the Probability That...Assume: School's population of students heights are normal (M = 1.4m, SD = 0.15m)

(1) More than 1.63 m tall

(2) Less than 1.2 m tall

(3) between 1.2 and 1.63 tall

22 / 43

Page 23: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Examples: PercentilesAssume: School's population of students heights are normal (M = 1.4m, SD = 0.15m)

(1) The perentile rank of a 1.7 m tall Student = __

(2) The height of a studnet in the 15th percentile = __

23 / 43

Page 24: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Examples: PercentilesAssume: School's population of students heights are normal (M = 1.4m, SD = 0.15m)

(1) The perentile rank of a 1.7 m tall Student = __

(2) The height of a studnet in the 15th percentile = __

24 / 43

Page 25: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Into Theory Mode Again

25 / 43

Page 26: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Parameters vs. Statistics

26 / 43

Page 27: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Statistical EstimationThe process of statistical inference involves using information from a sample todraw conclusions about a wider population.

Different random samples yield different statistics. We need to be able to describethe sampling distribution of possible statistic values in order to performstatistical inference.

We can think of a statistic as a random variable because it takes numerical valuesthat describe the outcomes of the random sampling process.

27 / 43

Page 28: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Sampling DistributionThe LAW of LARGE NUMBERS assures us that if we measure enough subjects, thestatistic x-bar will eventually get very close to the unknown parameter mu.

If we took every one of the possible samples of a certain size, calculated the samplemean for each, and graphed all of those values, we'd have a sampling distribution.

28 / 43

Page 29: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

http://shiny.stat.calpoly.edu/Sampling_Distribution/

29 / 43

Page 30: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Sampling Distribution for the MEANThe MEAN of a sampling distribution for a sample mean is just as likely to be aboveor below the population mean, even if the distribution of the raw data is skewed.

The STANDARD DEVIATION of a sampling distribution for a sample mean is isSMALLER than the standard deviation for the population by a factor of the square-root of n.

30 / 43

Page 31: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Normally Distributed PopulationIf the population is NORMALLY distributed:

31 / 43

Page 32: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

The distribution of lengths of all customer servicecalls received by a bank in a month.

The distribution of the sample means (x-bar) for500 random samples of size 80 from thispopulation. The scales and histogram classes areexactly the same in both panels

Skewed Population

32 / 43

Page 33: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

The Central Limit Theorem

33 / 43

Page 34: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

The Central Limit Theorem

When a sample size (n) is large, the samplingdistribution of the sample MEAN is approximatelynormally distributed about the mean of the populationwith the stadard deviation less than than of thepopulation by a factor of the square root of n.

34 / 43

Page 35: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Back to the Example Situation

35 / 43

Page 36: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Examples: ProbabilitiesAssume: School's population of students heights are normal (M = 1.4m, SD = 0.15m)

(1) The probability a randomly selected student is more than 1.63 m tall = __

(2) The probability a randomly selected sample of 16 students average more than 1.63 m tall = __

36 / 43

Page 37: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Examples: ProbabilitiesAssume: School's population of students heights are normal (M = 1.4m, SD = 0.15m)

(1) The probability a randomly selected student is more than 1.63 m tall = __

(2) The probability a randomly selected sample of 16 students average more than 1.63 m tall = __

Image needed here

37 / 43

Page 38: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Let's Apply This to the Cancer Dataset

38 / 43

Page 39: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Read in the Datalibrary(tidyverse) # Loads several very helpful 'tidy' packageslibrary(rio) # Read in SPSS datasetslibrary(furniture) # Nice tables (by our own Tyson Barrett)library(psych) # Lots of nice tid-bits

cancer_raw <- rio::import("cancer.sav")

39 / 43

Page 40: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Read in the Datalibrary(tidyverse) # Loads several very helpful 'tidy' packageslibrary(rio) # Read in SPSS datasetslibrary(furniture) # Nice tables (by our own Tyson Barrett)library(psych) # Lots of nice tid-bits

cancer_raw <- rio::import("cancer.sav")

And Clean It

cancer_clean <- cancer_raw %>% dplyr::rename_all(tolower) %>% dplyr::mutate(id = factor(id)) %>% dplyr::mutate(trt = factor(trt, labels = c("Placebo", "Aloe Juice"))) %>% dplyr::mutate(stage = factor(stage))

39 / 43

Page 41: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

cancer_clean %>% furniture::table1(age)

─────────────────────── Mean/Count (SD/%) n = 25 age 59.6 (12.9) ───────────────────────

# A tibble: 6 x 5 id trt age agez ageZ[,1] <fct> <fct> <dbl> <dbl> <dbl>1 1 Placebo 52 -0.589 -0.591 2 5 Placebo 77 1.35 1.34 3 6 Placebo 60 0.0310 0.02784 9 Placebo 61 0.109 0.105 5 11 Placebo 59 -0.0465 -0.04956 15 Placebo 69 0.729 0.724

Standardize a variable with scale()

cancer_clean %>% dplyr::mutate(agez = (age - 59.6) / 12.9) % dplyr::mutate(ageZ = scale(age))%>% dplyr::select(id, trt, age, agez, ageZ) %>% head()

40 / 43

Page 42: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

cancer_clean %>% dplyr::mutate(ageZ = scale(age)) %>% furniture::table1(age, ageZ)

──────────────────────── Mean/Count (SD/%) n = 25 age 59.6 (12.9) ageZ -0.0 (1.0) ────────────────────────

cancer_clean %>% dplyr::mutate(ageZ = scale(age)) %>% ggplot(aes(ageZ)) + geom_histogram(bins = 14)

Standardize a variable - not normal

41 / 43

Page 43: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Questions?

42 / 43

Page 44: Cohen Chapter 4 - tysonbarrett.comtysonbarrett.com/EDUC-6600/Slides/u01_Ch4_Zscores.pdf · S o me ti me s the ove r a ll pa tte r n o f a la rg e n u mb e r o f o b s e r va ti o

Next TopicIntro to Hypothesis Testing: 1 Sample z-test

43 / 43