Cody

Solution 1575933

Submitted on 5 Jul 2018 by David Verrelli
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)

ans = 3.0695 -0.5010 sol = 3.0695 -0.5010 ans = 3.0695 -0.5010

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)

ans = 6.7377 45.4143 sol = 6.7377 45.4143 ans = 6.7377 45.4143

Suggested Problems

More from this Author2