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

            Solar Wings Breeze Design and development Specifications (Breeze) References Navigation menu1368-485X"Hang glider: Breeze (Solar Wings)"e

            Kathakali Contents Etymology and nomenclature History Repertoire Songs and musical instruments Traditional plays Styles: Sampradayam Training centers and awards Relationship to other dance forms See also Notes References External links Navigation menueThe Illustrated Encyclopedia of Hinduism: A-MSouth Asian Folklore: An EncyclopediaRoutledge International Encyclopedia of Women: Global Women's Issues and KnowledgeKathakali Dance-drama: Where Gods and Demons Come to PlayKathakali Dance-drama: Where Gods and Demons Come to PlayKathakali Dance-drama: Where Gods and Demons Come to Play10.1353/atj.2005.0004The Illustrated Encyclopedia of Hinduism: A-MEncyclopedia of HinduismKathakali Dance-drama: Where Gods and Demons Come to PlaySonic Liturgy: Ritual and Music in Hindu Tradition"The Mirror of Gesture"Kathakali Dance-drama: Where Gods and Demons Come to Play"Kathakali"Indian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceMedieval Indian Literature: An AnthologyThe Oxford Companion to Indian TheatreSouth Asian Folklore: An Encyclopedia : Afghanistan, Bangladesh, India, Nepal, Pakistan, Sri LankaThe Rise of Performance Studies: Rethinking Richard Schechner's Broad SpectrumIndian Theatre: Traditions of PerformanceModern Asian Theatre and Performance 1900-2000Critical Theory and PerformanceBetween Theater and AnthropologyKathakali603847011Indian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceBetween Theater and AnthropologyBetween Theater and AnthropologyNambeesan Smaraka AwardsArchivedThe Cambridge Guide to TheatreRoutledge International Encyclopedia of Women: Global Women's Issues and KnowledgeThe Garland Encyclopedia of World Music: South Asia : the Indian subcontinentThe Ethos of Noh: Actors and Their Art10.2307/1145740By Means of Performance: Intercultural Studies of Theatre and Ritual10.1017/s204912550000100xReconceiving the Renaissance: A Critical ReaderPerformance TheoryListening to Theatre: The Aural Dimension of Beijing Opera10.2307/1146013Kathakali: The Art of the Non-WorldlyOn KathakaliKathakali, the dance theatreThe Kathakali Complex: Performance & StructureKathakali Dance-Drama: Where Gods and Demons Come to Play10.1093/obo/9780195399318-0071Drama and Ritual of Early Hinduism"In the Shadow of Hollywood Orientalism: Authentic East Indian Dancing"10.1080/08949460490274013Sanskrit Play Production in Ancient IndiaIndian Music: History and StructureBharata, the Nāṭyaśāstra233639306Table of Contents2238067286469807Dance In Indian Painting10.2307/32047833204783Kathakali Dance-Theatre: A Visual Narrative of Sacred Indian MimeIndian Classical Dance: The Renaissance and BeyondKathakali: an indigenous art-form of Keralaeee

            Urgehal History Discography Band members References External links Navigation menu"Mediateket: Urgehal""Interview with Enzifer of Urgehal, 2007""Urgehal - Interview"Urgehal"Urgehal Frontman Trondr Nefas Dies at 35"Urgehal9042691cb161873230(data)0000 0001 0669 4224no2016126817ee6ccef6-e558-44b6-b059-dbbb5b913b24145036459145036459