Math, Stats, Julia, Predictions, Linear Regression.
rBeta*xVals - yVals,1) if L1Cost < bestL1Cost # Cost variables global alpha1 = rAlpha global beta1 = rBeta global bestL1Cost = L1Cost end L2Cost = norm(rAlpha .+ rBeta*xVals - yVals) if L2Cost < bestL2Cost global alpha2 = rAlpha global beta2 = rBeta global bestL2Cost = L2Cost end end # the loop