Difference between revisions of "User:Regina/MYDrafts3"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Details: (checkpoint save))
Line 11: Line 11:
  
 
==== Paired Samples ====
 
==== Paired Samples ====
If type=1, a paired Student's test is calculated. It uses the differences of the pairs. So in this case the data X and Y should have the same count n.
+
If type=1, TTEST calculates the p-value for a paired Student's test. It uses the differences of the pairs. So in this case the data X and Y should have the same count n.
  
 
<math>\overline{X} = \frac{1}{n}\ \sum_{i=1}^n\, X_i \qquad
 
<math>\overline{X} = \frac{1}{n}\ \sum_{i=1}^n\, X_i \qquad
Line 18: Line 18:
 
<math>s_{X-Y}^2 = \frac 1 {n-1} \sum_{i=1}^n \left ( (X_i -Y_i) - (\overline X - \overline Y ) \right )^2</math>
 
<math>s_{X-Y}^2 = \frac 1 {n-1} \sum_{i=1}^n \left ( (X_i -Y_i) - (\overline X - \overline Y ) \right )^2</math>
  
TTEST calculates the p-value for a paired-sample comparison of means test. Note that in this case due to the above constraints n=m. With
+
<math>t = \frac {\left | \overline X - \overline Y \right |}{\sqrt { s_{X-Y}^2}} \sqrt n</math>
  
and
+
TTEST returns <math> tails \cdot \int_t^\infty f(x,n-1) \, dx </math>
+
 
TTEST returns.
+
OpenOffice.org uses internally the regularized incomplete beta function to calculate this integral.
 +
 
 +
An empty element or an element of type ''string'' is ignored and its corresponding element in the other sample as well. In contrast to other spreadsheet applications OpenOffice.org has no type ''boolean'' but treats ''false'' as 0 and ''true'' as 1.
  
 
==== Unpaired Samples, Equal Variance ====
 
==== Unpaired Samples, Equal Variance ====

Revision as of 21:00, 31 March 2010

Details

The Student's test is related to the t-distribution. Its density function is

where is the Gamma function and the parameter degree of freedom.

Paired Samples

If type=1, TTEST calculates the p-value for a paired Student's test. It uses the differences of the pairs. So in this case the data X and Y should have the same count n.

TTEST returns

OpenOffice.org uses internally the regularized incomplete beta function to calculate this integral.

An empty element or an element of type string is ignored and its corresponding element in the other sample as well. In contrast to other spreadsheet applications OpenOffice.org has no type boolean but treats false as 0 and true as 1.

Unpaired Samples, Equal Variance

(2)If type = 2, TTEST calculates the p-value of a comparison of means for independent samples from populations with equal variance. With

and

==== Unpaired Samples, Not Necessarily Equal Variances

TTEST returns . (3)If type = 3, TTEST calculates the p-value of a comparison of means for independent samples from populations with not necessarily equal variances. With

and

TTEST returns . For an empty element or an element of type Text or Boolean in X the element at the corresponding position of Y is ignored, and vice versa.

Personal tools