Random forest classification in Julia
Below is example code for fitting and evaluating a linear regression and random forest classifier in Julia.
I've added the linear regression as a baseline for the random forest.
The models are evaluated on a mock variable U generated from two distributions, namely
\begin{aligned}
d_1 &= \text{Normal}(10, 2) \: \: \text{and} \\
d_2 &= \text{Normal}(12, 2),
\end{aligned}
The random variable V is just noise meant to test the classifier, generated via