Message Boards Message Boards

0
|
6269 Views
|
0 Replies
|
0 Total Likes
View groups...
Share
Share this post:

How can I calculate the variance of a list of fit residuals?

Posted 10 years ago

I am trying to calculate the variance of a list of fit residuals; I've run this loop for 49 regressions :

residuals = Table[thisModel = LinearModelFit[data[[All, {1, i}]], x, x]; {thisModel[ "FitResiduals"]}, {i, 49}]

residuals = residuals[[2 ;;, All]];

And now I need to calculate the variance of each separate array of residuals! I am not too sure how I can do this. Basically I now have 48 lists(after I took out the first row) and need to calculate 48 separate variances. I'm sure its something simple.

Thanks

Dylan

POSTED BY: Dylan Mitchell
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract