Cody

Solution 1017972

Submitted on 15 Oct 2016 by Peng Liu
  • Size: 13
  • This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x=linspace(0,1,50)'; y=4*x-1+ randn(50,1); % perturbed observations sol = Lls2(x,y) assert(abs(sum(Lls2(x,y))-4+1)<2)

sol = 4.3227 -1.3058

2   Pass
x=linspace(0,1,50)'; y=7*x+45+ randn(50,1); % perturbed observations sol = Lls2(x,y) assert(abs(sum(Lls2(x,y))-7-45)<2)

sol = 7.5301 44.7218