Cody

Solution 1582760

Submitted on 13 Jul 2018 by bainhome
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 = 3.0478 -0.4736

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.4711 44.6530

Suggested Problems

More from this Author2