Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Results tagged with fitting
Search options not deleted
user 6358
Questions on the use of Mathematica to construct models for approximating empirical data.
5
votes
Can one force a linear regression fit to go through an arbitrary point?
Here's a hacky solution: use the Weights option in LinearModelFit to give the point at (0,100) a huge weight.
fit2 = Normal[LinearModelFit[data, x, x,
Weights -> Table[If[i == 1, 10^20, 1], {i, Len …
8
votes
FindMinimum works only if you know the answer
This is more of an extended comment than an answer. First, building off @JackLaVigne's work, I think it's better to work in log of your parameters, so I defined a new objective function
chiSquared2[ …
4
votes
Accepted
How to correctly show the slope of a linear part on LogPlot
Sorry, I didn't realize that you linked to the data in your post, but as @Roman noted, the InterpolatingFunction seems broken. Anyhow, I managed to extract enough to find another problem besides @Rom …
2
votes
Accepted
Polynomial fitting to obtain the growth rate
First, plot your data ($n$ vs $t$) on a log scale:
ListLogPlot[data]
As Roman suggests, a linear fit on log scale is the growth rate you're interested in. It doesn't look like there's any lag phase …