5

It's similar to the post Interpretation of R's lm() output.

lm(formula = iris$Sepal.Width ~ iris$Petal.Width)

however, just a point that I can't understand for the explanation of t-value.

enter image description here

It shows that, t-value is the ratio from the first two values

t-value = estimate_mean/std.error

Questions: Is this t-value exactly the t-score in student's t distribution?

Based on my understanding, from the definition, t-score is calculated as follows. enter image description here

If assuming a null hypothesis that response residual mean is 0, the correct t-score in this lm() case, in my understanding, should be as follows.

 t-score given H_null = estimated_mean / (std.error/sqrt(n)) 
                      = sqrt(n) * estimated_mean/std.error

Therefore, t-score I derived is sqrt(n) times larger than t-value given by lm() .... Any one know which part is wrong above? Thanks!

  • 3
  • What is the source of the orange image? 2. You seem to be confusing the standard deviation and the standard error in the ordinary one sample t-test (the orange image shows one, then you say the other; they're different). 3. Testing a regression coefficient is not (usually) the same as performing an ordinary one-sample t-test.
  • – Glen_b Nov 08 '15 at 15:10
  • @Glen_b, the orange image is the one I summarized from http://stattrek.com/probability-distributions/t-distribution.aspx. could you provide some more details on how to test a regression coefficient please? – HappyCoding Nov 08 '15 at 15:34
  • @HappyCoding No, because you have a more fundamental problem as I already explained in my previous point (2). The fact that you just ignored it completely concerns me. Given (3), it might be better to look at the one sample t-statistic throughout, get that sorted out and then if you still have a question about regression, to ask about it separately (since dealing with the other issue will change what you ask). – Glen_b Nov 08 '15 at 15:37