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










0












$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!!



enter image description here










share|cite|improve this question











$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















0












$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!!



enter image description here










share|cite|improve this question











$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













0












0








0





$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!!



enter image description here










share|cite|improve this question











$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!!



enter image description here







calculus






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








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












  • 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










2 Answers
2






active

oldest

votes


















1












$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$ :



enter image description here



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$



enter image description here



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)$$



enter image description here



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.






share|cite|improve this answer











$endgroup$












  • $begingroup$
    Thank you Very much :)
    $endgroup$
    – Sachin Kumar
    Mar 29 at 10:20


















1












$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.






share|cite|improve this answer









$endgroup$













    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
    );



    );













    draft saved

    draft discarded


















    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









    1












    $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$ :



    enter image description here



    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$



    enter image description here



    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)$$



    enter image description here



    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.






    share|cite|improve this answer











    $endgroup$












    • $begingroup$
      Thank you Very much :)
      $endgroup$
      – Sachin Kumar
      Mar 29 at 10:20















    1












    $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$ :



    enter image description here



    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$



    enter image description here



    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)$$



    enter image description here



    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.






    share|cite|improve this answer











    $endgroup$












    • $begingroup$
      Thank you Very much :)
      $endgroup$
      – Sachin Kumar
      Mar 29 at 10:20













    1












    1








    1





    $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$ :



    enter image description here



    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$



    enter image description here



    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)$$



    enter image description here



    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.






    share|cite|improve this answer











    $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$ :



    enter image description here



    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$



    enter image description here



    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)$$



    enter image description here



    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.







    share|cite|improve this answer














    share|cite|improve this answer



    share|cite|improve this answer








    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
















    • $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











    1












    $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.






    share|cite|improve this answer









    $endgroup$

















      1












      $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.






      share|cite|improve this answer









      $endgroup$















        1












        1








        1





        $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.






        share|cite|improve this answer









        $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.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Apr 4 at 6:25









        lambdalambda

        112




        112



























            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            How should I support this large drywall patch? Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How do I cover large gaps in drywall?How do I keep drywall around a patch from crumbling?Can I glue a second layer of drywall?How to patch long strip on drywall?Large drywall patch: how to avoid bulging seams?Drywall Mesh Patch vs. Bulge? To remove or not to remove?How to fix this drywall job?Prep drywall before backsplashWhat's the best way to fix this horrible drywall patch job?Drywall patching using 3M Patch Plus Primer

            Lowndes Grove History Architecture References Navigation menu32°48′6″N 79°57′58″W / 32.80167°N 79.96611°W / 32.80167; -79.9661132°48′6″N 79°57′58″W / 32.80167°N 79.96611°W / 32.80167; -79.9661178002500"National Register Information System"Historic houses of South Carolina"Lowndes Grove""+32° 48' 6.00", −79° 57' 58.00""Lowndes Grove, Charleston County (260 St. Margaret St., Charleston)""Lowndes Grove"The Charleston ExpositionIt Happened in South Carolina"Lowndes Grove (House), Saint Margaret Street & Sixth Avenue, Charleston, Charleston County, SC(Photographs)"Plantations of the Carolina Low Countrye

            random experiment with two different functions on unit interval Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)Random variable and probability space notionsRandom Walk with EdgesFinding functions where the increase over a random interval is Poisson distributedNumber of days until dayCan an observed event in fact be of zero probability?Unit random processmodels of coins and uniform distributionHow to get the number of successes given $n$ trials , probability $P$ and a random variable $X$Absorbing Markov chain in a computer. Is “almost every” turned into always convergence in computer executions?Stopped random walk is not uniformly integrable