Home > freetb4matlab > NaN > atest.m

atest

PURPOSE ^

ATEST calculates some basic statistics and

SYNOPSIS ^

function [R,zz,z0,z2] = atest(X,Y,alpha);

DESCRIPTION ^

 ATEST calculates some basic statistics and 
    checks whether two datasets differ significantly
    Currently, the MEAN and the COVARIANCE are implemented. 
    Other statistics can be tested, too. 

 The idea is based on the following assumptions:
  - the sample mean of a statistic is an estimate for the expectation value of this statistic 
  - the standard error of the mean is sqrt(var{x}/N)
  - the sample variance var{x}=sum((x-�)*(x-�))/(N-1) with �=sum(x)/N;
  - the standard error of the mean estimate is independent of the probability distribution [1]
  - not only the mean, but also other statistics can be obtained by averaging.
  - the standard error can be calculated for other estimates, too.
  - hence, we can calculate the standard error for any estimate 
  - these arguments holds for the mean as well as any other statistic 

 R = ATEST(X)
    if X is a numeric array, the basic statistics are calculated
        it includes the sample SUM, the number of samples,
        and the sum of sample squares 
    if X is a struct generated by ATEST (e.g. X=ATEST(x) ),
        derived statistics are calculated
        including the MEAN and STANDARD ERROR OF THE MEAN                

 R = ATEST(X, Y [,z])
    checks whether the MEAN of X and Y differ significantly.
    z determines the significance level [default = 3 (*sd)].
    in case z<0, z is the alpha-level for the significance test. 
    R contains the basic statistics of X and Y combined. 

 see also: SUMSKIPNAN, COVM, SUMSQ, SEM, STAT2, STAT2RES

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003