16
One Sample t-test

Ones Amp Let

Embed Size (px)

Citation preview

Page 1: Ones Amp Let

8/2/2019 Ones Amp Let

http://slidepdf.com/reader/full/ones-amp-let 1/16

One Sample t-test

Page 2: Ones Amp Let

8/2/2019 Ones Amp Let

http://slidepdf.com/reader/full/ones-amp-let 2/16

Review of Z-test

Used to compare sample mean to aknown population, for which you have

mu and sigma. Enables you to determine whether

difference between sample and

population means is due to chance.

Page 3: Ones Amp Let

8/2/2019 Ones Amp Let

http://slidepdf.com/reader/full/ones-amp-let 3/16

Introducing the t-test

Used when σ is not known and must be estimated

using sample standard deviation (s).

The t-statistic is a substitute for z whenever σ is

unknown New error term:

SM = Estimated standard error

Provides an estimate of the average distance

between a sample mean and the population mean

t-test has its own table of critical values

There are different types of t-tests (one sample,independent samples, and dependent samples)

Page 4: Ones Amp Let

8/2/2019 Ones Amp Let

http://slidepdf.com/reader/full/ones-amp-let 4/16

One Sample t-test Formula

Page 5: Ones Amp Let

8/2/2019 Ones Amp Let

http://slidepdf.com/reader/full/ones-amp-let 5/16

One Sample t-test Example

Research Question: Do birds findstaring aversive?

State Statistical Hypothesis:  H0: µplain side = 30 min

H1: µplain side 30 min

Sample Descriptive Statistics: M=35, s=9, n=16

Compute standard error of estimate:

 n

 s s

 X  25.2

16

9

 X  s

Page 6: Ones Amp Let

8/2/2019 Ones Amp Let

http://slidepdf.com/reader/full/ones-amp-let 6/16

Set decision Criteria:

two-tailed test (nondirectional)

Critical values in t-table based on df = n-1

For our sample, n=16, therefore df=16-1= 15 If α=.05, from t-table, tcrit = + 2.131

Compute t-test statistic:

Make decision: Reject Ho if tobtained > tcrit For our example, reject Ho because tobtained = 2.22 > tcrit = 2.131 

One Sample t-test Example

 X  s

 x t  

22.225.2

3035

 t

Page 7: Ones Amp Let

8/2/2019 Ones Amp Let

http://slidepdf.com/reader/full/ones-amp-let 7/16

The t-distribution

Page 8: Ones Amp Let

8/2/2019 Ones Amp Let

http://slidepdf.com/reader/full/ones-amp-let 8/16

t test Critical Values versus ztest Critical Values

Page 9: Ones Amp Let

8/2/2019 Ones Amp Let

http://slidepdf.com/reader/full/ones-amp-let 9/16

t table

Page 10: Ones Amp Let

8/2/2019 Ones Amp Let

http://slidepdf.com/reader/full/ones-amp-let 10/16

Example Repeated two-tailed(Directional Test)

Research Hypothesis: Birds avoideyespots.

State Statistical Hypothesis:  H0: µplain side < 30 min

H1: µplain side > 30 min

Sample Descriptive Statistics: M=35, s=9, n=16

Compute standard error of estimate:

 n

 s s

 X  25.2

16

9

 X  s

Page 11: Ones Amp Let

8/2/2019 Ones Amp Let

http://slidepdf.com/reader/full/ones-amp-let 11/16

Set decision Criteria:

one-tailed test (directional)

Critical values in t-table based on df = n-1

For our sample, n=16, therefore df=16-1= 15 If α=.05, from t-table, tcrit = 1.753

Compute t-test statistic:

Make decision: Reject Ho if tobtained > tcrit

For our example, reject Ho because tobtained = 2.22 > tcrit = 1.753 

One Sample t-test Example

 X  s

 x

 t

 

22.225.2

3035

 t

Page 12: Ones Amp Let

8/2/2019 Ones Amp Let

http://slidepdf.com/reader/full/ones-amp-let 12/16

Writing-up Test Results in APA Format

Page 13: Ones Amp Let

8/2/2019 Ones Amp Let

http://slidepdf.com/reader/full/ones-amp-let 13/16

Writing-up Test Results in APA Format

Birds spent a significantly greater amount of time on the plain side (M =35) compared to

the spotted side (M =25) of the chamber,t(15) = 2.13, p < .05.

Page 14: Ones Amp Let

8/2/2019 Ones Amp Let

http://slidepdf.com/reader/full/ones-amp-let 14/16

What does p<.05 mean?

Page 15: Ones Amp Let

8/2/2019 Ones Amp Let

http://slidepdf.com/reader/full/ones-amp-let 15/16

 Assumptions of the t-test

Same as for the z-test:

Independent Observations

Normality

For small samples (e.g., if n < 30),

violations are a problem and affect thevalidity of the hypothesis test. But if sample size is sufficiently large (e.g., if n>30),moderate violations are not a bigproblem. 

Page 16: Ones Amp Let

8/2/2019 Ones Amp Let

http://slidepdf.com/reader/full/ones-amp-let 16/16

How big is the effect?

We can use Cohen’s d to estimate effect size: 

56.9

3035

 s

 x

 d