BivariateSample Class 
Namespace: Meta.Numerics.Statistics
The BivariateSample type exposes the following members.
Name  Description  

BivariateSample 
Initializes a new bivariate sample.
 
BivariateSample(String, String) 
Initializes a new bivariate sample with the given variable names.

Name  Description  

CorrelationCoefficient 
Gets the correlation coefficient between the two variables.
 
Count 
Gets the number of data points.
 
Covariance 
Gets the covariance of the two variables.
 
IsReadOnly 
Gets a value indicating whether the bivariate sample is readonly.
 
PopulationCovariance 
Estimates of the population covariance of two variables.
 
X 
Gets a readonly univariate sample consisting of the xvalues of the data points.
 
Y 
Gets a readonly univariate sample consisting of the yvalues of the data points.

Name  Description  

Add(XY) 
Adds a data point to the sample.
 
Add(IEnumerableXY) 
Adds multiple data points to the sample.
 
Add(IListDouble, IListDouble) 
Adds points from two lists to the sample.
 
Add(Double, Double) 
Adds a data point to the sample.
 
Clear 
Removes all data points from the sample.
 
Contains(XY) 
Determines whether the sample contains a given data point.
 
Contains(Double, Double) 
Determines whether the sample contains a given data point.
 
Copy 
Copies the bivariate sample.
 
Equals  (Inherited from Object.)  
GetEnumerator 
Gets an enumerator of sample values.
 
GetHashCode  Serves as a hash function for a particular type. (Inherited from Object.)  
GetType  Gets the Type of the current instance. (Inherited from Object.)  
KendallTauTest 
Performs a Kendall concordance test for association.
 
LinearLogisticRegression 
Computes the bestfit linear logistic regression from the data.
 
LinearRegression 
Computes the bestfit linear regression from the data.
 
NonlinearRegression 
Finds the parameterized function that best fits the data.
 
PairedStudentTTest 
Performs a paired Student ttest.
 
PearsonRTest 
Performs a Pearson correlation test for association.
 
PolynomialRegression 
Computes the polynomial of given degree which best fits the data.
 
Remove(XY) 
Removes a data point from the sample.
 
Remove(Double, Double) 
Removes a data point from the sample.
 
SpearmanRhoTest 
Performs a Spearman rankorder test of association between the two variables.
 
ToString  Returns a string that represents the current object. (Inherited from Object.)  
TransposeXY 
Swaps the X and Y variables in the bivariate sample.

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.