Represents a contingency table.
Namespace: Meta.Numerics.StatisticsAssembly: Meta.Numerics (in Meta.Numerics.dll) Version: 2.1.0.0 (2.1.0.0)
Syntax
| C# | Visual Basic | Visual C++ | F# |
public class ContingencyTable
Public Class ContingencyTable
public ref class ContingencyTable
type ContingencyTable = class end
Members
| All Members | Constructors | Properties | Methods |
| Member | Description | |
|---|---|---|
| ContingencyTable(array<Int32,2>[,](,)[,][,]) |
Instantiates a new contingency table with the given data set.
| |
| ContingencyTable(Int32, Int32) |
Instantiates a new contingency table.
| |
| ColumnCount |
Gets the number of columns in the table.
| |
| ColumnTotal(Int32) |
Gets the total counts in the specified column.
| |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType()()()() | Gets the Type of the current instance. (Inherited from Object.) | |
| Increment(Int32, Int32) |
Increments the count in the specifed cel.
| |
| Item[([( Int32, Int32])]) |
Gets or sets the count in the specified cell.
| |
| MemberwiseClone()()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Name |
Gets or sets the name of the table.
| |
| PearsonChiSquaredTest()()()() |
Performs a Pearson χ2 test for correlation in the table.
| |
| Probability(Int32, Int32) |
Estimates the probability of the given cell in the underlying population.
| |
| ProbabilityOfColumn(Int32) |
Estimates the marginal probility of the given column in the underlying population.
| |
| ProbabilityOfColumnConditionalOnRow(Int32, Int32) |
Estimates the probability of the given row, conditional on the given column.
| |
| ProbabilityOfRow(Int32) |
Estimates the marginal probility of the given row in the underlying population.
| |
| ProbabilityOfRowConditionalOnColumn(Int32, Int32) |
Estimates the probability of the given row, conditional on the given column.
| |
| RowCount |
Gets the number of rows in the table.
| |
| RowTotal(Int32) |
Gets the total counts in the specified row.
| |
| ToString()()()() | (Inherited from Object.) | |
| Total |
Gets the total counts in the table.
|
Remarks
Imagine a controlled experiment in which each data point consists of two category values. For example, a measurement of a driver's car and his nationality, or a person's sex and employment status. Such experiments are typically undertaken to determine what correlation exists between the categories.
Inheritance Hierarchy
System..::..Object
Meta.Numerics.Statistics..::..ContingencyTable
Meta.Numerics.Statistics..::..BinaryContingencyTable
Meta.Numerics.Statistics..::..ContingencyTable
Meta.Numerics.Statistics..::..BinaryContingencyTable