Finding exponential behaviour from log plots

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












Suppose we have a plot of $y$ vs $x,$ where we expect to see an exponential behaviour and we want to extract the parameters. Let's give our expected behaviour the following expression: $$y = ae^bxtag1$$



Then upon taking the (natural) log of the (1) we obtain:
$$
lny = lna+bx tag2
$$
which tells us that if we simply take the $ln$ of our y-values and plot $ln(y)$ vs $x,$ we expect to see a linear behaviour if the data indeed exhibits an exponential behaviour, and then by taking the slope we'll be able to extract the key parameter $b$, let's call this method (i). Alternatively, we can simply plot $y$ vs $x$ on semilogy plot, where the values are the same except that the y-axis is now shown on a log scale, and again we can take the slope for $b,$ let's call this approach (ii). In addition, one can also plot $y$ vs $x$ on a loglog plot, as a third approach (iii).



  • The question is, if we want to not only test that we have a behaviour such as in $(1)$ but to also easily extract the parameters, which of the three approaches (above) should one opt for? and is there any difference or all they really equivalent? (e.g., one difference could be that in one method one may have to perform further operation on the slope to extract $b$).






share|cite|improve this question






















  • Are you thinking about regression problems ?
    – Claude Leibovici
    Aug 29 at 9:34










  • @ClaudeLeibovici Right, I have a dataset y-x, from observation guess an exponential behaviour, now I want to test and extract the corresponding parameters (if model (1) is adopted).
    – user929304
    Aug 29 at 9:40










  • What is the difference between (i) and (ii)?
    – tst
    Aug 29 at 9:54











  • This is what I was suspecting. In fact, since what is measured is $y$ and nothing else (such as $log(y)$), you will need to end with a nonlinear regression : this measn that you need starting values. So, the simplest is to use $(2)$, perform a linear rgeression $z=alpha+bx$ then $a=e^alpha$ and $b$ are your starting guesses. Never stop after any transformation of the data.
    – Claude Leibovici
    Aug 29 at 9:56










  • What @tst asked; and also: how does (iii) allow you to extract a parameter?
    – joriki
    Aug 29 at 11:31














up vote
0
down vote

favorite












Suppose we have a plot of $y$ vs $x,$ where we expect to see an exponential behaviour and we want to extract the parameters. Let's give our expected behaviour the following expression: $$y = ae^bxtag1$$



Then upon taking the (natural) log of the (1) we obtain:
$$
lny = lna+bx tag2
$$
which tells us that if we simply take the $ln$ of our y-values and plot $ln(y)$ vs $x,$ we expect to see a linear behaviour if the data indeed exhibits an exponential behaviour, and then by taking the slope we'll be able to extract the key parameter $b$, let's call this method (i). Alternatively, we can simply plot $y$ vs $x$ on semilogy plot, where the values are the same except that the y-axis is now shown on a log scale, and again we can take the slope for $b,$ let's call this approach (ii). In addition, one can also plot $y$ vs $x$ on a loglog plot, as a third approach (iii).



  • The question is, if we want to not only test that we have a behaviour such as in $(1)$ but to also easily extract the parameters, which of the three approaches (above) should one opt for? and is there any difference or all they really equivalent? (e.g., one difference could be that in one method one may have to perform further operation on the slope to extract $b$).






share|cite|improve this question






















  • Are you thinking about regression problems ?
    – Claude Leibovici
    Aug 29 at 9:34










  • @ClaudeLeibovici Right, I have a dataset y-x, from observation guess an exponential behaviour, now I want to test and extract the corresponding parameters (if model (1) is adopted).
    – user929304
    Aug 29 at 9:40










  • What is the difference between (i) and (ii)?
    – tst
    Aug 29 at 9:54











  • This is what I was suspecting. In fact, since what is measured is $y$ and nothing else (such as $log(y)$), you will need to end with a nonlinear regression : this measn that you need starting values. So, the simplest is to use $(2)$, perform a linear rgeression $z=alpha+bx$ then $a=e^alpha$ and $b$ are your starting guesses. Never stop after any transformation of the data.
    – Claude Leibovici
    Aug 29 at 9:56










  • What @tst asked; and also: how does (iii) allow you to extract a parameter?
    – joriki
    Aug 29 at 11:31












up vote
0
down vote

favorite









up vote
0
down vote

favorite











Suppose we have a plot of $y$ vs $x,$ where we expect to see an exponential behaviour and we want to extract the parameters. Let's give our expected behaviour the following expression: $$y = ae^bxtag1$$



Then upon taking the (natural) log of the (1) we obtain:
$$
lny = lna+bx tag2
$$
which tells us that if we simply take the $ln$ of our y-values and plot $ln(y)$ vs $x,$ we expect to see a linear behaviour if the data indeed exhibits an exponential behaviour, and then by taking the slope we'll be able to extract the key parameter $b$, let's call this method (i). Alternatively, we can simply plot $y$ vs $x$ on semilogy plot, where the values are the same except that the y-axis is now shown on a log scale, and again we can take the slope for $b,$ let's call this approach (ii). In addition, one can also plot $y$ vs $x$ on a loglog plot, as a third approach (iii).



  • The question is, if we want to not only test that we have a behaviour such as in $(1)$ but to also easily extract the parameters, which of the three approaches (above) should one opt for? and is there any difference or all they really equivalent? (e.g., one difference could be that in one method one may have to perform further operation on the slope to extract $b$).






share|cite|improve this question














Suppose we have a plot of $y$ vs $x,$ where we expect to see an exponential behaviour and we want to extract the parameters. Let's give our expected behaviour the following expression: $$y = ae^bxtag1$$



Then upon taking the (natural) log of the (1) we obtain:
$$
lny = lna+bx tag2
$$
which tells us that if we simply take the $ln$ of our y-values and plot $ln(y)$ vs $x,$ we expect to see a linear behaviour if the data indeed exhibits an exponential behaviour, and then by taking the slope we'll be able to extract the key parameter $b$, let's call this method (i). Alternatively, we can simply plot $y$ vs $x$ on semilogy plot, where the values are the same except that the y-axis is now shown on a log scale, and again we can take the slope for $b,$ let's call this approach (ii). In addition, one can also plot $y$ vs $x$ on a loglog plot, as a third approach (iii).



  • The question is, if we want to not only test that we have a behaviour such as in $(1)$ but to also easily extract the parameters, which of the three approaches (above) should one opt for? and is there any difference or all they really equivalent? (e.g., one difference could be that in one method one may have to perform further operation on the slope to extract $b$).








share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Aug 29 at 9:48









xbh

3,252320




3,252320










asked Aug 29 at 9:26









user929304

515419




515419











  • Are you thinking about regression problems ?
    – Claude Leibovici
    Aug 29 at 9:34










  • @ClaudeLeibovici Right, I have a dataset y-x, from observation guess an exponential behaviour, now I want to test and extract the corresponding parameters (if model (1) is adopted).
    – user929304
    Aug 29 at 9:40










  • What is the difference between (i) and (ii)?
    – tst
    Aug 29 at 9:54











  • This is what I was suspecting. In fact, since what is measured is $y$ and nothing else (such as $log(y)$), you will need to end with a nonlinear regression : this measn that you need starting values. So, the simplest is to use $(2)$, perform a linear rgeression $z=alpha+bx$ then $a=e^alpha$ and $b$ are your starting guesses. Never stop after any transformation of the data.
    – Claude Leibovici
    Aug 29 at 9:56










  • What @tst asked; and also: how does (iii) allow you to extract a parameter?
    – joriki
    Aug 29 at 11:31
















  • Are you thinking about regression problems ?
    – Claude Leibovici
    Aug 29 at 9:34










  • @ClaudeLeibovici Right, I have a dataset y-x, from observation guess an exponential behaviour, now I want to test and extract the corresponding parameters (if model (1) is adopted).
    – user929304
    Aug 29 at 9:40










  • What is the difference between (i) and (ii)?
    – tst
    Aug 29 at 9:54











  • This is what I was suspecting. In fact, since what is measured is $y$ and nothing else (such as $log(y)$), you will need to end with a nonlinear regression : this measn that you need starting values. So, the simplest is to use $(2)$, perform a linear rgeression $z=alpha+bx$ then $a=e^alpha$ and $b$ are your starting guesses. Never stop after any transformation of the data.
    – Claude Leibovici
    Aug 29 at 9:56










  • What @tst asked; and also: how does (iii) allow you to extract a parameter?
    – joriki
    Aug 29 at 11:31















Are you thinking about regression problems ?
– Claude Leibovici
Aug 29 at 9:34




Are you thinking about regression problems ?
– Claude Leibovici
Aug 29 at 9:34












@ClaudeLeibovici Right, I have a dataset y-x, from observation guess an exponential behaviour, now I want to test and extract the corresponding parameters (if model (1) is adopted).
– user929304
Aug 29 at 9:40




@ClaudeLeibovici Right, I have a dataset y-x, from observation guess an exponential behaviour, now I want to test and extract the corresponding parameters (if model (1) is adopted).
– user929304
Aug 29 at 9:40












What is the difference between (i) and (ii)?
– tst
Aug 29 at 9:54





What is the difference between (i) and (ii)?
– tst
Aug 29 at 9:54













This is what I was suspecting. In fact, since what is measured is $y$ and nothing else (such as $log(y)$), you will need to end with a nonlinear regression : this measn that you need starting values. So, the simplest is to use $(2)$, perform a linear rgeression $z=alpha+bx$ then $a=e^alpha$ and $b$ are your starting guesses. Never stop after any transformation of the data.
– Claude Leibovici
Aug 29 at 9:56




This is what I was suspecting. In fact, since what is measured is $y$ and nothing else (such as $log(y)$), you will need to end with a nonlinear regression : this measn that you need starting values. So, the simplest is to use $(2)$, perform a linear rgeression $z=alpha+bx$ then $a=e^alpha$ and $b$ are your starting guesses. Never stop after any transformation of the data.
– Claude Leibovici
Aug 29 at 9:56












What @tst asked; and also: how does (iii) allow you to extract a parameter?
– joriki
Aug 29 at 11:31




What @tst asked; and also: how does (iii) allow you to extract a parameter?
– joriki
Aug 29 at 11:31















active

oldest

votes











Your Answer




StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");

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',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
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%2f2898153%2ffinding-exponential-behaviour-from-log-plots%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2898153%2ffinding-exponential-behaviour-from-log-plots%23new-answer', 'question_page');

);

Post as a guest













































































這個網誌中的熱門文章

How to combine Bézier curves to a surface?

Mutual Information Always Non-negative

Why am i infinitely getting the same tweet with the Twitter Search API?