ContingencyTable.GetFisherExactProbability Method

Definition

Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

GetFisherExactProbability(Boolean, Double) Gets the probability of Fisher's exact test for the contingency table.
GetFisherExactProbability(HypothesisType, Boolean) Gets the probability of Fisher's exact test for the contingency table.

GetFisherExactProbability(Boolean, Double)

Gets the probability of Fisher's exact test for the contingency table.
C#
public double GetFisherExactProbability(
	bool hybrid,
	out double tableProbability
)

Parameters

hybrid  Boolean
Optional. For greater than 2x2, specifies whether the exact probability should be computed or a hybrid approximation. The default is false.
tableProbability  Double
On output, the probability of the current contingency table only, given the row and column sums.

Return Value

Double
The two-sided probability that a contingency table with the same row and column sums would be at most as likely a the current contingency table.

GetFisherExactProbability(HypothesisType, Boolean)

Gets the probability of Fisher's exact test for the contingency table.
C#
public double GetFisherExactProbability(
	HypothesisType hypothesisType = HypothesisType.TwoTailed,
	bool hybrid = false
)

Parameters

hypothesisType  HypothesisType  (Optional)
Optional. Only applies to 2x2 tables. A HypothesisType value that specifies whether the test is two-tailed (the default) or one-tailed.
hybrid  Boolean  (Optional)
Optional. Does not apply to 2x2 tables. Specifies whether the exact probability should be computed or a hybrid approximation. The default is false.

Return Value

Double
The two-sided probability that a contingency table with the same row and column sums would be at most as likely a the current contingency table.

See Also