Perfect multiplier between two curved line

19 Views Asked by At

Let me give you the context, and what I am trying to achieve. I am trying to automate the plotting between company earnings and stock price. For that, I need a ratio where company earnings * Ratio would give me a result close to my earning.

Right now I plot my earnings, I plot the company stock price over 15 years and I trial and error the ratio to find the one that would give me a plot close to my stock price

enter image description here

In the above ratio = 8 then 9 until 12 that give me the most satisfying result

My goal would be to automate that process and find a mathematical way to find the best ratio

Any Idea?