Search for a better guess Fitting function Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Derivative of a composed function with several variablesStart guess for a solutionIn search for the domain in which the inequality holdsHow to use binary search to find a functionUnderstanding the role of parameters in an equation in order to fit dataHow to show an infinite number of algebraic numbers $alpha$ and $beta$ for $_2F_1left(frac13,frac13;frac56;-alpharight)=beta,$?initial guess for fitting exponential with offsetSearch for a functionHow do derivatives describe asymptotes?Third degree polynomial and search for its roots
Trademark violation for app?
Where are Serre’s lectures at Collège de France to be found?
Is CEO the profession with the most psychopaths?
Would "destroying" Wurmcoil Engine prevent its tokens from being created?
Using audio cues to encourage good posture
Denied boarding although I have proper visa and documentation. To whom should I make a complaint?
What would be the ideal power source for a cybernetic eye?
Dating a Former Employee
Can you use the Shield Master feat to shove someone before you make an attack by using a Readied action?
また usage in a dictionary
Significance of Cersei's obsession with elephants?
How could we fake a moon landing now?
An adverb for when you're not exaggerating
What is the longest distance a player character can jump in one leap?
What is homebrew?
Has negative voting ever been officially implemented in elections, or seriously proposed, or even studied?
Fantasy story; one type of magic grows in power with use, but the more powerful they are, they more they are drawn to travel to their source
What causes the direction of lightning flashes?
How to Make a Beautiful Stacked 3D Plot
How to tell that you are a giant?
Do wooden building fires get hotter than 600°C?
Is safe to use va_start macro with this as parameter?
Around usage results
Can an alien society believe that their star system is the universe?
Search for a better guess Fitting function
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Derivative of a composed function with several variablesStart guess for a solutionIn search for the domain in which the inequality holdsHow to use binary search to find a functionUnderstanding the role of parameters in an equation in order to fit dataHow to show an infinite number of algebraic numbers $alpha$ and $beta$ for $_2F_1left(frac13,frac13;frac56;-alpharight)=beta,$?initial guess for fitting exponential with offsetSearch for a functionHow do derivatives describe asymptotes?Third degree polynomial and search for its roots
$begingroup$
I tried to fit the following data [blue dots] by the following function [red],
$$f(x,a,b,c,d,e)text:=d-fracc1+ exp left(frac(x-a)^ebright)$$
Values of fitted parameters can be seen in the figure.
The number of unknown parameters can be reduced by fixing $a$ and $e$ (or some other as well).
Now, Ques is: I am looking for a better algebraic simple fitting function.
Any idea, please ?
P.S.- Sorry, If this question is not eligible to post here!!
calculus
$endgroup$
add a comment |
$begingroup$
I tried to fit the following data [blue dots] by the following function [red],
$$f(x,a,b,c,d,e)text:=d-fracc1+ exp left(frac(x-a)^ebright)$$
Values of fitted parameters can be seen in the figure.
The number of unknown parameters can be reduced by fixing $a$ and $e$ (or some other as well).
Now, Ques is: I am looking for a better algebraic simple fitting function.
Any idea, please ?
P.S.- Sorry, If this question is not eligible to post here!!
calculus
$endgroup$
1
$begingroup$
It is not possible to work accurately without data (Scanning a graph is not accurate). It should be better post the data on numerical or text format.
$endgroup$
– JJacquelin
Mar 27 at 10:54
$begingroup$
@JJacquelin, Yes, It is here: pastebin.com/jv8hJyP2
$endgroup$
– Sachin Kumar
Mar 28 at 3:58
add a comment |
$begingroup$
I tried to fit the following data [blue dots] by the following function [red],
$$f(x,a,b,c,d,e)text:=d-fracc1+ exp left(frac(x-a)^ebright)$$
Values of fitted parameters can be seen in the figure.
The number of unknown parameters can be reduced by fixing $a$ and $e$ (or some other as well).
Now, Ques is: I am looking for a better algebraic simple fitting function.
Any idea, please ?
P.S.- Sorry, If this question is not eligible to post here!!
calculus
$endgroup$
I tried to fit the following data [blue dots] by the following function [red],
$$f(x,a,b,c,d,e)text:=d-fracc1+ exp left(frac(x-a)^ebright)$$
Values of fitted parameters can be seen in the figure.
The number of unknown parameters can be reduced by fixing $a$ and $e$ (or some other as well).
Now, Ques is: I am looking for a better algebraic simple fitting function.
Any idea, please ?
P.S.- Sorry, If this question is not eligible to post here!!
calculus
calculus
edited Mar 27 at 6:30
mrtaurho
6,19771641
6,19771641
asked Mar 27 at 4:44


Sachin KumarSachin Kumar
245110
245110
1
$begingroup$
It is not possible to work accurately without data (Scanning a graph is not accurate). It should be better post the data on numerical or text format.
$endgroup$
– JJacquelin
Mar 27 at 10:54
$begingroup$
@JJacquelin, Yes, It is here: pastebin.com/jv8hJyP2
$endgroup$
– Sachin Kumar
Mar 28 at 3:58
add a comment |
1
$begingroup$
It is not possible to work accurately without data (Scanning a graph is not accurate). It should be better post the data on numerical or text format.
$endgroup$
– JJacquelin
Mar 27 at 10:54
$begingroup$
@JJacquelin, Yes, It is here: pastebin.com/jv8hJyP2
$endgroup$
– Sachin Kumar
Mar 28 at 3:58
1
1
$begingroup$
It is not possible to work accurately without data (Scanning a graph is not accurate). It should be better post the data on numerical or text format.
$endgroup$
– JJacquelin
Mar 27 at 10:54
$begingroup$
It is not possible to work accurately without data (Scanning a graph is not accurate). It should be better post the data on numerical or text format.
$endgroup$
– JJacquelin
Mar 27 at 10:54
$begingroup$
@JJacquelin, Yes, It is here: pastebin.com/jv8hJyP2
$endgroup$
– Sachin Kumar
Mar 28 at 3:58
$begingroup$
@JJacquelin, Yes, It is here: pastebin.com/jv8hJyP2
$endgroup$
– Sachin Kumar
Mar 28 at 3:58
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
The inspection of the data shows that two parts are linear with an high accuracy.
Obviously the points $(x_k,y_k)$ with $77leq k leq 100$ are exactly located on the horizontal line $y= 5.92608$ .
The points $(x_k,y_k)$ with $1leq k leq 10$ are very closely located on a straight line $y= a+bx$ :
For the other points $11leq k leq 76$ on can find various functions with a good fit.
For example this very simple form : $quad ysimeq fraca+bx+cx^21+Bx$
COMMENT :
With straight segments in a curve one usually chose a piecewise function to fit accurately the data.
In this case, an example of piecewise function is : $quad ysimeqbegincases
alpha +beta x && x<x_m\
fraca+bx+cx^21+Bx && x_mleq xleq x_M\
C && x_M<x
endcasesquad$ ( Next figure).
Or with the Heaviside step function :
$$ysimeq (alpha +beta x)left(1-H(x-x_m) right)+fraca+bx+cx^21+BxH(x-x_m)left(1-H(x-x_M)right)+C:H(x-x_M)$$
With a continuous function differentiable everywhere one canot expect an accurate fitting :
Such functions will not fit accurately the straight parts. Moreover, they will introduce some inevitable deviations on the curved part, which could be avoid with a piecewise function.
This is what we can see with the function that you show. By the way your function appears as one of the best. Of course it is always possible to improve with more adjustable parameters in the function.
Note : If the data comes from real experiments, it is always better to use a function deduced from theory and modeling of the physical phenomenon, even if the fitting is worse than with a purely mathematical choice of function, because it is of interest that the parameters have a real physical meaning.
$endgroup$
$begingroup$
Thank you Very much :)
$endgroup$
– Sachin Kumar
Mar 29 at 10:20
add a comment |
$begingroup$
Since you are looking for an algebraic function, you may try this:
$$f(x)=d-c left(1+fracx-abright)^-e$$
Which gives the following fit: See here the plot of fitted function with the data you provided.
Fitted parameters are a=2, b=3.34, c=7.94, d=7.81, e=0.5.
$endgroup$
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3164116%2fsearch-for-a-better-guess-fitting-function%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
The inspection of the data shows that two parts are linear with an high accuracy.
Obviously the points $(x_k,y_k)$ with $77leq k leq 100$ are exactly located on the horizontal line $y= 5.92608$ .
The points $(x_k,y_k)$ with $1leq k leq 10$ are very closely located on a straight line $y= a+bx$ :
For the other points $11leq k leq 76$ on can find various functions with a good fit.
For example this very simple form : $quad ysimeq fraca+bx+cx^21+Bx$
COMMENT :
With straight segments in a curve one usually chose a piecewise function to fit accurately the data.
In this case, an example of piecewise function is : $quad ysimeqbegincases
alpha +beta x && x<x_m\
fraca+bx+cx^21+Bx && x_mleq xleq x_M\
C && x_M<x
endcasesquad$ ( Next figure).
Or with the Heaviside step function :
$$ysimeq (alpha +beta x)left(1-H(x-x_m) right)+fraca+bx+cx^21+BxH(x-x_m)left(1-H(x-x_M)right)+C:H(x-x_M)$$
With a continuous function differentiable everywhere one canot expect an accurate fitting :
Such functions will not fit accurately the straight parts. Moreover, they will introduce some inevitable deviations on the curved part, which could be avoid with a piecewise function.
This is what we can see with the function that you show. By the way your function appears as one of the best. Of course it is always possible to improve with more adjustable parameters in the function.
Note : If the data comes from real experiments, it is always better to use a function deduced from theory and modeling of the physical phenomenon, even if the fitting is worse than with a purely mathematical choice of function, because it is of interest that the parameters have a real physical meaning.
$endgroup$
$begingroup$
Thank you Very much :)
$endgroup$
– Sachin Kumar
Mar 29 at 10:20
add a comment |
$begingroup$
The inspection of the data shows that two parts are linear with an high accuracy.
Obviously the points $(x_k,y_k)$ with $77leq k leq 100$ are exactly located on the horizontal line $y= 5.92608$ .
The points $(x_k,y_k)$ with $1leq k leq 10$ are very closely located on a straight line $y= a+bx$ :
For the other points $11leq k leq 76$ on can find various functions with a good fit.
For example this very simple form : $quad ysimeq fraca+bx+cx^21+Bx$
COMMENT :
With straight segments in a curve one usually chose a piecewise function to fit accurately the data.
In this case, an example of piecewise function is : $quad ysimeqbegincases
alpha +beta x && x<x_m\
fraca+bx+cx^21+Bx && x_mleq xleq x_M\
C && x_M<x
endcasesquad$ ( Next figure).
Or with the Heaviside step function :
$$ysimeq (alpha +beta x)left(1-H(x-x_m) right)+fraca+bx+cx^21+BxH(x-x_m)left(1-H(x-x_M)right)+C:H(x-x_M)$$
With a continuous function differentiable everywhere one canot expect an accurate fitting :
Such functions will not fit accurately the straight parts. Moreover, they will introduce some inevitable deviations on the curved part, which could be avoid with a piecewise function.
This is what we can see with the function that you show. By the way your function appears as one of the best. Of course it is always possible to improve with more adjustable parameters in the function.
Note : If the data comes from real experiments, it is always better to use a function deduced from theory and modeling of the physical phenomenon, even if the fitting is worse than with a purely mathematical choice of function, because it is of interest that the parameters have a real physical meaning.
$endgroup$
$begingroup$
Thank you Very much :)
$endgroup$
– Sachin Kumar
Mar 29 at 10:20
add a comment |
$begingroup$
The inspection of the data shows that two parts are linear with an high accuracy.
Obviously the points $(x_k,y_k)$ with $77leq k leq 100$ are exactly located on the horizontal line $y= 5.92608$ .
The points $(x_k,y_k)$ with $1leq k leq 10$ are very closely located on a straight line $y= a+bx$ :
For the other points $11leq k leq 76$ on can find various functions with a good fit.
For example this very simple form : $quad ysimeq fraca+bx+cx^21+Bx$
COMMENT :
With straight segments in a curve one usually chose a piecewise function to fit accurately the data.
In this case, an example of piecewise function is : $quad ysimeqbegincases
alpha +beta x && x<x_m\
fraca+bx+cx^21+Bx && x_mleq xleq x_M\
C && x_M<x
endcasesquad$ ( Next figure).
Or with the Heaviside step function :
$$ysimeq (alpha +beta x)left(1-H(x-x_m) right)+fraca+bx+cx^21+BxH(x-x_m)left(1-H(x-x_M)right)+C:H(x-x_M)$$
With a continuous function differentiable everywhere one canot expect an accurate fitting :
Such functions will not fit accurately the straight parts. Moreover, they will introduce some inevitable deviations on the curved part, which could be avoid with a piecewise function.
This is what we can see with the function that you show. By the way your function appears as one of the best. Of course it is always possible to improve with more adjustable parameters in the function.
Note : If the data comes from real experiments, it is always better to use a function deduced from theory and modeling of the physical phenomenon, even if the fitting is worse than with a purely mathematical choice of function, because it is of interest that the parameters have a real physical meaning.
$endgroup$
The inspection of the data shows that two parts are linear with an high accuracy.
Obviously the points $(x_k,y_k)$ with $77leq k leq 100$ are exactly located on the horizontal line $y= 5.92608$ .
The points $(x_k,y_k)$ with $1leq k leq 10$ are very closely located on a straight line $y= a+bx$ :
For the other points $11leq k leq 76$ on can find various functions with a good fit.
For example this very simple form : $quad ysimeq fraca+bx+cx^21+Bx$
COMMENT :
With straight segments in a curve one usually chose a piecewise function to fit accurately the data.
In this case, an example of piecewise function is : $quad ysimeqbegincases
alpha +beta x && x<x_m\
fraca+bx+cx^21+Bx && x_mleq xleq x_M\
C && x_M<x
endcasesquad$ ( Next figure).
Or with the Heaviside step function :
$$ysimeq (alpha +beta x)left(1-H(x-x_m) right)+fraca+bx+cx^21+BxH(x-x_m)left(1-H(x-x_M)right)+C:H(x-x_M)$$
With a continuous function differentiable everywhere one canot expect an accurate fitting :
Such functions will not fit accurately the straight parts. Moreover, they will introduce some inevitable deviations on the curved part, which could be avoid with a piecewise function.
This is what we can see with the function that you show. By the way your function appears as one of the best. Of course it is always possible to improve with more adjustable parameters in the function.
Note : If the data comes from real experiments, it is always better to use a function deduced from theory and modeling of the physical phenomenon, even if the fitting is worse than with a purely mathematical choice of function, because it is of interest that the parameters have a real physical meaning.
edited Mar 29 at 10:47
answered Mar 29 at 9:50
JJacquelinJJacquelin
45.8k21858
45.8k21858
$begingroup$
Thank you Very much :)
$endgroup$
– Sachin Kumar
Mar 29 at 10:20
add a comment |
$begingroup$
Thank you Very much :)
$endgroup$
– Sachin Kumar
Mar 29 at 10:20
$begingroup$
Thank you Very much :)
$endgroup$
– Sachin Kumar
Mar 29 at 10:20
$begingroup$
Thank you Very much :)
$endgroup$
– Sachin Kumar
Mar 29 at 10:20
add a comment |
$begingroup$
Since you are looking for an algebraic function, you may try this:
$$f(x)=d-c left(1+fracx-abright)^-e$$
Which gives the following fit: See here the plot of fitted function with the data you provided.
Fitted parameters are a=2, b=3.34, c=7.94, d=7.81, e=0.5.
$endgroup$
add a comment |
$begingroup$
Since you are looking for an algebraic function, you may try this:
$$f(x)=d-c left(1+fracx-abright)^-e$$
Which gives the following fit: See here the plot of fitted function with the data you provided.
Fitted parameters are a=2, b=3.34, c=7.94, d=7.81, e=0.5.
$endgroup$
add a comment |
$begingroup$
Since you are looking for an algebraic function, you may try this:
$$f(x)=d-c left(1+fracx-abright)^-e$$
Which gives the following fit: See here the plot of fitted function with the data you provided.
Fitted parameters are a=2, b=3.34, c=7.94, d=7.81, e=0.5.
$endgroup$
Since you are looking for an algebraic function, you may try this:
$$f(x)=d-c left(1+fracx-abright)^-e$$
Which gives the following fit: See here the plot of fitted function with the data you provided.
Fitted parameters are a=2, b=3.34, c=7.94, d=7.81, e=0.5.
answered Apr 4 at 6:25
lambdalambda
112
112
add a comment |
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3164116%2fsearch-for-a-better-guess-fitting-function%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
$begingroup$
It is not possible to work accurately without data (Scanning a graph is not accurate). It should be better post the data on numerical or text format.
$endgroup$
– JJacquelin
Mar 27 at 10:54
$begingroup$
@JJacquelin, Yes, It is here: pastebin.com/jv8hJyP2
$endgroup$
– Sachin Kumar
Mar 28 at 3:58