44. Application of Inner Product Spaces
1
Dated: 22-06-2025
Least Squares Lines
Experiments often produce results in form of pairs \((x, y)\) and when graphed, seem like a line
.2 The equation for the line
2 can be
We want to determine the parameters \(\beta_0\) and \(\beta_1\) such that those points are as close to the line
2 as possible. If the data points are on the line
2 then these parameters will satisfy the following equations.
This can be written as
Where
Computing the least squares solution
3 of \(X\beta = y\) is equivalent to finding the \(\beta\) that determines the least squares line
.
Weighted Least Squares
Imagine a vector
4 of \(n\) observations \(y_1, \ldots, y_n\) and suppose we want to approximate it by a vector
4 \(y^\prime\) which belongs to some subspace
5 of \(\mathbb R^n\), which will to be constructed by the columns
of \(A\). Then we find \(x^\prime\) that makes \(A x^\prime = y^\prime\) as close to \(y\) as possible. So that measure of closeness is the weighted error
Where
Thus \(x^\prime\) is the ordinary least squares solution
3 of the equation
The normal equation for the weighted least squares solution
is
What Does Trend Analysis Mean?
An aspect of technical analysis that tries to predict the future movement of a stock based on past data. Trend analysis is based on the idea that what has happened in the past gives traders an idea of what will happen in the future.
Linear Trend
The simplest and most common use of trend analysis
occurs when the points \(t_0, t_1, \ldots, t_n\) can be adjusted so that they are evenly spaced and sum to zero.
Example
Fit a quadratic trend function
to the data \((-2,3), (-1,5), (0,5), (1,4)\) and \((2,3)\)
Fourier Series
If \(f\) is a \(2 \pi\) periodic function
6 then
is called the Fourier series
of \(f\) where
References
Read more about notations and symbols.