Model output based on collected data
Given some data, we create a model that with an input $x$ we can predict an output $y$
Given some historical $x, y$ data, can we predict for future $x$ what $y$ will be?
Make a numerical prediction based on example input and actual outputs
Stocks have natural labels, where we can just look forward in the market to get our labelled data.
By having a bunch of features $x$ (Bollinger value, current price etc), we can train an ML model to predict prices


To test algorithms, we can roll back time and run in on past data.
From this, we can make orders in the past and forecast our portfolio earnings to compare with with the actual earnings
Roll back time and test your system with your model

A previous order was made at t=t1, and another order made at t=t2

By backtesting, we can see how our strategy performs against benchmarks (S&P 500 in this case)
Regression based learning has a number of issues associated
<aside> 📌 SUMMARY: We can use supervised regression learning to optimize our portfolio, and perform backtesting to see how well it does against the market
</aside>