Download presentation
Presentation is loading. Please wait.
1
Nonparametric Statistics
Chapter 13 Nonparametric Statistics
2
Sign Test for Paired Samples
Suppose that paired or matched random samples are taken from a population, and the differences equal to 0 are discarded, leaving n observations. Calculate the difference for each pair of observations and record the sign of the difference. The sign test is used to test: Where is the proportion of nonzero observations in the population that are positive. The test-statistic S for the sign test is simply, And S has a binomial distribution with = 0.5 and n = the number of nonzero differences.
3
Determining p-value for a Sign Test
The p-value for a Sign Test is found using the binomial distribution with n = number of nonzero differences, S = number of positive differences, and = 0.5 For an upper-tail test, H1: > 0.5, p-value = P(x S) For a lower-tail test, H1: < 0.5, p-value = P(x S) For a two-tail test, H1: 0.5, 2(p-value)
4
Product Preference Example for Sign Test (Example 13.1)
Taster Rating Difference Sign of Difference Original Product New Product (Original -New) A B C D E F G H 6 4 5 8 3 7 9 -2 -5 1 -6 -3 -4 - +
5
The Sign Test: Normal Approximation (Large Samples)
If the number n of nonzero sample observations is large, then the sign test is based on the normal approximation to the binomial with mean and standard deviation The test statistic is Where S* is the test-statistic corrected for continuity defined as: For a two-tail test, S* = S + 0.5, if S < or S* = S - 0.5, if S > For upper-tail test, S* = S – 0.5 For lower-tail test, S* = S + 0.5
6
The Wilcoxon Signed Rank Test for Paired Samples
The Wilcoxon Signed Rank Test can be employed when a random sample of matched pairs of observations is available. Assume that the population distribution of the differences in these paired samples is symmetric, and we want to test the null hypothesis that this distribution is centered at 0. Discarding pairs for which the difference is 0, we rank the remaining n absolute differences in ascending order with ties assigned the average of the ranks they occupy. The sums of the ranks corresponding to positive and negative differences are calculated, and the smaller of these sums is the Wilcoxon Signed Rank Statistic T, that is T = min(T+, T- ) Where T+ = the sum of the positive ranks T- = the sum of the negative ranks n = the number of nonzero differences The null hypothesis is rejected if T is less than or equal to the value in the Appendix table.
7
The Wilcoxon Signed Rank Test: Normal Approximation (Large Samples)
Under the null hypothesis that the population differences are centered on 0, the Wilcoxon Signed Rank Test has mean and variance given by and Then, for large n, the distribution of the random variable, Z, is approximately standard normal where If the number n of nonzero differences is large and T is the observed value of the Wilcoxon statistic, then the following test have significance level ,
8
The Wilcoxon Signed Rank Test: Normal Approximation (Large Samples) (continued)
If the alternative hypothesis is one-sided, reject the null hypothesis if If the alternative hypothesis is two-sided, reject the null hypothesis if
9
Mann-Whitney U Statistic
Assume that apart from any possible differences in central location, that two population distributions are identical. Suppose that n1 observations are available from the first population and n2 observations from the second. The two samples are pooled and the observations are ranked in ascending order, with ties assigned the average of the next available ranks. Let R1 denote the sum of the ranks of the observations from the first population. The Mann-Whitney U statistic is then defined as
10
Mann-Whitney U Test: Normal Approximation
Assuming that the null hypothesis that the central locations of the two population distributions are the same, the Mann-Whitney U, has mean and variance Then for large sample sizes (both at least 10), the distribution of the random variable is approximated by the normal distribution.
11
Decision Rules for the Mann-Whitney Test
It is assumed that the two population distributions are identical, apart from any possible differences in central location. In testing the null hypothesis that the two populations have the same central location, the decision rule for a given significance level is For a one-sided upper-tailed alternative hypothesis, the decision rule is: For a one-sided lower-tailed hypothesis, the decision rule is: For a two-sided alternative hypothesis, the decision rule is:
12
Wilcoxon Rank Sum Statistic T
Suppose that n1 observations are available from the first population and n2 observations from the second. The two samples are pooled and the observations are ranked in ascending order, with ties assigned the average of the next available ranks. Let T denote the sum of the ranks of the observations from the first population (T in the Wilcoxon Rank Sum Test is the same as R1 in the Mann-Whitney U Test). Assuming that the null hypothesis is to be true, The Wilcoxon Rank Sum Statistic T has and Then, for large n, (n1 10 and n2 10) the distribution of the random variable, is approximated by the normal distribution.
13
Spearman’s Rank Correlation
Suppose that a random sample (x1 , y1), . . .,(xn, yn) of n pairs of observations is taken. If the xi and yi are each ranked in ascending order and the sample correlation of these ranks is calculated, the resulting coefficient is called Spearman’s Rank Correlation Coefficient. If there are no tied ranks, an equivalent formula for computing this coefficient is Where the di are the differences of the ranked pairs.
14
Spearman’s Rank Correlation (continued)
The following tests of the null hypothesis H0 of no association in the population have significance level To test against the alternative of positive association, the decision rule is To test against the alternative of negative association, the decision rule is To test against the two-sided alternative of some association, the decision rule is
15
Key Words Mann-Whitney U Test Sign Test Spearmann’s Rank Correlation
Normal Approximation Statistic Sign Test Paired Samples P-value Population Median Spearmann’s Rank Correlation Coefficient Test Wilcoxon Rank Sum Test Statistic Wilcoxon Signed Rank Test Normal Approximation
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.