Be the first to rate this file! 24 Downloads (last 30 days) File Size: 2.69 KB File ID: #43543

Watson's U2 statistic based permutation test for circular data

by

 

18 Sep 2013 (Updated )

Performs a permutation test based on Watson's U2 statistic for 2-sample testing of circular data.

| Watch this File

File Information
Description

The 2 functions provided perform a nonparametric permutation test based on Watson's U2 statistic for 2-sample testing of circular data (angles).

Watsons_U2 computes Watson's U2 statistic for 2 samples of circular data. The code is derived from the equations of Zar JH, Biostatistical Analysis, 4th ed. (1999) and has been verified against the numerical examples provided therein.

Watsons_U2_perm_test computes the probability that, according to the null hypothesis, 2 samples of circular data come from the same population, or from 2 populations that have the same direction. The p values thus obtained have also been verified against the numerical examples provided in Zar (1999).

As an alternative to the permutation test, significance tables for critical values of Watson's U2 have been published (e.g. in Zar, 1999).

Please do not hesitate to contact me for any suggestion or to report problem about this function.

Acknowledgements

Circular Statistics Toolbox (Directional Statistics) inspired this file.

Required Products MATLAB
MATLAB release MATLAB 7.9 (R2009b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Updates
19 Sep 2013

The functions that compute Watson's U2 statistic and the nonparametric permutation test using that statistic have been merged.

Contact us