Click or drag to resize
ContingencyTable Class
Represents a contingency table.
Inheritance Hierarchy

Namespace:  Meta.Numerics.Statistics
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 3.1.0.0 (3.1.0.0)
Syntax
public class ContingencyTable

The ContingencyTable type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyColumnCount
Gets the number of columns in the table.
Public propertyItem
Gets or sets the count in the specified cell.
Public propertyName
Gets or sets the name of the table.
Public propertyRowCount
Gets the number of rows in the table.
Public propertyTotal
Gets the total counts in the table.
Top
Methods
  NameDescription
Public methodColumnTotal
Gets the total counts in the specified column.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIncrement
Increments the count in the specifed cel.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPearsonChiSquaredTest
Performs a Pearson χ2 test for correlation in the table.
Public methodProbability
Estimates the probability of the given cell in the underlying population.
Public methodProbabilityOfColumn
Estimates the marginal probility of the given column in the underlying population.
Public methodProbabilityOfColumnConditionalOnRow
Estimates the probability of the given row, conditional on the given column.
Public methodProbabilityOfRow
Estimates the marginal probility of the given row in the underlying population.
Public methodProbabilityOfRowConditionalOnColumn
Estimates the probability of the given row, conditional on the given column.
Public methodRowTotal
Gets the total counts in the specified row.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
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.

See Also