Click or drag to resize

BivariateSample Class

Represents a set of data points, where each data point is described by a pair of real numbers.
Inheritance Hierarchy
SystemObject
  Meta.Numerics.StatisticsBivariateSample

Namespace:  Meta.Numerics.Statistics
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax
public sealed class BivariateSample : ICollection<XY>, 
	IEnumerable<XY>, IEnumerable

The BivariateSample type exposes the following members.

Constructors
  NameDescription
Public methodBivariateSample
Initializes a new bivariate sample.
Public methodBivariateSample(String, String)
Initializes a new bivariate sample with the given variable names.
Top
Properties
  NameDescription
Public propertyCorrelationCoefficient
Gets the correlation coefficient between the two variables.
Public propertyCount
Gets the number of data points.
Public propertyCovariance
Gets the covariance of the two variables.
Public propertyIsReadOnly
Gets a value indicating whether the bivariate sample is read-only.
Public propertyPopulationCovariance
Estimates of the population covariance of two variables.
Public propertyX
Gets a read-only univariate sample consisting of the x-values of the data points.
Public propertyY
Gets a read-only univariate sample consisting of the y-values of the data points.
Top
Methods
  NameDescription
Public methodAdd(XY)
Adds a data point to the sample.
Public methodAdd(IEnumerableXY)
Adds multiple data points to the sample.
Public methodAdd(IReadOnlyListDouble, IReadOnlyListDouble)
Adds points from two lists to the sample.
Public methodAdd(Double, Double)
Adds a data point to the sample.
Public methodClear
Removes all data points from the sample.
Public methodContains(XY)
Determines whether the sample contains a given data point.
Public methodContains(Double, Double)
Determines whether the sample contains a given data point.
Public methodCopy
Copies the bivariate sample.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetEnumerator
Gets an enumerator of sample values.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodKendallTauTest
Performs a Kendall concordance test for association.
Public methodLinearLogisticRegression
Computes the best-fit linear logistic regression from the data.
Public methodLinearRegression
Computes the best-fit linear regression from the data.
Public methodNonlinearRegression
Finds the parameterized function that best fits the data.
Public methodPairedStudentTTest
Performs a paired Student t-test.
Public methodPearsonRTest
Performs a Pearson correlation test for association.
Public methodPolynomialRegression
Computes the polynomial of given degree which best fits the data.
Public methodRemove(XY)
Removes a data point from the sample.
Public methodRemove(Double, Double)
Removes a data point from the sample.
Public methodSpearmanRhoTest
Performs a Spearman rank-order test of association between the two variables.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTransposeXY
Swaps the X and Y variables in the bivariate sample.
Public methodWilcoxonSignedRankTest
Performs a Wilcoxon signed rank test.
Top
Remarks

A bivariate sample consists of pairs of real numbers, where each pair is an independent measurement. For example, if you measure the height and weight of a sample of people, the data could be stored as a bivariate sample. The class can compute various descriptive statistics for the sample, perform appropriate statistical tests on the sample data, and fit the sample data to various models.

See Also