A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://accord-framework.net/docs/html/T_Accord_Statistics_Testing_ZTest.htm below:

ZTest Class

One-sample Z-Test (location test).

Inheritance Hierarchy Namespace:  Accord.Statistics.Testing
Assembly:

Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0

Syntax
[SerializableAttribute]
public class ZTest : HypothesisTest<NormalDistribution>
<SerializableAttribute>
Public Class ZTest
	Inherits HypothesisTest(Of NormalDistribution)
Request Example View Source

The ZTest type exposes the following members.

Constructors   Name Description ZTest

Constructs a T-Test.

ZTest(Double, OneSampleHypothesis)

Constructs a Z test.

ZTest(Double, Double, OneSampleHypothesis)

Constructs a Z test.

ZTest(Double, Double, Double, OneSampleHypothesis)

Constructs a Z test.

ZTest(Double, Double, Int32, Double, OneSampleHypothesis)

Constructs a Z test.

Top Properties Methods Extension Methods   Name Description HasMethod

Checks whether an object implements a method with the given name.

(Defined by ExtensionMethods.) IsEqual

Compares two objects for equality, performing an elementwise comparison if the elements are vectors or matrices.

(Defined by Matrix.) To(Type) Overloaded.

Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.

(Defined by ExtensionMethods.) ToT Overloaded.

Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.

(Defined by ExtensionMethods.) Top Remarks Examples

This example has been gathered from the Wikipedia's page about the Z-Test, available from: http://en.wikipedia.org/wiki/Z-test

Suppose there is a text comprehension test being run across a given demographic region. The mean score of the population from this entire region are around 100 points, with a standard deviation of 12 points.

There is a local school, however, whose 55 students attained an average score in the test of only about 96 points. Would their scores be surprisingly that low, or could this event have happened due to chance?

int sampleSize = 55;
double sampleMean = 96;





double standardDeviation = 12;
double hypothesizedMean = 100;



ZTest test = new ZTest(sampleMean, standardDeviation, sampleSize,
    hypothesizedMean, OneSampleHypothesis.ValueIsSmallerThanHypothesis);




bool significant  = test.Significant;


double statistic = test.Statistic;
double pvalue = test.PValue;
See Also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4