residual sum of squares for matrix 7x1
Show older comments
I have a 14x1 matrix, I don't know how to compute the squares of the residuals. thank you.
3 Comments
Birdman
on 28 Nov 2017
What do you mean by residual?
the cyclist
on 28 Nov 2017
Do you mean you are fitting an equation? What MATLAB function(s) are you using to do that?
John D'Errico
on 28 Nov 2017
Edited: John D'Errico
on 28 Nov 2017
Is it a 7x1 or a 14x1 VECTOR anyway? We cannot read your mind.
To compute the sum of squares of residuals you...
1. Compute the residuals. Note that you cannot compute a residual without the existence of TWO sets of numbers, thus the actuals and the predicted.
2. Square them
3. Form the sum
In which step are you having problems?
Answers (0)
Categories
Find more on Interpolation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!