Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
TAChart
(Moderator:
Ask
) »
How to get goodness of fit in TAChart Fit Series?
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Does anyone know why thes...
by
TYDQ
[
Today
at 05:24:32 am]
Forum slow
by
Curt Carpenter
[
Today
at 03:41:07 am]
Arabic text, problem on L...
by
Zaher
[
Today
at 03:29:16 am]
InstallAware Using Lazaru...
by
TRon
[
Today
at 02:55:41 am]
Generics - correct syntax
by
Blaazen
[
Today
at 01:57:40 am]
Demoscene The Champs Crac...
by
Gigatron
[
Today
at 01:05:16 am]
How to use the Event Log?
by
n7800
[
Today
at 12:47:25 am]
v3.99 code completion que...
by
440bx
[
Today
at 12:45:55 am]
FpDebug breakpoint on "be...
by
440bx
[
Today
at 12:36:23 am]
Access violation when re-...
by
TRon
[April 19, 2024, 11:44:51 pm]
[solved] how to get class...
by
jamie
[April 19, 2024, 11:34:44 pm]
Lazarus for Windows on aa...
by
Wallaby
[April 19, 2024, 10:52:25 pm]
Poll: Watches and Display...
by
440bx
[April 19, 2024, 07:13:51 pm]
Who is Indy mattias?
by
paweld
[April 19, 2024, 04:17:53 pm]
I just released a commerc...
by
BrassGear
[April 19, 2024, 03:17:28 pm]
Database standards OR Am ...
by
gidesa
[April 19, 2024, 02:37:56 pm]
How to: create DLL file f...
by
TRon
[April 19, 2024, 02:26:53 pm]
A fairly simple sound sol...
by
paweld
[April 19, 2024, 01:46:11 pm]
Access violation when ope...
by
Чебурашка
[April 19, 2024, 12:27:34 pm]
Step-into the field sette...
by
Martin_fr
[April 19, 2024, 11:31:48 am]
AI, NLP and CAI: Text Gen...
by
Dzandaa
[April 19, 2024, 11:03:26 am]
dwindows for Android
by
PierceNg
[April 19, 2024, 10:54:44 am]
create system unit from s...
by
Laksen
[April 19, 2024, 10:53:57 am]
[Solved] Find child contr...
by
Joanna
[April 19, 2024, 09:53:43 am]
FpDebug unexpected Assemb...
by
Marc
[April 19, 2024, 08:46:38 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to get goodness of fit in TAChart Fit Series? (Read 3302 times)
jwdietrich
Hero Member
Posts: 1232
How to get goodness of fit in TAChart Fit Series?
«
on:
July 27, 2015, 12:38:22 pm »
Is there a field or property that delivers an estimate for the goodness of fit in TAChart's Fit Series? I well understand that R
2
doesn't make sense for nonlinear regression; However, information like a p value or even Akaike's information criterion (AIC) would be useful.
Alternatively, is this information provided by the ipfpol procedure from numlib? Unfortunately, FPC's numlib is nearly undocumented.
(Note: This is a re-post of the question
http://stackoverflow.com/questions/31616676/goodness-of-fit-in-tachart-fit-series
at stackoverflow. I didn't get an answer there.)
Logged
function GetRandomNumber: integer; // xkcd.com
begin
GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;
http://www.formatio-reticularis.de
Lazarus 2.2.6 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux
marcov
Administrator
Hero Member
Posts: 11453
FPC developer.
Re: How to get goodness of fit in TAChart Fit Series?
«
Reply #1 on:
July 27, 2015, 01:13:13 pm »
There is numlib documentation, and some examples. Problem is that both examples and documentation are older than the library files, and the documentation is Dutch.
Logged
wp
Hero Member
Posts: 11916
Re: How to get goodness of fit in TAChart Fit Series?
«
Reply #2 on:
July 27, 2015, 02:11:13 pm »
No, TAChart does not calculate any goodness-of-fit parameters. But you can do this by yourself since the results of the fitting parameters are returned by the FitSeries (properties "ParamCount" and "Param[AIndex]").
You mention non-linear fits: They are not supported by TFitSeries at all. Therefore, if you have dedicated fitting tasks you should employ an external numerical library such as the excellent dmath (
https://sourceforge.net/projects/dmath/
).
Sorry for not giving you an answer in your stackoverflow post. But I do not check this site regularly. Post all Lazarus-related questions here.
«
Last Edit: July 27, 2015, 02:17:46 pm by wp
»
Logged
wp
Hero Member
Posts: 11916
Re: How to get goodness of fit in TAChart Fit Series?
«
Reply #3 on:
July 27, 2015, 06:15:56 pm »
In r49571 I added calculation of R-squared as a simple goodness-of-fit parameter (--> new read-only property "GoodnessOfFit" of TFitSeries). See also the updated FitDemo in the demos folder.
More advanced calculations would require knowledge of the standard errors of the data points. In case they are known the goodness-of-fit calculation can be performed by the event handler "OnCalcGoodnessOfFit" replacing the built-in R-squared calculation method.
Logged
jwdietrich
Hero Member
Posts: 1232
Re: How to get goodness of fit in TAChart Fit Series?
«
Reply #4 on:
August 09, 2015, 07:47:30 pm »
Thanks for all your suggestions. I will check them and will report my experiences here.
Logged
function GetRandomNumber: integer; // xkcd.com
begin
GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;
http://www.formatio-reticularis.de
Lazarus 2.2.6 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
TAChart
(Moderator:
Ask
) »
How to get goodness of fit in TAChart Fit Series?
TinyPortal
© 2005-2018