NMath Reference Guide

## One |

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

Inheritance Hierarchy

Syntax

The OneSampleZTest type exposes the following members.

Constructors

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

OneSampleZTest | Default constructor. Constructs a OneSampleZTest instance with default sample, population, and hypothesis parameters. | |

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

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

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

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

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

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

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

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

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

OneSampleZTest(Double, Int32, Double, Double, Double, HypothesisType) | Constructs a OneSampleZTest 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 OneSampleZTests. | |

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

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

LeftCriticalValue | Gets the one-sided to 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 one-sided to 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. | |

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

Sigma | Gets the population standard deviation. | |

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 OneSampleZTest. | |

OnDeserialized | Compute values following deserialization | |

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

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 population parameters. | |

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

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

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

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

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

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

See Also