NMath Reference Guide

## One |

Class OneSampleTTest compares a single sample mean to an expected mean
from a normal distribution with an unknown standard deviation.

Inheritance Hierarchy

Syntax

The OneSampleTTest type exposes the following members.

Constructors

Name | Description | |
---|---|---|

OneSampleTTest | Default constructor. Constructs a OneSampleTTest instance with default sample parameters, population mean, alpha level, and hypothesis type. | |

OneSampleTTest(Double, Double) | Constructs a OneSampleTTest instance using the given array of sample data, and the given population mean. | |

OneSampleTTest(DoubleVector, Double) | Constructs a OneSampleTTest instance using the given vector of sample data, and the given population mean. | |

OneSampleTTest(IDFColumn, Double) | Constructs a OneSampleTTest instance using the given column of sample data, and the given population mean. | |

OneSampleTTest(Int32, Double) | Constructs a OneSampleTTest instance using the given array of sample data, and the given population mean. | |

OneSampleTTest(Double, Double, Int32, Double) | Constructs a OneSampleTTest instance with the given sample and population parameters. | |

OneSampleTTest(Double, Double, Double, HypothesisType) | Constructs a OneSampleTTest instance using the given array of sample data, and the given population and hypothesis parameters. | |

OneSampleTTest(DoubleVector, Double, Double, HypothesisType) | Constructs a OneSampleTTest instance using the given vector of sample data, and the given population and hypothesis parameters. | |

OneSampleTTest(IDFColumn, Double, Double, HypothesisType) | Constructs a OneSampleTTest instance using the given vector of sample data, and the given population and hypothesis parameters. | |

OneSampleTTest(Int32, Double, Double, HypothesisType) | Constructs a OneSampleTTest instance using the given array of sample data, and the given population and hypothesis parameters. | |

OneSampleTTest(Double, Double, Int32, Double, Double, HypothesisType) | Constructs a OneSampleTTest instance with the given sample, population, and hypothesis parameters. |

Properties

Name | Description | |
---|---|---|

Alpha | Gets and sets the alpha level associated with this hypothesis test. | |

DefaultAlpha | Gets and sets the default alpha level associated with OneSampleTTests. | |

DefaultType | Gets and sets the default form of the alternative hypothesis associated with OneSampleTTests. | |

DegreesOfFreedom | Gets the degrees of freedom. | |

Distribution | Gets the distribution of the test statistic associated with this hypothesis test. | |

LeftCriticalValue | Gets the left critical value based on the current probability distribution and alpha level associated with this hypothesis test. | |

LeftProbability | Gets the area under the probability distribution to the left of the test statistic. | |

LowerConfidenceLimit | Gets the 1 - alpha lower confidence limit for the true mean. | |

Mu0 | Gets the population mean. | |

N | Gets the sample size. | |

P | Gets the p-value associated with the test statistic. | |

Reject | Tests whether the null hypothesis can be rejected, using the current hypothesis type and alpha level. | |

RightCriticalValue | Gets the right critical value based on the current probability distribution and alpha level associated with this hypothesis test. | |

RightProbability | Gets the area under the probability distribution to the right of the test statistic. | |

S | Gets the sample standard deviation. | |

SEM | Gets the standard error of the mean. | |

Statistic | Gets the value of the test statistic associated with this hypothesis test. | |

Type | Gets and sets the form of the alternative hypothesis associated with this hypothesis test. | |

UpperConfidenceLimit | Gets the 1 - alpha upper confidence limit for the true mean. | |

Xbar | Gets the sample mean. |

Methods

Name | Description | |
---|---|---|

Clone | Creates a deep copy of this OneSampleTTest. | |

ToString |
Returns a formatted string representation of the test results.
(Overrides ObjectToString) | |

Update(Double) | Updates the test statistic with a new population mean. | |

Update(Double) | Updates the test statistic with new sample data. | |

Update(DoubleVector) | Updates the test statistic with new sample data. | |

Update(IDFColumn) | Updates the test statistic with new sample data. | |

Update(Int32) | Updates the test statistic with new sample data. | |

Update(Double, Double) | Updates the test statistic with new sample data and population mean. | |

Update(DoubleVector, Double) | Updates the test statistic with new sample data and population mean. | |

Update(IDFColumn, Double) | Updates the test statistic with new sample data and population mean. | |

Update(Int32, Double) | Updates the test statistic with new sample data and population mean. | |

Update(Double, Double, Int32) | Updates the test statistic with new sample parameters. | |

Update(Double, Double, Int32, Double) | Updates the test statistic with new sample and population parameters. |

See Also