Linear Regression

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
STC
Newbie
Newbie
Posts: 23
Joined: Wed Mar 10, 2004 5:00 am

Linear Regression

Post by STC » Tue Jan 17, 2006 5:18 pm

Hello

Does TeeChart Pro v7 support standard linear regression in the form of y=mx+c?

If so please can you provide an example of this. Is it within your demo program?

Cheers

Paul

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Jan 18, 2006 8:54 am

Hi Paul,

You can do that with TCustomTeeFunction. There's an example of that at the features demo at All Features\Welcome!\Functions\Extended\Custom y=f(x).
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

STC
Newbie
Newbie
Posts: 23
Joined: Wed Mar 10, 2004 5:00 am

Post by STC » Wed Jan 18, 2006 11:21 am

Hello

The example shows a simpler formula - Sin, I need to use y=mx+c, can you provide an example of how to use this formula? i.e. where I get m and c from

Cheers

Paul

Johan Ingemansson
Newbie
Newbie
Posts: 59
Joined: Fri May 28, 2004 4:00 am
Location: Sweden

Calculating regression i.e fitting parameters etc..

Post by Johan Ingemansson » Fri Jan 20, 2006 8:00 am

Hi,

Dont know if this helps, but I think you have to get yourself a component/unit which calculates a regression line, i.e fits parameters, calculates standard deviation for theese,t-values etc.. There are a variety of avaliable products commercial and free. Some also includes diagnostic tests example test for homoscedstic residuals variance etc. Beware however for many of theese avaliable component are not that good of finding best solutions for parameter fits when example mulitcollinearity is present within the independent variables.

I know for example that 1 of steemas employees och ex employee is involved with a company called dewresearch(www.dewresearch.com) which have a component for regression linear and non-linear. They also offer a good TMtvVector component for increased perfomance using arrays of different types.

Dont know if this helps you, but good luck, let me know how it goes, and if you have any problem, maybe I can assist you in some way.

Best Regards,

Johan Ingemansson

DJ
Newbie
Newbie
Posts: 17
Joined: Mon Apr 26, 2004 4:00 am
Location: So Cal

Post by DJ » Mon Jan 30, 2006 12:16 am

I think that you will find that the Trend line function is a linear regression function. Hope this helps.

dan

Post Reply