Docsity

Discussion #7 - Testing Without Normality | STAT 371, Study notes of Statistics

Toggle sidebar
bg1
Quoc Tran B248D MSC [email protected]
STAT 371 Discussion #7 Testing without normality
1. Two independent samples - Wilcoxon-Mann-Whitney Test (Sect. 7.11)
•Applicability: when we have two independent samples without normality.
•Statement of H0and HA:
H0: The population distribution of Y1and Y2are the same.
HA: The population distribution of Y1and Y2are different.
•Steps to do:
(a) Sort data in Y1and Y2
(b) Determine K1and K2as follows:
–The K1count: for each observation in sample 1, we count the number of
observations in sample 2 that are smaller in value. We count 1/2 for each tied
observation. The sum of all counts in sample 1 is K1
–The K2count: for each observation in sample 2, we count the number of
observations in sample 1 that are smaller in value. We count 1/2 for each tied
observation. The sum of all counts in sample 2 is K2
–Check: if the work is correct, K1+K2=n1n2
(c) Test statistics Usis the larger of K1and K2:Us=max{K1, K2}
(d) P-value are bracketed from Table 6 with n = the larger sample size, and n’ = the
smaller sample size.
(e) Conclusion: reject H0when p−value < α
•Directional alternative: if the HAis directional rather than nondirectional, the WMW
has two steps:
(a) Step 1. Check to see if data deviate from H0in the direction specified by HA. If
not, p-value is greater than 0.5 and we can not reject H0. If so, proceed to step 2.
(b) Step 2. The p-value are bracketed from the one-tail title instead of the two-tail as
in the nondirectional.
•Conditions for use of WMW: we still need randomness and independence of data.
•Example: Prob. 7.80 in the text book (P. 297)
2. Paired Samples - Sign Test (Sect. 9.4)
•The sign test is a nonparametric test that does not depend on a normal assumption for
the population of differences.
•To carry out a sign test, we ignore the magnitude of differences and just record whether
each difference is positive or negative.
•P-values are then computed from a binomial distribution with p= 0.5.
•Technically, the sign test is not testing equality of population means. Instead, a sign test
is testing if the differences are equally likely to be positive versus either a nondirectional
or directional alternative.
Office hours: Mon 3:00-5:00pm 1http://www.stat.wisc.edu/∼tran
pf2

Partial preview of the text

Download Discussion #7 - Testing Without Normality | STAT 371 and more Study notes Statistics in PDF only on Docsity!

Quoc Tran B248D MSC [email protected]

STAT 371 Discussion #7 Testing without normality

  1. Two independent samples - Wilcoxon-Mann-Whitney Test (Sect. 7.11)
    • Applicability: when we have two independent samples without normality.
    • Statement of H 0 and HA: H 0 : The population distribution of Y 1 and Y 2 are the same. HA: The population distribution of Y 1 and Y 2 are different.
    • Steps to do: (a) Sort data in Y 1 and Y 2 (b) Determine K 1 and K 2 as follows: - The K 1 count: for each observation in sample 1, we count the number of observations in sample 2 that are smaller in value. We count 1/2 for each tied observation. The sum of all counts in sample 1 is K 1 - The K 2 count: for each observation in sample 2, we count the number of observations in sample 1 that are smaller in value. We count 1/2 for each tied observation. The sum of all counts in sample 2 is K 2 - Check: if the work is correct, K 1 + K 2 = n 1 n 2 (c) Test statistics Us is the larger of K 1 and K 2 : Us = max{K 1 , K 2 } (d) P-value are bracketed from Table 6 with n = the larger sample size, and n’ = the smaller sample size. (e) Conclusion: reject H 0 when p − value < α
    • Directional alternative: if the HA is directional rather than nondirectional, the WMW has two steps: (a) Step 1. Check to see if data deviate from H 0 in the direction specified by HA. If not, p-value is greater than 0.5 and we can not reject H 0. If so, proceed to step 2. (b) Step 2. The p-value are bracketed from the one-tail title instead of the two-tail as in the nondirectional.
    • Conditions for use of WMW: we still need randomness and independence of data.
    • Example: Prob. 7.80 in the text book (P. 297)
  2. Paired Samples - Sign Test (Sect. 9.4)
    • The sign test is a nonparametric test that does not depend on a normal assumption for the population of differences.
    • To carry out a sign test, we ignore the magnitude of differences and just record whether each difference is positive or negative.
    • P-values are then computed from a binomial distribution with p = 0.5.
    • Technically, the sign test is not testing equality of population means. Instead, a sign test is testing if the differences are equally likely to be positive versus either a nondirectional or directional alternative.

Office hours: Mon 3:00-5:00pm 1 http://www.stat.wisc.edu/∼tran

Quoc Tran B248D MSC [email protected]

  • Bracketing the p-value: The sign test statistic Bs may be exactly equal to an entry in Table 7, and in such a case the P −value is less than the column heading. Also, some critical values appear more than once in the same row. This feature is also due to the discreteness of the null distribution and does not cause any particular difficulty; to bracket the P − value, we move to the right in Table 7 as far as possible, stop when the next critical value in the table is larger than the observed value Bs. Bracket this column’s title and the next’s.
  • Example: Prob. 9.22 in the text book (P. 371)

Office hours: Mon 3:00-5:00pm 2 http://www.stat.wisc.edu/∼tran