Linear Regression

C# Linear Regression / Régression Linéaire

NMath Stats from CenterSpace Software is a .NET class library that provides functions for statistical computation and biostatistics, including descriptive statistics, probability distributions, combinatorial functions, multiple linear regression, hypothesis testing, analysis of variance, and multivariate statistics.

The NMath Stats library is part of CenterSpace Software's NMath Suite of numerical libraries, which provides building blocks for mathematical, financial, engineering, and scientific applications on the .NET platform. Features include matrix and vector classes, linear algebra, random number generators, numerical integration methods, interpolation, statistics, biostatistics, multiple linear regression, analysis of variance (ANOVA), optimization, and object-oriented interfaces to public domain computing packages such as the BLAS (Basic Linear Algebra Subprograms) and LAPACK (Linear Algebra PACKage). All NMath routines are callable from any .NET language, including C#, Visual Basic.NET, and F#.

C# linear regression chart

Linear Regression Documentation

Complete documentation for all NMath libraries is available online. For more general information on linear regression, see the linear regression chapter in the NMath Stats User's Guide.

All API documentation related to linear regression is available in the NMath Stats Reference Guide, outlined in the table below.

Class
Description
Computes a single or multiple linear regression from an input matrix of independent variable values and vector of dependent variable values
Tests overall model significance for linear regressions computed by class LinearRegression
Tests statistical hypotheses about estimated parameters in linear regressions computed by class LinearRegression

Linear Regression Code Examples

All NMath libraries include extensive code examples in both C# and Visual Basic.NET. Studying these examples is one of the best ways to learn how to use NMath libraries. For more information on linear regression, see:

  • SimpleLinearRegressionExample [C#]  [VB.NET]
    Example showing how to use the linear regression class to perform a simple linear regression.
  • MultipleLinearRegressionExample [C#]  [VB.NET]
    Example showing how to use the linear regression class to perform a multiple linear regression.

 

Try a Free Evaluation

If you are interested in evaluating the Linear Regression classes in NMath, we offer a free trial version, for a 30-day evaluation period. This trial version is a fully featured distribution of NMath with no limitations. In only a few minutes you can be enjoying the power of NMath.

Buy Now

Orders may be placed through our secure online store using either google checkout or paypal checkout. Our sales staff would be happy to help you with any questions that you may have about our products.  We are looking forward to working with you!
Top