Docsity

Hypothesis Testing in Statistics: Z-Test and T-Test for Means and Proportions - Prof. Davi, Study notes of Statistics

Toggle sidebar
bg1
MATH 203 Hypothesis Tests Synopsis
(Use the first six items from the STAT TESTS menu.)
Tests about the Mean µ
A null hypothesis of H0: =
M
versus a one-sided alternative hypotheses of
H
a
: <
M
or H
a
: >
M
1. When an assumed value of is known, then the test statistic for a Z–Test is
z
= x −M
n
This test statistic should be compared to the
z
-scores
on the N(0, 1) curve in the following situations:
(a) When sampling a normally distributed measurement with any sample size. In this
case, the test statistic follows an exact standard normal distribution.
(b) When sampling an arbitrary measurement with a large sample size. In this case, the
test statistic follows an approximate standard normal distribution. With large samples,
you also can adjust the test stat to z=x −M
S
n
because
S≈
with very large
n
.
For small samples with non-normal measurements, the Z–Test is not appropriate.
2. For a normally distributed measurement and unknown, the T–Test test statistic is
t
= x −M
S
n
.
This test statistic should be compared to the
t
-scores on the t(n−1) curve.
With normal measurements, this test statistic is good for any sample size
n≥2
.
Notes: For very large samples, then the
t
-score on the t(n−1) curve and the
z
-score
will be about the same. So the Z–Test and the T–Test should give the same conclusion.
For example, with a sample of size
n=301
, the 90%
t
-score on the t(300) curve is 1.65
while the
z
-score is 1.645. So the one-sided rejection regions with
will be
about the same in either case.
That is, with a large sample of a normal measurement, a Z–Test can still be used
with the test stat z=x −M
S
n
. (As noted above, this test stat also can be used with non-
normal measurements provided we have a very large sample because then
S≈
.)
pf3
pf4

Partial preview of the text

Download Hypothesis Testing in Statistics: Z-Test and T-Test for Means and Proportions - Prof. Davi and more Study notes Statistics in PDF only on Docsity!

MATH 203 Hypothesis Tests Synopsis

(Use the first six items from the STAT TESTS menu.)

Tests about the Mean μ

A null hypothesis of H 0 : = M versus a one-sided alternative hypotheses of Ha : < M or Ha : > M

  1. When an assumed value of is known, then the test statistic for a Z–Test is

z =

x − M

n

This test statistic should be compared to the z -scores on the N (0, 1) curve in the following situations:

(a) When sampling a normally distributed measurement with any sample size. In this case, the test statistic follows an exact standard normal distribution.

(b) When sampling an arbitrary measurement with a large sample size. In this case, the test statistic follows an approximate standard normal distribution. With large samples,

you also can adjust the test stat to z =

x − M S n

because S ≈ with very large n.

For small samples with non-normal measurements, the Z–Test is not appropriate.

  1. For a normally distributed measurement and unknown, the T–Test test statistic is

t =

x − M S n

This test statistic should be compared to the t -scores on the t ( n − 1) curve. With normal measurements, this test statistic is good for any sample size n ≥ 2.

Notes : For very large samples, then the t -score on the t ( n − 1) curve and the z -score will be about the same. So the Z–Test and the T–Test should give the same conclusion. For example, with a sample of size n = 301 , the 90% t -score on the t (300) curve is 1.

while the z -score is 1.645. So the one-sided rejection regions with = 0.05 will be about the same in either case.

That is, with a large sample of a normal measurement, a Z–Test can still be used

with the test stat z =

x − M S n

. (As noted above, this test stat also can be used with non-

normal measurements provided we have a very large sample because then S ≈ .)

Tests about a Proportion p

A null hypothesis of H 0 : p = P versus a one-sided alternative hypotheses of

Ha : p < P or Ha : p > P

The test statistic is for the 1–PropZTest is z =

p − P P (1 − P ) n

which should be compared to the z -scores on the N (0, 1) curve.

Note : If P is the true proportion, then the true standard deviation is = P (1− P ).

Example : For the test H 0 : p = 0.35, suppose a sample of size 900 gave 288 “Yes”. Then

p =

= 0.32 and the test stat is z =

0.35 × 0.

Tests about the Difference in Means

A null hypothesis of H 0 : 1 − 2 = M , versus a one-sided alternative hypotheses of Ha : 1 − 2 < M or Ha : 1 − 2 > M

  1. When values of 1 and 2 are given, then the test statistic for the 2–SampZTest is

z =

( x 1 − x (^) 2 ) − M

1

2

n 1

2

n 2

This test statistic should be compared to the z -scores on the N (0, 1) curve in the following situations:

(a) When sampling normally distributed measurements with any sample sizes. In this case, the test statistic follows an exact standard normal distribution.

(b) When sampling arbitrary measurements with large sample sizes. In this case, the test statistic follows an approximate standard normal distribution.

For small samples with non-normal measurements, the 2–SampZTest is not advisable.

For very large samples with non-normal measurements, the 2–SampZTest can be used

with the test stat

( x 1 − x 2 ) − M

S 12 n 1

S 22

n 2

because S 1 ≈ 1 and S 2 ≈ 2 with large n 1 and n 2.

Let p 1 =

x 1 n 1

and p 2 =

x 2 n 2

be the respective sample proportions and define the

pooled proportion by p ˆ =

x 1 + x 2 n 1 + n 2

(the total “Yes” over the total sampled). The test

statistic for the 2–PropZTest is

z =

( p 1 − p 2 ) p ˆ (1 − p ˆ ) n 1

p ˆ (1 − p ˆ ) n 2

which should be compared to the z -scores on the N (0, 1) curve for large sample sizes.

  1. Test for the difference being something other than 0 (This test is not built-in to the calculator.)

A null hypothesis of H 0 : p 1 – p 2 = P versus a one-sided alternative hypotheses of

Ha : p 1 – p 2 < P or Ha : p 1 – p 2 > P

We no longer pool the proportions. The test statistic is now

z =

( p 1 − p 2 ) − P p 1 (1 − p 1 ) n 1

p 2 (1− p 2 ) n 2

which should be compared to the z -scores on the N (0, 1) curve for large sample sizes.

Test about the Average Difference (such as Before/After Measurements)

A null hypothesis of H 0 : (^) d = M versus a one-sided alternative hypotheses of Ha : (^) d < M or Ha : (^) d > M

Subtract the measurements (After – Before) to obtain a new sample of the differences. Then apply the Z-Test or T-Test as appropriate according to the guidelines of Tests about the Mean