sand_box
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
sand_box [2024/05/23 08:57] – hkimscil | sand_box [2024/09/25 07:45] (current) – hkimscil | ||
---|---|---|---|
Line 5: | Line 5: | ||
</ | </ | ||
+ | {{tabinclude> | ||
+ | < | ||
+ | * page1|top page | ||
+ | * page2 | ||
+ | * *page3 | ||
+ | |||
+ | </ | ||
[{{: | [{{: | ||
- | \begin{eqnarray*} | + | \begin{align*} |
- | & | + | & \; |
&= \sum{(Y_i - (a + bX_i))^2} | &= \sum{(Y_i - (a + bX_i))^2} | ||
&= \text{SSE or SS.residual} \;\;\; \text{(and this should be the least value.)} \\ | &= \text{SSE or SS.residual} \;\;\; \text{(and this should be the least value.)} \\ | ||
- | \end{eqnarray*} | + | \end{align*} |
<WRAP box> | <WRAP box> | ||
- | \begin{eqnarray*} | + | \begin{align*} |
- | \text{for a (constant)} \\ | + | &\text{for a (constant)} \\ \\ |
- | \\ | + | &\dfrac{\text{d}}{\text{dv}} \sum{(Y_i - (a + bX_i))^2} |
- | \dfrac{\text{d}}{\text{dv}} \sum{(Y_i - (a + bX_i))^2} & = & \sum \dfrac{\text{d}}{\text{dv}} {(Y_i - (a + bX_i))^2} \\ | + | & |
- | & = & \sum{2 (Y_i - (a + bX_i))} * (-1) \;\;\;\; \\ | + | &= \sum{2 (Y_i - (a + bX_i))} * (-1) \;\;\;\; \\ |
- | & \because | + | & |
- | & = & -2 \sum{(Y_i - (a + bX_i))} \\ | + | & = -2 \sum{(Y_i - (a + bX_i))} \\ |
\\ | \\ | ||
- | \text{in order to have the least value, the above should be zero} \\ | + | &\text{in order to have the least value, the above should be zero} \\ |
\\ | \\ | ||
- | -2 \sum{(Y_i - (a + bX_i))} | + | &-2 \sum{(Y_i - (a + bX_i))} = 0 \\ |
- | \sum{(Y_i - (a + bX_i))} | + | &\sum{(Y_i - (a + bX_i))} = 0 \\ |
- | \sum{Y_i} - \sum{a} - b \sum{X_i} | + | &\sum{Y_i} - \sum{a} - b \sum{X_i} = 0 \\ |
- | \sum{Y_i} - n*{a} - b \sum{X_i} | + | &\sum{Y_i} - n*{a} - b \sum{X_i} = 0 \\ |
- | n*{a} & = & \sum{Y_i} - b \sum{X_i} \\ | + | &n*{a} = \sum{Y_i} - b \sum{X_i} \\ |
- | a & = & \dfrac{\sum{Y_i}}{n} - b \dfrac{\sum{X_i}}{n} \\ | + | &a = \dfrac{\sum{Y_i}}{n} - b \dfrac{\sum{X_i}}{n} \\ |
- | a & = & \overline{Y} - b \overline{X} \\ | + | &a = \overline{Y} - b \overline{X} \\ |
- | \end{eqnarray*} | + | \end{align*} |
</ | </ | ||
sand_box.1716422227.txt.gz · Last modified: 2024/05/23 08:57 by hkimscil