I am trying to do a simple profit prediction of an organization in the future based on the past profit in JavaScript. My dataset will be the date as x-axis and the profit as y-axis. I am new to data analytics and basically I have zero knowledge in it and I not sure which prediction algorithm will be the most suitable.
I have done some researches here and here and found out that I can actually use the Linear Regression Prediction algorithm. However, from those examples, I only saw that the prediction algorithm is simply plotting a straight line based on the data to find out the regression value and it does not predict any value for the future at all.
I wonder if the algorithm mentioned above is applicable for my case?
Thanks!