r/MathHelp • u/mrcavooter69 • Nov 10 '22
Trying to create an equation given data, not sure if I'm doing it correctly (not homework)
| 0.1 | 1.96% | -33.50% |
|---|---|---|
| 1 | 0.97% | -10.50% |
| 10 | -0.02% | 12.50% |
| 100 | -1.02% | 35.50% |
| 1000 | -2.01% | 58.50% |
| 10000 | -3.00% | 81.50% |
I am trying to create 2 equations, one for the relationship between columns 1&2 and one for the relationship between columns 1&3. I'm getting thrown off by it starting positive and then going negative or vice versa. My first thought was to put these in excel and create a scatterplot. I made the 1st column log scale and found a trendline that made sense. Since I want to map a % change to a number in first column I made the 1st column y and 2nd column x. The trendline I got is y=9.4801*exp(-232.1*x). When I plug in a % change, I am getting close to the right answer, but its not as accurate as I want. For example, plugging in -0.02% gives me 9.93 when its supposed to be 10. Is there anyway to make more accurate?
I'm not sure if this makes sense, but any help or advice would be greatly appreciated.
1
u/ArchaicLlama Nov 11 '22
The usual way I think of to do this is to write both x and y in terms of a new variable like t, so that each column is x(t) and y(t). If you've ever heard of "parametric equations", this is exactly that. You assign each point in both x and y to increasing t, so like t=1, t=2, etc. and see if you can write x(t) and y(t) as independent equations. As you should hopefully see, y(t) is fairly obvious. So the question becomes what you can make x(t). See where you get with that.
1
u/Uli_Minati Nov 11 '22
The first set of percentages is almost linear, most values have a difference of 0.99% except for one 1.00%. Is this correct or maybe an error?
Second column is exactly 23% apart for each value, so that's great
Percentage = -10.50% + 23% · x
(P + 10.50%) / 23% = xWhere x is 0 for 10.50% and increases by 1 for every 23% increase
Note that the first column is multiplied by 10 for every x
Column = 10x
Column = 10[P + 10.50%] / 23%
1
u/AutoModerator Nov 10 '22
Hi, /u/mrcavooter69! This is an automated reminder:
What have you tried so far? (See Rule #2; to add an image, you may upload it to an external image-sharing site like Imgur and include the link in your post.)
Please don't delete your post. (See Rule #7)
We, the moderators of /r/MathHelp, appreciate that your question contributes to the MathHelp archived questions that will help others searching for similar answers in the future. Thank you for obeying these instructions.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.