recategorized by
811 views

3 Answers

0 0 votes

Ans :- 1.00

For NNN points (xi,yi)(x_i,y_i)(xi​,yi​), the least-squares slope mmm is

m=N∑xiyi−(∑xi)(∑yi)/ N∑xi^2−(∑xi)^2.

0 0 votes
Formula for slope of the best-fit line (least squares) for the points: 

image

Answer is 1

0 0 votes
By matrix method optimal vector $\text{w}^* = (XX^\top)^{-1}XY$  where $X$ and $Y$ are vectors containing values values of x and y respectively.

$$X=\begin{bmatrix}
1& 1 & 1 \\
-1 & 0  & 1  \\
\end{bmatrix}, \quad Y= \begin{bmatrix}
 0.8\\
 2.2\\
 2.8\\
\end{bmatrix}$$

Note first row of $X$ is for the intercept term of the line.

$$(XX^\top)^{-1} = \frac{1}{6}\begin{bmatrix}
2 & 0\\
0 & 3 \\
\end{bmatrix} \quad XY=\begin{bmatrix}
5.8 \\
2 \\
\end{bmatrix}$$

$$\boxed{\text{w}^* =(XX^\top)^{-1}XY =\begin{bmatrix}
\frac{11.6}{6} \\
1 \\
\end{bmatrix}} $$

so best fit line : $y=\vec{x} \cdot \text{w}^*$ or $y=\text{w}_0 +x_1\text{w}_1$

We have slope = $\boxed{\text{w}_1 = 1}$

 

Related questions

5 5 votes
3 answers 3 answers
922
922 views
admin asked May 20, 2023
922 views
A recent survey shows that $65 \%$ of tobacco users were advised to stop consuming tobacco. The survey also shows that $3$ out of $10$ tobacco users attempted to stop us...
4 4 votes
2 2 answers
1.2k
1.2k views
admin asked May 20, 2023
1,150 views
How many triangles are present in the given figure?$12$ $16$$20$$24$
3 3 votes
2 2 answers
608
608 views
admin asked May 20, 2023
608 views
Consider the following equation in a $2-\text{D}$ real-space. $\left|x_{1}\right|^{p}+\left|x_{2}\right|^{p}=1 \text { for } p>0$ Which of the following statement(s) is/a...
1 1 vote
1 1 answer
490
490 views
Shubham Sharma 2 asked Mar 6, 2025
490 views
What is the value of $\left(\frac{3^{81}}{27^{4}}\right)^{\frac{1}{3}}$ ?$3^{13}$$3^{96}$$3^{23}$$3^{69}$
Position:
Show:
Answer: