Docsity

Solved Assignment 3 - Probability and Statistics | PSTAT 120C, Assignments of Probability and Statistics

Toggle sidebar
bg1
PSTAT 120C: Solutions to Assignment # 3 April 27, 2009
1. (a) In this data we observe that 8 out of the 10 hospitals had higher recovery rates for Drug
B rather than for Drug A. Under the null hypothesis that there is no difference between
the two drugs, the number of hospitals where drug B has a higher recovery rate should
be a binomial with n= 10 and p= 0.5. The associated Pvalue for this test
P= 2P{M≥8}= 2 10
10+10
9+10
82−10 = 0.109375.
There doesn’t seem to be a significant difference between the two drugs.
(b) The t-test may not be appropriate because the measurement that we have is a percentage
and therefore cannot be greater than 100. This sort of restriction can cause the data to
be skewed, and have a non-normal distribution.
2. I want to compare the power of a nonparametric test to a typical normal test. Suppose I have
150 independent observations from a normal distribution with mean µand standard deviation
10. I want to test
H0:µ= 0 vs. HA:µ > 0
Let M= the number of observations that are greater than 0, and ¯x= the average of the 150
observations.
(a) The critical value the critical region C1={¯x>z∗}for α= 0.05 can be calculated by
figuring
P{Z > 1.645}= 0.05
=⇒Pµ+σ
√nZ > 0 + 10
√1501.645= 0.05
=⇒P{¯x > 1.343}= 0.05
Therefore, z∗= 1.343.
(b) The critical value m∗for the critical region C2={M > m∗}for α= 0.05 means
P{Z > 1.645}= 0.05
=⇒PE(M) + √VarM Z > 75 + 1
2√751.645= 0.05
=⇒P{M > 85.07}= 0.05
So that we would reject if M≥86 and m∗= 85.
(c) The power of C1when µ= 2 is
P{¯x > 1.343}=P¯x−2
10/√150 >1.343 −2
10/√150
=P{Z > −0.80}= 1 −0.2119 = 0.7881
1
pf3
pf4

Partial preview of the text

Download Solved Assignment 3 - Probability and Statistics | PSTAT 120C and more Assignments Probability and Statistics in PDF only on Docsity!

PSTAT 120C: Solutions to Assignment # 3 April 27, 2009

  1. (a) In this data we observe that 8 out of the 10 hospitals had higher recovery rates for Drug B rather than for Drug A. Under the null hypothesis that there is no difference between the two drugs, the number of hospitals where drug B has a higher recovery rate should be a binomial with n = 10 and p = 0.5. The associated P value for this test

P = 2P{M ≥ 8 } = 2

2 −^10 = 0. 109375.

There doesn’t seem to be a significant difference between the two drugs. (b) The t-test may not be appropriate because the measurement that we have is a percentage and therefore cannot be greater than 100. This sort of restriction can cause the data to be skewed, and have a non-normal distribution.

  1. I want to compare the power of a nonparametric test to a typical normal test. Suppose I have 150 independent observations from a normal distribution with mean μ and standard deviation
    1. I want to test H 0 : μ = 0 vs. HA : μ > 0 Let M = the number of observations that are greater than 0, and ¯x = the average of the 150 observations.

(a) The critical value the critical region C 1 = {x > z¯ ∗} for α = 0.05 can be calculated by figuring

P{Z > 1. 645 } = 0. 05

=⇒ P

μ +

σ √ n

Z > 0 +

=⇒ P{x >¯ 1. 343 } = 0. 05

Therefore, z∗^ = 1.343. (b) The critical value m∗^ for the critical region C 2 = {M > m∗} for α = 0.05 means

P{Z > 1. 645 } = 0. 05

=⇒ P

E(M ) +

Var M Z > 75 +

=⇒ P{M > 85. 07 } = 0. 05

So that we would reject if M ≥ 86 and m∗^ = 85. (c) The power of C 1 when μ = 2 is

P{x >¯ 1. 343 } = P

x¯ − 2 10 /

= P{Z > − 0. 80 } = 1 − 0 .2119 = 0. 7881

(d) If μ = 2 in the sign test then the probability that any one of the observations is greater than 0 is P{X > 0 } = P

X − μ σ

Thus, under this alternative, the statistic M is a binomial with n = 150 still but now p = 0.5703. Under the null hypothesis the expected value is 85 which is large enough that the normal approximation is still valid. Therefore, the power of the test is

P{M > 85 } = P{

M − np √ np(1 − p)

≈ P{Z > − 0. 09 } = 0. 5358

  1. Suppose that we have 6 observations, and we want to test whether the median= 0 or if it is greater than 0. Let T −^ be the Wilcoxon signed-rank statistic for the observations that are less than 0.

(a) To get T −^ = 2 means the only observation that is less than 0 is the one with the second ranked magnitude. This is only one of the 2^6 possible ways the “+” and “−”’s could fall.

P 0

T −^ = 2

(b) For T −^ = 5, the set of ranks less than zero must be { 1 , 4 }, { 2 , 3 }, or just { 5 }. This has probability P 0

T −^ = 5

(c) For the set T −^ ≤ 3, we need to include the outcomes T −^ = 0, T −^ = 1, T −^ = 2, and T −^ = 3. The sets of ranks that would have to be negative to give us one these is ∅, { 1 }, { 2 }, { 1 , 2 }, or { 3 }.

P 0

T −^ ≤ 3

= P 0

T −^ = 0

+ P 0

T −^ = 1

+ P 0

T −^ = 2

+ P 0

T −^ = 3

= 2−^6 + 2−^6 + 2−^6 + 2(2−^6 )

= 5(2−^6 ) = 0. 078125.

  1. In order to test the efficiency of some new statistical software, it was tested against the old software using some real data. Each program was run on 10 data sets and timed to see how long it would take to produce the output. Test whether or not the new software runs significantly faster using a signed-rank test. Use α = 0.05.

Then

22 , 575 − E

∣ 22 , 575 − T −

n(n + 1)(2n + 1)/ 24 E |Z|

= 22, 575 −

π = 21, 375. 18

(c) The P value for this test can be generated from the normal approximation

P = 2P{T +^ ≤ 19 , 300 }

= 2P

T +^ − 22 , 575

≈ 2 P{Z < − 2. 18 }

Thus, there is sufficient evidence to reject the null hypothesis at a α = 0.05 level.