Question #250887

In order to know the age at which student smokers started smoking, 15 randomly selected students

smokers about the age they started smoking. The results is shown below.

21 17 20 19 16 15 17 18 25 24 19 16 22 19 23

(a) Using the sign test and the critical region method, test at 10% significance level the

hypothesis that the third quartile is 20 years.

(b) Use to the Wilcoxon Signed Rank test to test at 10% level of significance whether the median

age is less than 19 years.


1
Expert's answer
2021-10-17T16:51:49-0400

 a.

Let Q3Q3 be the third quartile. We perform the sign test as follows.

Hypothesis tested is,

H0:Q3=20H_0:Q3=20

AgainstAgainst

H1:Q320H_1:Q3\not=20

X 21 17 20 19 16 15 17 18 25 24 19 16 22 19 23

 Xi-20 +1 -3 0 -1 -4 -5 -3 -2 +5 +4 -1 -4 +2 -1 +3

Sign + - - - - - - + + - - + - +

Let n+n+ be the total number of plus signs and nn- be the total number of minus signs.

From this summary, there are 5 plus signs and 9 minus signs. Therefore, n+=5n+=5 and n=9n-=9 and nn is the total number of observations excluding those whose differences(Xi20)(X_i-20) are 0. Thus n=n++n=5+9=14n=n++n-=5+9=14 .

Let us determine the test statistic mm given as, m=minimum(n+,n)=minimum(5,9)=5m=minimum(n+,n-)=minimum(5,9)=5

To run the sign test, we use the binomial distribution tables where our probability p=0.75p=0.75 since if the null hypothesis were true then we expect 75% of the values to be below the third quartile and 25% of the values to be above the third quartile. Therefore, the test is a simple binomial experiment with 0.75 chance of the sign being positive and 0.25 of it being negative.

The number of trials are n=14n=14 as stated above and the number of successes is m=5m=5.

Using the critical region method, let us define the following.

Rejection region is (m5)(m\leqslant5) and acceptance region is (m>5)(m\gt5).

Therefore, we find p(m5)p(m\leqslant5) with n=14n=14 and number of successes is 5. We use the following commands in RR.

pbinom(5,14.0.75)pbinom(5,14.0.75) which gives 0.00220.0022 to 4 decimal places. This probability is the pvaluep-value which is compared with α=0.1\alpha=0.1 and the null hypothesis rejected if pvalue<αp-value\lt\alpha .

Since pvalue=0.0022<α=0.1,p-value=0.0022\lt \alpha=0.1, we reject the null hypothesis and conclude that there is sufficient evidence to show that the third quartile is not equal to 20.

b.

In order to perform the Wilcoxon signed rank test, let us first summarize our data as follows.

H0:m=19H_0:m=19

AgainstAgainst

H1:m<19H_1:m\lt19


X 21 17 20 19 16 15 17 18 25 24 19 16 22 19 23

Xi-19 +2 -2 +1 0 -3 -4 -2 -1 +6 +5 0 -3 +3 0 +4

|Xi-19| 2 2 1 3 4 2 1 6 5 3 3 4

This test requires us to sort the absolute values from small to largest and then rank them with the smallest value assigned rank 1. Differences equal to zero are dropped and incase of tied ranks average rank is assigned.

Now,

|Xi-19| 1 1 2 2 2 3 3 3 4 4 5 6

sign - + - - + - - + - + + +

rank 1.5 1.5 4 4 4 7 7 7 9.5 9.5 11 12

Let W1 be the sum of ranks assigned to positive differences(Xi19)(X_i-19) and W2 be the sum of ranks assigned to negative differences(Xi19)(X_i-19) then,

W1=1.5+4+7+9.5+11+12=45

W2=1.5+4+4+7+7+9.5=33

After dropping values whose differences are 0, our new n=12n=12

Test statistic is W=minimum(33,45)=33W=minimum(33,45)=33 and the test statistic WW is normally distributed with mean μW=n(n+1)/4=1213/4=39\mu_W=n(n+1)/4=12*13/4=39 and standard deviation σW=(n(n+1)(2n+1)/24)=(121325)/24=162.5\sigma_W=\sqrt{(n(n+1)(2n+1)/24)}=\sqrt{(12*13*25)/24}=162.5

The standardized test statistic is given as,

z=(WμW)/σW=(3339)/162.5=0.0369(4 decimal places)z=(W-\mu_W)/\sigma_W=(33-39)/162.5=-0.0369(4\space decimal\space places) and its z=0.0369=0.0369|z|=|-0.0369|=0.0369 is compared with the table value ZαZ_\alpha at α=0.1\alpha=0.1.

Zα=2.33Z_\alpha=2.33 and the null hypothesis is rejected if z>Zα|z|\gt Z\alpha .

Since z=0.0368<Zα=2.33|z|=0.0368\lt Z\alpha=2.33, we fail to reject the null hypothesis and conclude that sufficient evidence do not exist to show that the median value less than 19 at 10% level of significance.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS