[Master Index] [Index for export/lyngby]

lyngby_ts_ttest

(export/lyngby/lyngby_ts_ttest.m)


Function Synopsis

[p, t] = lyngby_ts_ttest(d1, d2)

Help text

 lyngby_ts_ttest      - Two sample Student t test, equal variances.

       function [p, t] = lyngby_ts_ttest(X1, X2)

       Input:  X1   First set of samples 
               X2   Second set of samples
       
       Output: p    p-values
               t    Student test size

       lyngby_ts_ttest gives the probability that Student's t
       calculated on data X1 and X2, sampled from distributions
       with the same variance, is higher than observed, i.e.
       the "significance" level. This is used to test whether
       two sample have significantly different means.
       [P, T] = lyngby_ts_ttest(X1, X2) gives this probability P and
       the value of Student's t in T. The smaller P is, the more
       significant the difference between the means.
       E.g. if P = 0.05 or 0.01, it is very likely that the
       two sets are sampled from distributions with different
       means.

       This works if the samples are drawn from distributions with
       the SAME VARIANCE. Otherwise, use lyngby_ts_uttest.

       See also: lyngby_ts_uttest, lyngby_ts_pttest

Cross-Reference Information

This function is called by

Produced by mat2html on Wed Jul 29 15:43:40 2009
Cross-Directory links are: OFF