Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [least-squares]

The tag has no usage guidance.

0
votes
0answers
21 views

Non Linear Recursive/Online Least Squares

I am searching for a recursive or online non linear least squares algorithm. I want to spread the computation out as new data is sampled like in the linear Recursive Least Squares or the LMS. ...
0
votes
0answers
18 views

Can coefficients of a DWT be computed using least squares approximation?

I assume that it can be computed given function values for each sample as a vector and wavelet values for each scale and translation packed in a matrix. Can anyone clarify the matrix construction and ...
1
vote
1answer
60 views

Equivalence of ML and DFT Peak Finding for Single Tone Estimation

My understanding is Maximum Likelihood and DFT Peak Finding for a single tone produce the same results assuming the ML is restricted to the same frequencies as the DFT. I was wondering if there was ...
1
vote
2answers
102 views

Solving a Linear Mean-Square Estimation the easy way

I have an exercise which is quite trivial. However I got stuck and I'm not sure if this the end-result. I assume there has to be a way to get this result much quicker. Given are two randomly ...
0
votes
0answers
33 views

Linear difference equation and method of Least Squares

I'm reading the book "Fault-Diagnosis Systems" by Isermann in the par. 9.2.1a. The author explains how to estimate the parameter of a linear difference equation using Least Squares. We start with a ...
1
vote
4answers
231 views

Sequential Form of the Least Squares for Linear Least Squares Model

I'm currently working on a project in which I need to find the tilt of a surface. Let's assume I'm only concerned with a single dimension tilt (i.e. slope) to begin. I currently have the ability to ...
0
votes
1answer
28 views

Defining Model in Kalman for Getting Position Using

I am stuck at modeling a system model, i.e. getting my state vector and input vector for navigating just using navaid and ins (tactical). My guess is that position is my only state vector and INS ...
1
vote
1answer
48 views

Adaptive LMS Algorithim MATLAB

I'm having some trouble implementing my LMS Adaptive Filter in MATLAB to seperate wideband and narrowband signals from a voice signal. I'm using a delayed version of my input as a reference as well ...
1
vote
1answer
78 views

mpiir_l2(): Results are not IIR but FIR filters - why and how to avoid this?

I'm using mpiir_l2() from user Matt L's PhD thesis to design IIR filters. I set the number of numerator and denominator coefficients both to the same value (between ...
0
votes
1answer
72 views

Equalizers with low data rate systems

In case of using equalizers with ZigBee systems, what type of fading does the channel show, flat or frequency selective, fast or slow? Is the inter-symbol interference (ISI) problem encountered in ...
0
votes
1answer
126 views

Recursive Least Square Adaptive Linear Equalizer

For the adaptive filter to work properly, a desired signal d(n) needs to be provided. The output from the equalizer y(n) is subtracted from d(n) to produce an error signal, which is used to adjust the ...
0
votes
1answer
222 views

Design of FIR filters with arbitrary magnitude and phase responses

I found many information in this thesis "Algorithms for the Constrained Design of Digital Filters with Arbitrary Magnitude and Phase Responses",i want to understand it. This question is a ...
1
vote
1answer
96 views

Sequential Non Linear Least Squares Problem

I have the the following non-linear function, $$s(x;A_k,\mu_k,\sigma_k)=\sum_{k=1}^2 A_k \exp\left(\frac{-(x-\mu_k)^2}{\sigma_k^2}\right)$$ with unknown (but deterministic) parameters $A_k,\mu_k,\...
1
vote
3answers
123 views

Complex Least Squares Approximation

In the case of frequency domain FIR filter design, the error function given by : $$E(\omega)=H(e^{j\omega})-D(e^{j\omega}) \tag{1}$$ is a linear function with respect to the unknown filter ...
0
votes
1answer
52 views

Why Isn't the ML Estimator (MLE) in MIMO Spatial Multiplexing Obtained by the Least Squares Solution?

In the simplest scenario of MIMO spatial multiplexing: $$\mathbf{y} = H\mathbf{s} + \mathbf{n}$$ where: $\mathbf{s}=[s_0,s_1,...s_{M-1}] \\\mathbf{y}=[y_0,y_1,...y_{N-1}]$ $\mathbf{n}=[n_0,n_1,......
1
vote
2answers
56 views

What is the definition of Linear Predictive Coefficients when the optimal value is not unique?

Linear predictive coefficients of signal y are defined as the best $k$ coefficients $a_i, i = 1, \ldots, k$, that will approximate $y_n$ by $-\sum_{i=1}^k{a_iy_{n-i}}$. (Best approximation is that ...
0
votes
2answers
305 views

Why Is Non Linear Least Squares Method from MATLAB and Alglib Gives Different Results on the Same Data?

i'm trying to rewrite my Matalab prototype for some DSP to C++ and encountering a displeasing problem. I'm trying to fit data to a function $y = a * (\pi / 2 + arctg(b * x))$. In Matlab it works well ...
2
votes
2answers
119 views

Finding the Best Gaussian Smoothing Kernel to Minimize the Discrepancy Between Two Images

Suppose we have two grayscale images, $A$ and $B$. $A$ and $B$ very strongly resemble each other, such that the mean of the absolute difference $\lvert A - B\rvert$ is fairly small. Suppose further ...
0
votes
2answers
88 views

Solving LASSO ($ {L}_{1} $ Regularized Least Squares) with Gradient Descent

To the best of my knowledge, state of the art methods for optimizing the LASSO objective function include the LARS algorithm and proximal gradient methods. I was wondering however, if the LASSO ...
3
votes
1answer
1k views

Python: Least Squares Support Vector Machine (LS-SVM)

I'm looking for a Python package for a LS-SVM or a way to tune a normal SVM from scikit-learn to a Least-Squares Support Vector Machine for a classification problem. The goal of a SVM is to maximize ...
1
vote
1answer
90 views

Obtaining Correct (Least Squares Sense) Affine Transform Parameters Between Two Images

I have two images that I want to compute the affine motion model parameters. The model that I use is $$x' = a_1x+a_2y+a_3$$ $$y' = a_4x+a_5y+a_6$$ To calculate those 6 parameters, I picked 6 points (...
1
vote
2answers
244 views

Least Squares Fitting to Inverse Exponential Function

I have a time series of measurements that resembles the shape of an exponential function. The samples are a bit noisy and sometimes there is a weak sine like ripple signal ontop of it. Simplified the ...
0
votes
1answer
97 views

Received signal error vs. BER

It is my understanding that the least squares algorithm (e.g., in equalization) minimizes the received signal error. However, minimizing the received signal error does not necessarily equate to ...
1
vote
1answer
200 views

Least Squares Linear Phase FIR Filter Design

In explication ''the geometric interpretation of least squares'' Typically, the number of frequency constraints is much greater than the number of design variables (filter coefficients). In these ...
-1
votes
0answers
40 views

Solving amplitude and phase for know frequencies using Least Square

I supposed that I have $X(t)$ that is composed of waves that I don't know anything about it (how many waves, their frequencies, amplitude, phase). I will inject this data $X(t)$ with generated data ...
1
vote
1answer
138 views

RLS Algorithm (Memoryless)

I have been studying the adaptive filters lately and now when I am at RLS (Recursive Least Squar) Algorithm I came across the term used in the weighting function of the RLS called forgetting factor ($\...
-1
votes
1answer
115 views

Properties of Optimization Techniques in Filter Design

I have this design: Can you tell me about the type of filter and the algorithm just viewing this design, or should there be other information?
3
votes
0answers
166 views

Least Squares Approximation for FIR Filter Design

Following this paper , I am trying to make a least-squares algorithm in MATLAB, but for type I (I know about firls()). ...
2
votes
1answer
272 views

How to Use the DFT (FFT) to Solve a Least Squares Regularization Problem (Inverse Problem)?

Let $X$ and $K$ be an image and a Point Spread Function (PSF), respectively. The blur image $B$ is obtained as follows $$B = X * K$$ I want to solve the following general regularization problem $$...
5
votes
1answer
238 views

Direct Correlation (DC) time delay estimation: variance keeps decreasing for increasing SNR?

I'm trying to reproduce the results from this paper "Discrete time techniques for Time Delay Estimation" doi:10.1109/78.193195, for both the correlation and Least Squares. I've generated a random (...
1
vote
0answers
58 views

Solve for transfer function coefficients embedded in a non-linear system

Given a complex input signal $x$ and real input signal $v$, a 4th order (for simplicity) transfer function $H(z)$ is first applied to $v$ to obtain $w$, which in the time domain is represented by the ...
0
votes
1answer
233 views

Estimate a transfer function from ARX models - Is ARIMAX better?

There is diffrent models which can be used to create a dynamical model by using least squares. Those models are following: ARX ARMAX ARIMAX OE BJ But if my goal with creating a dynamical model is to ...
0
votes
1answer
258 views

Difference between Leaking factor and Forgetting factor

I am using a Recursive least square adaptive filter to process electromyography signals and it is working decently so far. I decided to implement an LMS adaptive filter as a noise cancellation, so ...
1
vote
0answers
35 views

Digital Filter Design Accuracy [duplicate]

Having only dealt with digital filter scarcely, the question dawned to me when I used the firls function in matlab to design an equalizer with a certain gain response. In general, can we prescribe ...
4
votes
6answers
330 views

The Least Norm Solution of Under Determined Linear System

Suppose I have a matrix $$A= \begin{pmatrix} 1 & 0 & 1 & 0\\ 0 & 1 & 1& 0\\ \end{pmatrix} $$ where the variables are channel information like assume $X_1$, $X_2$, $X_3$ ...
0
votes
1answer
583 views

Maximum Likelihood Estimator (MLE), MMSE and LS - Are All of Them Regressor, Estimator and Predictor?

Can all three criteria ML, MMSE, and LS be called regressor, estimator, and predictor ? If not, an intuitive explanation of why they can't be would be good.
0
votes
1answer
57 views

1/f^2 weighting for least-squares FIR

I am currently modifying the firls.m from Octave to allow all types of FIRs, differentiators, and Hilbert transformers, while taking a peak at Matlab's. I see there ...
0
votes
1answer
107 views

Least squares FIR for type II

Following this paper (see the Matlab example at the end), I am trying to make a least-squares algorithm in Octave, but for type II (I know about firls). For type I ...
0
votes
2answers
296 views

How to add group delay?

I was confused about the value of group delay, I am not sure whether my opinion is correct. For example, if I want to add a group delay of $0.25$ time units to a zero-phase signal, does it mean that I ...
1
vote
2answers
95 views

Matlab : Stuck in implementing Least Squares estimator for this model

The formula to estimate $\mathbf{h}$ is then $$\hat{\mathbf{h}} = (X^T X)^{-1} X^T \vec{y}\tag{2}$$ I think this can be implemented in Matlab using ...
0
votes
1answer
119 views

Part 1- How to apply Least Squares estimation for sparse coefficient estimation?

The model is expressed as, $$y(n) = \sum_{i=0}^{p-1} r(i) x(n-i) + v(n) \tag{1}$$ where $\mathbf{r} = [r_1,r_2,\ldots,r_p]^T$ is the sparse channel coefficients of length $p$, $\mathbf{x} = [x_1,x_2,....
2
votes
1answer
423 views

What Is the Difference between RLS, LMS and Wiener Filter? When Is One Preferred Over Another?

I'm dealing with a channel equalization problem where the channel is modeled as a WSS process. I understand LMS utilises a Wiener-like approach, ie it converges to the optimal (wiener) solution. I ...
22
votes
3answers
3k views

FIR Filter design: Window vs Parks-McClellan and Least-Squares

Are there any advantages to use a window approach over Parks-McClellan (further abbreviated here as PMcC) or Least Squares algorithms for FIR filter design of a low pass filter? Assume with today's ...
6
votes
2answers
673 views

Zero Phase Filter: Determining Initial Conditions for Forward Backward Filtering

Is anybody familiar with Gustafson's algorithm for minimizing transients in forward backward filtering [1]? I'm trying to implement it and my first guess was to check Matlab's filtfilt.m, since they ...
0
votes
1answer
60 views

Estimating Q/Damping Factor from noisy measurements

I have a damped, tuned circuit and want to measure its Q factor. The hardware sends an impulse 'ping' and samples the output as it rings down. Is there an efficient way to fit an equation of the form ...
1
vote
0answers
54 views

MIL given for RLS equations vs the Woodbury derivation [closed]

Can any one help me in deriving the matrix inversion lemma rule for RLS algorithm? I don't know how to start with. Many books have just stated but they haven't derived it.
0
votes
1answer
214 views

Least Squares with Non Zero Mean Noise

What happens if the noise has no zero mean? I mean, if the exercise is something like: $$y(k) = A x + \eta(k)$$ When I have zero mean, I start from: $$y = A x$$ $$\Rightarrow \hat{y} = A \hat{x}$$ ...
1
vote
0answers
116 views

Instability problem in NLMS adaptive algorithm

I have been used NLMS algorithm to equalize 4x4 MIMO signals, but the bit-error-rate (BER) after equalization is unstable with iterations. I don't know if it is the normal behavior of the adaptive ...
3
votes
3answers
235 views

LMS filter weight update

I have a general question regarding Least mean squares adaptive filters. Using the example of noise cancellation, I understand that if you have a set of reference signals (S) and corrupted signals (S+...
5
votes
1answer
3k views

What's the Difference Between LMS and Gradient Descent Adaptation?

I found algorithms that seems the same to me, but they are described with different names (in field of adaptive filtering). For example: LMS - least-mean-squares seems to be GD - stochastic gradient ...