Blogs

News

Favorite Posts

ctodx

Discussions, news and rants from the CTO of Developer Express, Julian M Bucknall

Sneak peek: Regression lines in XtraCharts v2009 vol 2 (ASP.NET / WinForms)

     

One of a series of posts on the new functionality that'll appear in DXperience v2009 vol 2. This is all pre-beta stuff, we're probably something like a month from beta.

In this post, we'll look at the new regression line support that coming up in the next major release of XtraCharts.

If you do any kind of statistical analysis of some data, you would at some point plot the data on a chart and try and determine whether the data suggests some kind of simple function between the variables of the data (in general, there are one or more independent variables, and a single dependent variable whose values depend on the values of the other variables).

The simplest function to look for is a line. You plot the data points such that the X-axis is the independent variable and the Y-axis represents the dependant variable, and if the points are roughly collinear, odds are that there is a linear relationship between the variables (that is, the variables are related by an equation y = a + bx, for some a and b).

Regressionline in XtraCharts 

Linear regression analysis involves determining the underlying equation through a method called least squares. With this method, we minimize the error terms (if you like, how far away each data point is from the underlying linear function) by minimizing the sum of the squares of the errors. (The squaring of the terms removes the problem of dealing with negative error terms.) To calculate the equation of the line using the least squares method is relatively simple; indeed many calculators provide such a function.

XtraCharts now provides this linear regression and will plot the line on a point chart, as shown. You can also determine the equation of the line.

Published May 30 2009, 06:15 PM by Julian Bucknall (DevExpress)
Filed under: , ,
Technorati tags: Charting, v2009.2, XtraCharts
Bookmark and Share

Comments

 

Allard said:

Hi Julian,

We have been waiting for this option so its good news it is going to be included in the next release. I was wondering will 2nd, 3rd and (n-th degrees) of lines be included also?

June 4, 2009 3:38 PM
 

Holger Flick said:

Do you plan only to provide linear models or also polynomial regression/approximation e.g.?

June 5, 2009 6:28 AM

About Julian Bucknall (DevExpress)

Julian is the Chief Technology Officer at Developer Express. You can reach him directly at julianb@devexpress.com. You can also follow him on Twitter with the ID JMBucknall.
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.