1
$\begingroup$

I'm sorry for a really basic question. I lack proper background in mathematics, but I have to calculate a list of values.

I'm given a vector (list) of observations, and $\hat{Y}$, which is a list of $Y$ estimations (in my case, by the means of linear regression). I need to calculate values $h_i$, such that

$h_i = \frac{\partial{\hat{Y_i}}}{\partial{Y_i}}$

This is where I'm stuck. How do I calculate $h_i$? If, for example $Y=[1, 2, 3, 4]$ and $\hat{Y}=[1.1, 2.2, 3, 3.9]$ what would be corresponding $h_i$ values? I'm familiar with matlab and python, so answers that use either syntax will be perfectly understood

PS. I'm really embarrassed to ask such a basic question. Thus the anonymity. Please forgive me. Oh, and this is not a homework

  • 0
    Impressive. :) So why can't $h_i$ be the slope of your regression line, then?2011-05-04

0 Answers 0