Docsity

Statistical Analysis of Population Median using Sign Test and Wilcoxon Signed Rank Test, Exams of Introduction to Business Management

Toggle sidebar
bg1
Nonparametric Procedures
Inferences about the Population Median
η
• Nonparametric procedures make minimal assumption about the population distribution and
can be applied to small or large samples. Nonparametric procedures distribution free
procedures.
• Many nonparametric procedures make inference about
η
.
• If the population distribution is continuous, then ()()0PX PX .5
η
η
<
=>=
• If the population distribution is symmetric, then
η
µ
=
. The population distribution is
symmetric if for any , 0a>( ) ( )PX a P aX
η
η
<
−= >+.
• Assumptions
• The population is continuous.
• The sample is random.
• Point Estimate of
η
The sample median
is used as a point estimator of the population median
η
. The sample
median
is the observation in the middle when the data is sorted and when is odd.
When is even,
n
n
is the average of the two observations in the middle.
Sign Test for Population Median
• The three types of null and alternative hypotheses are
Two tailed tests One tailed lower tail test One tailed upper tail test
00
:H
η
η
=
0
:
a
H
η
η
≠
00
:H
η
η
≥
0
:
a
H
η
η
<
00
:H
η
η
≤
0
:
a
H
η
η
>
• Define
p
to be the probability of obtaining a value greater than 0
η
, i.e., 0
()pPX
η
=>.
• The sign test is in fact an ordinary test of the population proportion
p
and is based on the
frequency of sample observations with values greater than 0
η
.
MS 5003 1 Quantitative Methods for Business Analysis
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Statistical Analysis of Population Median using Sign Test and Wilcoxon Signed Rank Test and more Exams Introduction to Business Management in PDF only on Docsity!

Nonparametric Procedures

Inferences about the Population Median η

  • Nonparametric procedures make minimal assumption about the population distribution and can be applied to small or large samples. Nonparametric procedures distribution free procedures.
  • Many nonparametric procedures make inference about η.
  • If the population distribution is continuous, then P X ( < η) = P X ( > η) = 0.
  • If the population distribution is symmetric, then η = μ. The population distribution is

symmetric if for any a > 0 , P X ( < η− a ) = P ( X > η+ a ).

  • Assumptions
    • The population is continuous.
    • The sample is random.
  • Point Estimate of η

The sample median X ^ is used as a point estimator of the population median η. The sample median X ^ is the observation in the middle when the data is sorted and when is odd. When is even,

n n X ^ is the average of the two observations in the middle.

Sign Test for Population Median

  • The three types of null and alternative hypotheses are

Two tailed tests One tailed lower tail test One tailed upper tail test

H 0 : η =η 0

Ha : η ≠η 0

H 0 : η ≥η 0

Ha : η <η 0

H 0 : η ≤η 0

Ha : η >η 0

  • Define p to be the probability of obtaining a value greater than η 0 , i.e ., p = P X ( > η 0 ).
  • The sign test is in fact an ordinary test of the population proportion p and is based on the

frequency of sample observations with values greater than η 0.

  • Therefore, the three types of hypotheses above are equivalent to

Two tailed tests One tailed lower tail test One tailed upper tail test H (^) 0 : p = 0. 5 5

H (^) a : p ≠0. 5

H (^) 0 : p ≥0. H (^) a : p <0.

H (^) 0 : p ≤ 0. 5 H (^) a : p >0. 5

  • If H (^) 0 is true, then 50% of the observations will be less than η 0 and 50% of the observations

will be greater than η 0.

  • Because the sign test is equivalent to the test of population proportion, the sample size must

be large. If an observation is treated as a success if X > η 0 or failure otherwise, the

population is binomial rather than normal.

  • Theoretically, there should not be any sample observations equal to η 0. Practically, we may

have sample observations equal to η 0 occasionally because of rounding. In this case, we

discard these observations and reduce the sample size accordingly. If too many observations

are equal to η 0 , the assumption of continuous distribution is in doubt.

  • Example Over the years, the median of the time that residential customers of a city public service company pay their bills has been 18 days after billing. Recently, the company decided to charge a 8% annual interest for any amount that is overdue. The management wants to test if such a measure has reduced the median time that the residential customers pay their bills

after billing. The test should be conducted at α = 0.05. Suppose a random sample of 120

observations has been selected as given in the following table. The null and alternative hypotheses are

H 0 : η ≥ 18

H a : η < 18

or equivalently H (^) 0 : p ≥ 0. 5 H (^) a : p <0. 5

Wilcoxon Signed Rank Test for Population Median

  • If the population is approximately symmetric, the Wilcoxon signed rank test is more powerful than the sign test.
  • The Wilcoxon signed rank test can be applied to a single sample to test the following alternatives

Two tailed tests One tailed lower tail test One tailed upper tail test

H 0 : η =η 0

Ha : η ≠η 0

H 0 : η ≥η 0

Ha : η <η 0

H 0 : η ≤η 0

Ha : η >η 0

  • Assumptions
    1. The population is continuous and approximately symmetric.
    2. The sample is random.
  • The steps of the procedure are

1. Compute the differences Xi − η 0.

  1. Sort the absolute values of the differences.
  2. Assign signed ranks to the nonzero absolute differences. Omit any difference that is a 0. If there is a tie, assign the average as the rank to the tied differences. The sign of the rank is the same as that of the difference.
  3. Compute the test statistic W 1

n = (^) ∑ i = Ri. Compute the variance of the Wilcoxon statistic

2 2 1

n W (^) i i

σ R n n

=

= (^) ∑ = +^ n +^ 1).

  • Different quantities may be used as the Wilcoxon test statistic. For example, the sum of the signed ranks, the sum of the positive ranks, or the smaller of the sum of the positive ranks and the sum of the negative ranks. We will use the sum of the ranks. For small samples, tables are available to determine the action limits on the value of the Wilcoxon test statistic. For large samples, e.g ., when n ≥ 10 , use the normal approximation, i.e ., W

z W

= σ has an

approximate standard normal distribution.

  • Example The actual expenses of state employees on their international business trips are fully reimbursed. In the past the population median expense was $185. An auditor wants to test if

this median has increased or not at a significance α = 0.05. She selected a sample of 16

reimbursement vouchers and the daily expenses are listed in the following table

i (^) X (^) i i (^) X (^) i i (^) X (^) i i (^) Xi 1 269.49 5 196.55 9 257.61 13 194. 2 228.76 6 163.30 10 203.27 14 152. 3 228.10 7 209.01 11 284.47 15 170. 4 205.76 8 287.54 12 157.16 16 209.

The null and alternative hypotheses are

H 0 : η ≤ 185

Ha : η > 185

In this case, the sample size n = 16 is sufficient large. Because α = 0.05, ,

the decision rule is

z α (^) = z 0.05 =1.

Do not reject H 0 if z ≤1. Reject H (^) 0 if z >1.65. To compute the test statistic, we follow the steps.

Step 1. Subtract η 0 from each observation to obtain the differences Xi − η 0. The

following is obtained

i Xi − η 0 i Xi − η 0 i Xi − η 0 i Xi − η 0

Step 2. Sort the absolute values of the differences. These sorted absolute differences are

listed in the following table in the columns labeled Xi − η 0

Two tailed tests One tailed lower tail test One tailed upper tail test

H 0 : η D = 0

Ha : η D ≠ 0

H 0 : η D ≥ 0

Ha : η D < 0

H 0 : η D ≤ 0

Ha : η D > 0

  • The difference between the test for population median and the test for the median of

differences of pared observations in the procedure is that in the former η 0 is subtracted from

each observation and in the latter the difference of each pair is used.

  • Example A tax preparation firm claimed that taxpayers would save money if they use the firm to prepare their state tax returns. A consumer protection agency selected a random sample of individuals who have prepared their returns to have their return redone by the firms. The amounts of tax each individual should pay calculated by the individual themselves and by the firm are given in the following table. A negative number represents a refund.

n = 15

Individual ( i ) (^) Self ( X (^) i ) Firm ( Yi ) 1 65 – 2 –2229 – 3 1648 1669 4 2438 2488 5 –696 – 6 1969 2025 7 –1317 – 8 2100 1881 9 2161 2393 10 1140 1146 11 –69 – 12 –704 – 13 –223 – 14 2062 2307 15 –85 –

Use the Wilcoxon signed rank test to test if there is significant difference in the amounts

individuals should pay at α = 0.05.

  • Solution The null and alternative hypotheses are

H 0 : η D = 0

Ha : η D ≠ 0

The sample size is large enough, therefore, the normal approximation is used. In this case z (^) α 2 = z 0.25 = 1.96. The decision rule is Do not reject H 0 if − 1.96 ≤ z ≤1. Reject H (^) 0 if z < −1.96 or z >1.96.

We now compute the test statistic. The and their signed ranks are given in the following

table

D i

Individual ( ) i (^) Self ( X (^) i ) Firm ( Yi ) Di = X (^) i − Yi Ri 1 65 –81 146 11 2 –2229 –2339 110 10 3 1648 1669 –21 – 4 2438 2488 –50 – 5 –696 –666 –30 – 6 1969 2025 –56 – 7 –1317 –1108 –209 – 8 2100 1881 219 12 9 2161 2393 –232 – 10 1140 1146 –6 – 11 –69 –132 63 7 12 –704 –782 78 9 13 –223 –153 –70 – 14 2062 2307 –245 – 15 –85 –78 –7 –

Hence,

1

n W = (^) ∑ i = Ri = − , σ (^) W^2 = 15(15^ +^ 1)(2(15) 6 +1)^ = 1240 and z = (^) σ WW = 1240 −^22 = −0.6248. The

conclusion is not to reject H (^) 0 because−1.96 < z < 1.96.

The following is the MINITAB printout

H 0 : η 1 =η 2

Ha : η 1 ≠η 2

H 0 : η 1 ≥η 2

Ha : η 1 <η 2

H 0 : η 1 ≤η 2

Ha : η 1 >η 2

Or equivalently Two Tailed Test One Tailed Lower Tail Test One Tailed Upper Tail Test

H 0 : δ = 0

Ha : δ ≠ 0

H 0 : δ ≥ 0

Ha : δ < 0

H 0 : δ ≤ 0

Ha : δ > 0

  • The test statistic is computed in the following steps
    1. Combine the two samples from the two populations and sort the observations in the ascending order.
    2. Assign ranks to the observations starting from 1. If there is a tie, assign the average to the tied observations. Use R^1 i and R i^2 to denote the ranks of the observations in sample 1 and sample 2 respectively.
    3. Sum the ranks from the first sample and denote the sum by W , i.e ., W R.

(^1 ) 1

n = (^) ∑ i = i

  • The smallest possible value of W is^ n^1^^ (1 2 +^ n^1 ) and the largest possible value of W is

1 2 1 (1^1 ) 2 n n +^ n^ + n.

  • The mean and variance of W are

[ ] 1 (1^1 ) W 2

μ = E W = n^ +^ n^ + n^2 and 2 1 2 (1^1 2 )

W 12

σ = n n^ +^ n^ + n.

  • If and are both sufficiently large, e.g ., and , W is approximately

normally distributed. Therefore

n 1 n 2 n 1 (^) ≥ 10 n 2 (^) ≥ 10 W W

z W^ μ

= − has approximately a standard normal

distribution. Therefore, the decision rule can be set up accordingly.

  • Example In a random sample of homeowners, each was asked to state the maximum amount they would pay, denoted by

n 1 (^) = 12 X (^) i , for an electric stick-free cooking pan based a video demonstration. In another random sample of n 2 (^) = 15 homeowners, each was asked to do the

same thing but was shown the actual electric stick-free cooking pan. The maximum amount stated by each in the second sample is denoted by Yi. The results are in the following.

X (^) i Yi 30 35 34 38 43 33 37 45 43 37 33 31 29 45 41 28 28 44 28 33 30 37 36 46 38 38 32

If the stated maximum amount does not have a normal distribution, therefore, the t test for two population means cannot be used. Test if the homeowners are willing to pay a larger

amount if they have seen the product with the Mann-Whitney-Wilcoxon test at α = 0.05.

  • Solution The null and alternative hypotheses are

H 0 : η 1 ≥η 2

Ha : η 1 <η 2

The critical value given α = 0.05is z α = z 0.05=. The decision rule is

Do not reject H 0 if z ≥ −1.

Reject H (^) 0 if z < −1.65. The test statistic is computed through the following table

X (^) i or Yi (^) Sample R^1 i R i^2 28 1 2 28 2 2 28 2 2 29 1 4 30 1 5. 30 1 5. 31 1 7 32 2 8 33 1 10 33 1 10 33 2 10 34 1 12 35 1 13 36 2 14 37 1 16

  • Assumptions
    1. The population distributions are continuous and have the same shape.
    2. The samples are independent.
  • The null and alternative hypotheses are

H 0 : η 1 = η 2 = "=η c

H a :Not all η j ’s are equal.

  • Note, if H (^) 0 is rejected, it is possible that all η (^) j ’s are different or only some of them are

different. To find which ones are different, pairwise comparisons need to be made.

  • The test statistic is computed in the following steps
    1. Combine the samples and sort the observations in the ascending order.
    2. Assign ranks to the observations starting from 1. If there is a tie, assign the average to the tied observations.
    3. Compute

2

1

c (^) j j j

R

H (^) n n n n

= ^ −

Where n is the total number of observations in all samples, n (^) j is the size of sample j , is the

number of samples, and (

c

∑^ R^ )^2 j is the square of the sum of the ranks assigned to sample^ j^.

  • If the sample sizes are sufficiently large, e.g ., , may be approximated with a Chi-

square distribution with c degrees of freedom.

n (^) j ≥ 5 H − 1

  • The decision rule for a given α is

Do not reject H 0 if H ≤χ α , c − 1

Reject H 0 if H >χ α , c − 1

  • Example An industrial psychologist desires to test if the reaction times of assembly workers are the same under three working environments - dark, dim and bright. From a group of 25 workers, 9 were assigned to the dark, 8 were assigned to dim and the other 8 to bright. The times

needed to complete a task given by the industrial psychologist are given in the following table. Environment Dark Dim Bright 14 13 19 16 19 15 13 21 18 18 15 15 20 17 16 14 21 17 18 15 17 13 16 19 15

Conduct the Kruskal-Wallis test at α = 0.05.

  • Solution The null and alternative hypotheses are

H 0 : η 1 = η 2 =η 3

H a :Not all η j ’s are equal.

Because α = 0.05and c = 3 , χ α 2 , c − 1 = χ0.05,2^2 =5.991, the decision rule is

Do not reject H 0 if H ≤5. Reject H (^) 0 if H >5.991. Next we compute the test statistic H. The following table lists the ranks

Environment Dark Dim Bright 4.5 2 21 12 21 8 2 24.5 18 18 8 8 23 15 12 4.5 24.5 15 18 8 15 2 12 21 8

  • When the data is in an ordinal scale, Spearman’s rank correlation can be used to measure the association of two variables.
  • Spearman’s coefficient of rank correlation, rs , is defined as

2 (^12)

n i i s

D

r = − (^) n n^ = − )

∑

where is the difference between the ranks of the i th pair of observations and is the number of paired observations.

D i n

  • The range of rs is

− 1 ≤ rs ≤ 1. A rs^ = − 1 indicate perfect negative correlation, a rs^ =^1 indicates a perfect positive correlation, while a rs = 0 indicates no correlation, between the two variables.

  • Example In a training program, employees are selected and trained at company expenses. In an effort to improve the program, a test designed to measure motivation was given to 12 trainees before they entered the program. At the end of the training, comprehensive course performance scores were collected from the same trainees. The sets of motivation and performance scores were each ranked, with rank 1 assigned to the person with the greatest motivation upon entering the program and the person with the highest performance score. The data is given in the following table Trainee Rank Motivation Performance Di^ D i^2 1 3 7 -4 16 2 7 2 5 25 3 1 4 -3 9 4 11 9 2 4 5 2 1 1 1 6 9 12 -3 9 7 6 5 1 1 8 4 6 -2 4 9 5 3 2 4 10 10 8 2 4 11 12 11 1 1 12 8 10 -2 4

Compute the Spearman‘s coefficient of correlation.

  • Solution

2 (^12 )

n i i s

D

r = − (^) n n^ = − = − (^) − =

∑ .

  • To test if rs is significantly different from 0, we have the following hypotheses

H (^) 0 : rs = 0 H (^) 0 : rs ≠ 0

If H 0 is true, μ r s = 0 and μ rs = n^1 − 1. When n is sufficiently large, e.g ., n ≥ 10 ,

z s^ r^ s^ rs n

s s

s r r

r μ r

has an approximate standard normal distribution.

For a specified α , the decision rule is

Do not reject H 0 if| z |≤ z α 2 Reject H 0 if| z |> z α 2.

  • Example

For the example above, test if rs is significantly different from 0 at α = 0.05.

The null and alternative hypotheses are H (^) 0 : rs = 0 H (^) 0 : rs ≠ 0 Because z (^) α 2 = z 0.25 = 1.96, the decision rule is Do not reject H 0 if | z | ≤1. Reject H 0 if | z | >1.96.

In this case, 0.713^ 2. 1 1 1 11

z r^ s n

Hence, the conclusion is to reject H (^) 0 because z >1.96.