Docsity

Lecture XXV: Hypothesis Testing in Mathematical Statistics - Prof. Charles Britt Moss, Study notes of Introduction to Macroeconomics

Toggle sidebar
bg1
1
Examples and Multivariate Testing
Lecture XXV
I. Examples.
A. Example 9.6.1 (mean of a binomial distribution) Assume that we want to
know whether a coin toss is biased based on a sample of ten tosses.
B. Our null hypothesis is that the coin is fair (
01
:2
Hp
) versus an
alternative hypothesis that the coin toss is biased towards heads (
11
:2
Hp
).
1. Assume that you tossed the coin ten times and observed eight
heads. What is the probability of drawing eight heads from ten
tosses of a fair coin?
0 1 2
10 9 8
10 10 10
8 1 1 1
10 9 8
P n p p p p p p
If
12
p
,
8 0.054688Pn
. Thus, we reject
0
H
at a
confidence level of 0.10 and fail to reject
0
H
at a 0.05 confidence
level.
2. Moving to the Likelihood ratio test:
2
8
2
8
.5
.5 1 .5 .1455 ˆ.8
.8 1 .8 MLE
p
p
Given that
We reject the hypothesis of a fair coin toss at a 0.05 confidence
level. (
2ln 3.854
) and the critical region for a chi-squared
distribution at one degree of freedom is 3.84.
C. Example 9.6.2. Suppose the heights of male Stanford students is
distributed
2
,N
with a known variance of 0.16.
1. Assume that we want to test whether the mean of this distribution
is 5.8 against the hypothesis that the mean of the distribution is 6.
What is the test statistic for a 5 percent level of confidence and a
10 percent level of confidence?
2. Under the null hypothesis
.16
~ 5.8, 10
XN
pf3
pf4
pf5

Partial preview of the text

Download Lecture XXV: Hypothesis Testing in Mathematical Statistics - Prof. Charles Britt Moss and more Study notes Introduction to Macroeconomics in PDF only on Docsity!

Examples and Multivariate Testing

Lecture XXV

I. Examples.

A. Example 9.6.1 (mean of a binomial distribution) Assume that we want to know whether a coin toss is biased based on a sample of ten tosses. B. Our null hypothesis is that the coin is fair ( H (^) 0 : p^12 ) versus an alternative hypothesis that the coin toss is biased towards heads ( H 1 (^) : p^12 ).

  1. Assume that you tossed the coin ten times and observed eight heads. What is the probability of drawing eight heads from ten tosses of a fair coin? (^10 10 0 10 9 1 ) 8 1 1 1 10 9 8

P n p p p p p p

If^1 2 p , P n 8 0.054688. Thus, we reject H 0 at a confidence level of 0.10 and fail to reject H 0 at a 0.05 confidence level.

  1. Moving to the Likelihood ratio test: 8 2 8 2

.8 1 .8 ˆ^ MLE.

p p

Given that 2 2 ln ~ 1

We reject the hypothesis of a fair coin toss at a 0.05 confidence level. ( 2ln 3.854) and the critical region for a chi-squared distribution at one degree of freedom is 3.84. C. Example 9.6.2. Suppose the heights of male Stanford students is distributed (^) N ,^2 with a known variance of 0.16.

  1. Assume that we want to test whether the mean of this distribution is 5.8 against the hypothesis that the mean of the distribution is 6. What is the test statistic for a 5 percent level of confidence and a 10 percent level of confidence?
  2. Under the null hypothesis . ~ 5.8, 10

X N

Professor Charles Moss Fall 2005

The test statistic then becomes 6 5. 1.58 ~ 0, .

Z N

Given that P Z 1.58 0.0571, we have the same decisions as above, namely that we reject the hypothesis at a confidence level of 0.10 and fail to reject the hypothesis at a confidence level of 0.05. D. Example 9.6.3 (mean of normal with variance unknown) Assume the same scenario as above, but that the variance is unknown, but estimated to be 0.16. The test then becomes:

9

X

t

The computed statistic becomes P t 9 1.58^ 0.074. E. Example 9.6.7 (differences in variances). In lecture XVIII, we discussed the chi-squared distribution as a distribution of the sample variance:

  1. Theorem 5.4.1: Let X 1 (^) , X (^) 2 ,  Xn be a random sample from a N ,^2 distribution, and let

1

1 n X (^) n i Xi

and 2 2 1

n S (^) i X (^) i X n

Then a) X and S^2 are independent random variables b) X N n

2 ~ ,

c)

2 2

N 1 S

has a chi-squared distribution with n 1 degrees of freedom.

  1. Given the distribution of the sample variance, we may want to compare two sample variances: 2 2 2 2 2 ~^ X^1 and^2 ~ Y^1

X X Y Y n n X Y

n S n S

Professor Charles Moss Fall 2005

  1. Building on this concept, assume that we can design a matrix A such that A A I. This theorem relies on the eigenvalues of the matrix. a) Specifically, the eigenvalues of the matrix are defined by the solution of the equation det I 0. (1) These values are real if the matrix is symmetric and positive if the matrix is positive definite. In addition, if the matrix is positive definite, there are k distinct eigenvalues. (2) Associated with each eigenvalue is an eigenvector, u , defined by u^ I^0. b) Carrying the eigenvector multiplication through implies (^0) where is a matrix of eigenvectors and is a diagonal matrix of eigenvalues. By construction, the eigenvectors are orthogonal so that I. Thus, . The above decomposition is guaranteed by the diagonal nature of.
  2. Assuming that this matrix is constant, we can change the hypothesis to H 0 : 0 with A ˆ^ ~ N A , I

This transformation implies

1

: ˆ^ ' ˆ

R A A A A c

A A A A

c

  1. Note that the likelihood ratio test for this scenario becomes: 1

1 ˆ

exp ' 2 (^1) ˆ ˆ max exp ' MLE 2^ MLE^ MLE

Given that (^) MLE goes to , the numerator of the likelihood ratio test becomes one and 1 2 ˆ (^0) ' ˆ 0 ~ (^) k

Professor Charles Moss Fall 2005

B. A primary problem in the construction of these statistics is the assumption that we know the variance matrix. If we assume that we know the variance matrix to a scalar ( 2 Q where Q is known and 2 is unknown), the test becomes 1 0 0 2

ˆ Q ˆ

c

Using the traditional chi-squared result 2 2 ~^ M

W

Dividing the first expression by the second yields 1 0 0

Q

F K M

W

M