Multinomial test (approximated).
Inheritance Hierarchy Namespace: Accord.Statistics.TestingAccord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax[SerializableAttribute] public class MultinomialTest : ChiSquareTest
<SerializableAttribute> Public Class MultinomialTest Inherits ChiSquareTestRequest Example View Source
The MultinomialTest type exposes the following members.
Constructors Properties Methods Extension Methods Name Description HasMethodChecks whether an object implements a method with the given name.
(Defined by ExtensionMethods.) IsEqualCompares 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 ExamplesThe following example is based on the example available on About.com Statistics, An Example of Chi-Square Test for a Multinomial Experiment By Courtney Taylor.
In this example, we would like to test if a die is fair. For this, we will be rolling the die 600 times, annotating the result every time the die falls. In the end, we got a one 106 times, a two 90 times, a three 98 times, a four 102 times, a five 100 times and a six 104 times:
int[] sample = { 106, 90, 98, 102, 100, 104 }; double[] hypothesizedProportion = { 1 / 6.0, 1 / 6.0, 1 / 6.0, 1 / 6.0, 1 / 6.0, 1 / 6.0, }; MultinomialTest test = new MultinomialTest(sample, hypothesizedProportion); double chiSquare = test.Statistic; bool significant = test.Significant;
Since the test didn't come up significant, it means that we don't have enough evidence to to reject the null hypothesis that the die is fair.
See AlsoRetroSearch 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