Question

6. This problem uses least squares to find the curve y=ax+bx2 that best fits these 4...

This problem uses least squares to find the curve \(y=a x+b x^{2}\) that best fits these 4 points in the plane:

$$ \left(x_{1}, y_{1}\right)=(-2,2), \quad\left(x_{2}, y_{2}\right)=(-1,1), \quad\left(x_{1}, y_{3}\right)=(1,0), \quad\left(x_{4}, y_{4}\right)=(2,2) . $$

a. Write down 4 equations \(a x_{i}+b x_{i}^{2}=y_{i}, i=1,2,3,4\), that would be true if the line actually went through a11 four points.

b. Now write those four equations in the form \(\mathbf{A}\left[\begin{array}{l}a \\ b\end{array}\right]=\mathbf{y}\)

c. Now find \(\left[\begin{array}{l}\hat{a} \\ \hat{b}\end{array}\right]\) that minimizes \(\left\|A\left[\begin{array}{l}a \\ b\end{array}\right]-\mathbf{y}\right\|^{2}\).

1 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
6. This problem uses least squares to find the curve y=ax+bx2 that best fits these 4...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Problem on Linear programming and Simplex method

    Problem on Linear programming and Simplex methodThe \(\ell_{1}\) norm of a vector \(v \in \mathbb{R}\) is defined by$$ \|v\|_{1}:=\sum_{i=1}^{n}\left|v_{i}\right| $$Problems of the form Minimize \(\|v\|_{1}\) subject to \(v \in \mathbb{R}^{n}\) and \(A v=b\) arise very frequently in applied math, particularly in the field of compressed sensing.Consider the special case of this problem whith \(n=3\),$$ A=\left(\begin{array}{lll} 1 & 1 & 0 \\ 3 & 0 & 1 \end{array}\right) \quad \text { and } \quad b=\left(\begin{array}{l} 3 \\ 8 \end{array}\right) $$(a) (3...

  • Find the matrix A such that T(x)=Ax

    Let \(T: R^{3} \rightarrow R^{2}\) defined by \(T\left(\left[\begin{array}{l}x_{1} \\ x_{2} \\ x_{3}\end{array}\right]\right)=\left[\begin{array}{c}2 x_{1}+x_{3} \\ -x_{2}\end{array}\right]\).a. Find the matrix \(A\) such that \(T(x)=A x\)b. Demonstrate that \(T\) is a linear transformation.

  • Bivariate normal distribution

    Problem \(1 \quad\) Bivariate normal distributionAssume that \(\boldsymbol{X}\) is a bivariate normal random variable with$$ \boldsymbol{\mu}=E \boldsymbol{X}=\left(\begin{array}{l} 0 \\ 2 \end{array}\right) \quad \text { and } \quad \Sigma=\operatorname{Cov} \boldsymbol{X}=\left(\begin{array}{ll} 3 & 1 \\ 1 & 3 \end{array}\right) $$Let$$ \boldsymbol{Y}=\left(\begin{array}{l} Y_{1} \\ Y_{2} \end{array}\right)=\left(\begin{array}{lr} 1 / \sqrt{2} & -1 / \sqrt{2} \\ 1 / \sqrt{2} & 1 / \sqrt{2} \end{array}\right) \boldsymbol{X} $$a) Find the mean vector and covariance matrix of \(Y\). What is the distribution of \(Y ?\) Are \(Y_{1}\) and...

  • I have the first method complete, but I can't figure out thesecond method. I have...

    I have the first method complete, but I can't figure out the second method Could someone please show how to use the second method?2. Find the unit step response of:$$ \begin{aligned} \dot{\overrightarrow{\mathbf{x}}}(t) &=\left[\begin{array}{cc} 0 & 1 \\ -2 & -2 \end{array}\right] \overrightarrow{\mathbf{x}}(t)+\left[\begin{array}{l} 1 \\ 1 \end{array}\right] u(t) \\ y(t) &=\left[\begin{array}{cc} 2 & 3 \end{array}\right] \overrightarrow{\mathbf{x}}(t) \end{aligned} $$by two methods (1): transfer function and then (2) \(y(t)=\mathbf{C} e^{\mathbf{A} t} \overrightarrow{\mathbf{x}}(0)+\mathbf{C} \int_{0}^{t} e^{\mathbf{A}(t-\tau)} \mathbf{B} u(\tau) d \tau+\mathbf{D} u(t)\). Re-member that the Laplace...

  • Random variables X and Y have joint probability mass function (PMF):

    Random variables \(X\) and \(Y\) have joint probability mass function (PMF):\(P_{X, Y}\left(x_{k}, y_{j}\right)=P\left(X=x_{k}, Y=y_{j}\right)= \begin{cases}\frac{1}{20}\left|x_{k}+y_{j}\right|, & x_{k}=-1,0,1 ; y_{j}=-3,0,3 \\ 0, & \text { otherwise }\end{cases}\)(a) Find \(F_{X, Y}(x, y)\), the joint cumulative distribution function (CDF) of \(X\) and \(Y\). A graphical representation is sufficient: probably the best way to do this is to draw the \(x-y\) plane and label different regions with the value of \(F_{X, Y}(x, y)\) in that region.(b) Let \(Z=X^{2}+Y^{2}\). Find the probability mass function (PMF)...

  • Given an LTI system with

    Given an LTI system with$$ \begin{aligned} &A=\left(\begin{array}{cc} 1 / 2 & 0 \\ 0 & -1 / 4 \end{array}\right), B=\left(\begin{array}{l} 0 \\ 1 \end{array}\right), C=(1-1), \\ &D=0 \quad X(0)=\left(\begin{array}{l} -1 \\ -1 \end{array}\right), U(n)=(-1)^{n} u[n] \end{aligned} $$Calculate \(y[n], y[4]\) and \(y[\) Steady State \(]\)

  • Consider the heat conduction problem

    5. If \(f(x)=\left\{\begin{array}{cc}0 & -2<x<0 \\ x & 0<x<2\end{array} \quad\right.\)is periodio of period 4 , and whose Fourier series is given by \(\frac{a_{0}}{2}+\sum_{n=1}^{2}\left[a_{n} \cos \left(\frac{n \pi}{2} x\right)+b_{n} \sin \left(\frac{n \pi}{2} x\right)\right], \quad\) find \(a_{n}\)A. \(\frac{2}{n^{2} \pi^{2}}\)B. \(\frac{(-1)^{n}-1}{n^{2} \pi^{2}}\)C. \(\frac{4}{n^{2} \pi^{2}}\)D. \(\frac{2}{n \pi}\)\(\mathbf{E}_{1} \frac{2\left((-1)^{n}-1\right)}{n^{2} \pi^{2}}\)F. \(\frac{4}{n \pi}\)6. Let \(f(x)-2 x-l\) on \([0,2]\). The Fourier sine series for \(f(x)\) is \(\sum_{w}^{n} b_{n} \sin \left(\frac{n \pi}{2} x\right)\), What is \(b, ?\)A. \(\frac{4}{3 \pi}\)B. \(\frac{2}{\pi}\)C. \(\frac{4}{\pi}\)D. \(\frac{-4}{3 \pi}\)E. \(\frac{-2}{\pi}\)F. \(\frac{-4}{\pi}\)7. Let \(f(x)\) be periodic...

  • core (b) A 460-V 60-Hz four-pole Y-connected induction motor is rated at 25 hp. The equivalent...

    (b) A 460-V 60-Hz four-pole Y-connected induction motor is ratedat \(25 \mathrm{hp}\). The equivalent circuit parameters are$$ \begin{array}{ll} R_{1}=0.15 \Omega & R_{2}=0.154 \Omega \quad X_{M}=20 \Omega \\ X_{1}=0.852 \Omega & X_{2}=1.066 \Omega \\ P_{\mathrm{F} \& \mathrm{~W}}=400 \mathrm{~W} & P_{\text {misc }}=150 \mathrm{~W} \end{array} $$\(P_{\text {core }}=400 \mathrm{~W}\) (lumped with rotational losses)[14 points]For a slip of \(0.02\), find(1) The line current \(I_{L}\). [3 points](2) The stator power factor. [1 point](3) The rotor power factor. [1 point](4) The rotor frequency. [1 point](5)...

  • To find the solution of the Initial-Value Problem

    To find the solution of the Initial-Value Problem \(\left\{\begin{array}{l}y \prime \prime-4 y=16 \cos 2 t \\ y(0)=0 \\ y^{\prime}(0)=0\end{array}\right.\) theLaplace Transform was applied and it was obtained as "Laplace Transform" of the unknown function \(y=f(t)\), the following:\(L\{f(t)\}=\frac{1}{s-2}-\frac{s}{s+2}-\frac{2 s}{s^{2}+4}\)None of them\(L\{f(t)\}=\frac{2 s}{s-2}-\frac{1}{s+2}-\frac{s}{s^{2}+4}\)\(L\{f(t)\}=\frac{1}{s-2}+\frac{1}{s+2}-\frac{2 s}{s^{2}+4}\)\(L\{f(t)\}=\frac{2}{s-1}+\frac{1}{s+4}-\frac{2 s}{s^{2}+4}\)

  • pls show work and credit for helping loads/Practice%20Final.pdf 4/6 Problem #4. A bicycle innertube, with average radius R and tube danneter "a", is wound with 18 equally-spaced turns of Wire...

    pls show work and credit for helping loads/Practice%20Final.pdf 4/6 Problem #4. A bicycle innertube, with average radius R and tube danneter "a", is wound with 18 equally-spaced turns of Wire A. (Figure on left) A Fits Inside Wire B Ib A) Use Ampere's Law to prove that if the current through wire A is I, then the magnetic field inside of the innertube is QMo/R) Ignore the figure on the right for these first two parts dl B) Find the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT