Logistic Fit
|
01-22-2014, 04:02 AM
(This post was last modified: 01-22-2014 02:55 PM by Han.)
Post: #12
|
|||
|
|||
RE: Logistic Fit
Is the current implementation merely a linear regression of something similar to \( \mathrm{logit}(P) = \alpha + \beta x \) where \( \mathrm{logit}(P) = \ln( \frac{P}{1-P}) \)? I was naively thinking about taking the min and max value of \( P \) and normalize it to between 0+0.0000001 and 1-0.0000001 using a linear function (so that there are no issues with \( \mathrm{logit}(P) \), doing a linear regression, and then taking the inverse of the normalizing function. I take it I'm forgetting something quite obvious...
Here's my naive approach in code (for data that is central around the origin). Code:
At the home screen: Code:
In the 2-vars Stats app, press [Num] and select C0 (and then C1, and C2) and press "Make" C0: Expression: L0(X), X starts from 1 to 201 step 1 C1: Expression: L1(X), X starts from 1 to 201 step 1 C2: Expression: use formula given by logreg(L0,L1), X starts from -10 to 10 step .1 Hit [Plot] and ignore the error message. Change your plot settings accordingly. Here's a screenshot: A smarter algorithm with check the \( R^2 \) value of the linear regression to see if outliers need to be filtered. Perhaps there may even be a preference for the points closer to the origin after normalization since \( \ln (\frac{P}{1-P}) \) grows large for \( P \) values close to 0 and 1. Or perhaps do two linear regressions (one favoring points near the origin) and compare the \( R^2 \) values, and choose the tighter fit. Here's the linear regression of \( \ln (\frac{P}{1-P}) \) after \( P \) has be normalized in the example above. Edit: this doesn't work for domains not centered about the origin. Graph 3D | QPI | SolveSys |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Logistic Fit - jgreenb2 - 01-17-2014, 11:43 PM
RE: Logistic Fit - Tim Wessman - 01-18-2014, 02:21 PM
RE: Logistic Fit - jgreenb2 - 01-18-2014, 04:14 PM
RE: Logistic Fit - Helge Gabert - 01-19-2014, 09:48 PM
RE: Logistic Fit - Thomas Klemm - 01-19-2014, 10:12 PM
RE: Logistic Fit - Helge Gabert - 01-20-2014, 05:44 AM
RE: Logistic Fit - jgreenb2 - 01-20-2014, 01:52 PM
RE: Logistic Fit - Helge Gabert - 01-20-2014, 03:01 PM
RE: Logistic Fit - jgreenb2 - 01-20-2014, 06:44 PM
RE: Logistic Fit - Tugdual - 01-21-2014, 06:43 AM
RE: Logistic Fit - Tim Wessman - 01-21-2014, 04:46 PM
RE: Logistic Fit - Han - 01-22-2014 04:02 AM
RE: Logistic Fit - Tim Wessman - 01-22-2014, 03:51 PM
RE: Logistic Fit - Helge Gabert - 01-22-2014, 04:14 PM
RE: Logistic Fit - Han - 01-22-2014, 04:38 PM
RE: Logistic Fit - Helge Gabert - 01-22-2014, 06:16 PM
|
User(s) browsing this thread: 2 Guest(s)