I need to write a program that can predict the stock market price indicies. The predictions are based on a very naive method that assumes that the market index is a linear function of time. Real life estimates are, of course, much more complicated and keep many people busy all over the globe. Our assumption that the market index, y, is a linear function of time, x, which means that the index can be written as:
y = ax + b
where a is the slope of the linear function and b is the intersection with the y-axis. Such an assumption is usually referred to as a model, i.e. we use a linear model to predict the stock market indicies.
How do I go about starting this program as I'm not too strong on the maths side.
y = ax + b
where a is the slope of the linear function and b is the intersection with the y-axis. Such an assumption is usually referred to as a model, i.e. we use a linear model to predict the stock market indicies.
How do I go about starting this program as I'm not too strong on the maths side.
Comment