Linear regression and varience.

AI Thread Summary
The discussion focuses on calculating variance after determining the line of best fit using linear regression. The user is attempting to use a LaTeX equation for variance but is struggling with formatting issues, specifically with line breaks. They seek clarification on whether to sum the differences between actual and predicted y values to compute variance. The user expresses some uncertainty but believes they may have resolved their initial confusion. Assistance with LaTeX formatting remains a key request.
matthyaouw
Gold Member
Messages
1,125
Reaction score
5
Im having some trouble with this, and I was hoping someone could help me.
I have a data set from which I've determined the \widehat{a} and \widehat{b} values and determined where the line of best fit should go using linear regression. The next thing I have to do is work out the varience using this equation:

\underline{\sum(y-\widehat{y})^2}<br /> \\n-2
(edit) Sorry, first time using latex, and I can't access the tutorials for some reason.
I've typed :
"\underline{\sum(y-\widehat{y})^2}
\\n-2"
But I'm not getting a new line after ^2}. How do I do this? (/edit)

I'm a bit unsure what to do here. Does that mean that I have to sum up all of my y values, and take away the expected y values that are predicted on my line of best fit which correspond to the actual values I've entered?
 
Last edited:
Physics news on Phys.org
Never mind, got it (I think). If someone could still tell me what I'm doing wrong with the Latex I'd appreciate it though.
 
I tried to combine those 2 formulas but it didn't work. I tried using another case where there are 2 red balls and 2 blue balls only so when combining the formula I got ##\frac{(4-1)!}{2!2!}=\frac{3}{2}## which does not make sense. Is there any formula to calculate cyclic permutation of identical objects or I have to do it by listing all the possibilities? Thanks
Since ##px^9+q## is the factor, then ##x^9=\frac{-q}{p}## will be one of the roots. Let ##f(x)=27x^{18}+bx^9+70##, then: $$27\left(\frac{-q}{p}\right)^2+b\left(\frac{-q}{p}\right)+70=0$$ $$b=27 \frac{q}{p}+70 \frac{p}{q}$$ $$b=\frac{27q^2+70p^2}{pq}$$ From this expression, it looks like there is no greatest value of ##b## because increasing the value of ##p## and ##q## will also increase the value of ##b##. How to find the greatest value of ##b##? Thanks
Back
Top