01.03.2013 Views

Applied Statistics Using SPSS, STATISTICA, MATLAB and R

Applied Statistics Using SPSS, STATISTICA, MATLAB and R

Applied Statistics Using SPSS, STATISTICA, MATLAB and R

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

10.6 Non-Parametric Tests<br />

10.6 Non-Parametric Tests 397<br />

The von Misessness of directional data distributions is difficult to guarantee in<br />

many practical cases 3<br />

. Therefore, non-parametric tests, namely those based on<br />

ranking procedures similar to those described in Chapter 5, constitute an important<br />

tool when comparing directional data samples.<br />

10.6.1 The Uniform Scores Test for Circular Data<br />

Let us consider q independent samples of circular data, each with nk cases. The<br />

uniform scores test assesses the similarity of the q distributions based on scores of<br />

the ordered combined data. For that purpose, let us consider the combined dataset<br />

q<br />

with n =∑ k = k n observations sorted by ascending order. Denoting the ith<br />

1<br />

observation in the kth group by θik, we now substitute it by the uniform score:<br />

β<br />

ik<br />

2π<br />

wik = , i = 1, …, nk, 10.23<br />

n<br />

where the wik are linear ranks in [1, n]. Thus, the observations are replaced by<br />

equally spaced points in the unit circle, preserving their order.<br />

Let rk represent the resultant length of the kth sample corresponding to the<br />

uniform scores. Under the null hypothesis of equal distributions, we expect the βik<br />

to be uniformly distributed in the circle. <strong>Using</strong> the test statistic:<br />

q 2<br />

rk<br />

∑<br />

k = 1 nk<br />

W = 2 , 10.24<br />

we then reject the null hypothesis for significantly large values of W.<br />

2<br />

The asymptotic distribution of W, adequate for n > 20, is χ 2( q−1)<br />

. For further<br />

details see (Mardia KV, Jupp PE, 2000). The uniform scores test is implemented<br />

by function unifscores (see Comm<strong>and</strong>s 10.5).<br />

Example 10.17<br />

Q: Assess whether the distribution of the wind direction (WD) of the Weather<br />

dataset (Data 2 datasheet) can be considered the same for all four seasons.<br />

A: Denoting by wd the matrix whose first column is the wind direction data <strong>and</strong><br />

whose second column is the season code, we apply the <strong>MATLAB</strong> unifscores<br />

function as shown below <strong>and</strong> conclude the rejection of equal distributions of the<br />

wind direction in all four seasons at the 5% significance level (w > wc).<br />

3<br />

Unfortunately, there is no equivalent of the Central Limit Theorem for directional data.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!