Interactive Linear Regression application in WPF C#


In this post we will see a simple application in C# implementing the linear regression algorithm on a set of data created by the user. A linear regression is one of the easiest statistical models in machine learning. Linear regressions can be used in business to evaluate trends and make estimates or forecasts, It is used to show the linear relationship between a dependent variable and one or more independent variables. More specifically it can be also used to analyze the effect of pricing on consumer behavior and many more..

In this application which was made using WPF .Net Framework, the user can click on the canvas to add more elements and the algorithm automatically calculates and displays the line. At the beginning the user has to place at least two points to activate the algorithm by clicking on the light gray area of the window. Afterwards you can add more and more points and you will be able to visualize the linear regression algorithm output.

You can download the application here: Linear Regression Example in C#

Below are some screenshots.

Disclaimer: The present content may not be used for training artificial intelligence or machine learning algorithms. All other uses, including search, entertainment, and commercial use, are permitted.