Previous Page  Next Page 
Distribution Analyses

Tests for Location

The location tests include the Student's t, sign, and signed rank tests of the hypothesis that the mean/median is equal to a given value \mu against the two-sided alternative that the mean/median is not equal to \mu.The Student's t test is appropriate when the data are from an approximately normal population; otherwise, nonparametric tests such as the sign or signed rank test should be used.

The Student's t gives a Student's t statistic

t = \frac{{\overline y} - \mu_0}{s\,/\,\sqrt{n}}

For weighted analyses, the t statistic is computed as

t = \frac{{\overline y_{w}} - \mu_0} {s_{w}\,/\,\sqrt{\sum_{i}^{}{w_{i}}} }

Assuming that the null hypothesis (H0: mean = \mu) is true and the population is normally distributed, the t statistic has a Student's t distribution with n-1 degrees of freedom. The p-value is the probability of obtaining a Student's t statistic greater in absolute value than the absolute value of the observed statistic t.


Note
The t statistic and p-value are set to missing if vardef{\ne}DF.

The Sign statistic is

M = (1/2) ( n+ - n-)
where n+ is the number of observations with values greater than \mu, and n- is the number of observations with values less than \mu.

Assuming that the null hypothesis (H0: median = {\mu_0}) is true, the p-value for the observed statistic M is

\rm{Prob} \{ |{M}| \gt= | M| \} = (\frac{1}2)^{n_{t}-1} \sum_{i=0}^{min( n^{+}, n^{-})}{{ n_{t} \choose i }}
where nt= n+ + n- is the number of yi values not equal to {\mu_0}.

The Signed Rank test assumes that the distribution is symmetric. The signed rank statistic is computed as {S = {\Sigma}{ r_{i}^{+}} - n_{t}( n_{t}+1)/4}where r+i is the rank of {| y_{i}-\mu_0|} after discarding yi values equal to {\mu_0}, and the sum is calculated for values of y_{i} \gt\mu_0.Average ranks are used for tied values.

The p-value is the probability of obtaining a signed rank statistic greater in absolute value than the absolute value of the observed statistic S. If nt <= 20, the p-value of the statistic S is computed from the exact distribution of S. When nt > 20, the significance level of S is computed by treating

\sqrt{ n_{t}-1} \frac{S}{\sqrt{ n_{t}V - S^2}}

as a Student's t variate with nt-1 degrees of freedom, where V is computed as

V = \frac{1}{24} \{ n_{t}( n_{t}+1)(2 n_{t}+1) - \frac{1}2 \sum_{j=1}^n{t_{j}( t_{j}+1) ( t_{j}-1)} \}.

The sum is calculated over groups tied in absolute value, and tj is the number of tied values in the jth group (Iman 1974, Lehmann 1975).

You can specify location tests either in the distribution output options dialog or in the Location Tests dialog after choosing Tables:Tests for Location from the menu.

dist12.gif (1551 bytes)

Figure 38.12: Location Tests Dialog

In the dialog, you can specify the parameter {\mu_0}.Figure 38.11 shows a table of the three location tests for {\mu_0} = 60. Here, Num Obs != Mu0 is the number of observations with values not equal to {\mu_0}, and Num Obs > Mu0 is the number of observations with values greater than {\mu_0}.

For weighted analyses, the sign and signed rank tests are not generated.

Previous Page  Next Page  Top of Page

Copyright © 2007 by SAS Institute Inc., Cary, NC, USA. All rights reserved.