Sign in

username:

password:



Not a member?

Search matlab



Search tips

Subscribe to matlab



matlab by Keywords

Atanh | Autocorrelation | Bandpass Filter | C++ | Conv | Database | Deconv | Excel | FFT | Filter | Filtering | FIR | Fourier Transfrom | FSK | Gaussian Noise | Haykin | IFFT | Image | Java | LFSR | LMS | LPC | MEX | OFDM | QPSK | Radix | Random | Sampling | Segmentation | Simulink | Visual Basic | Waveform | Wavelet

Sponsor

NEW! TMS320C6474: 3x the performance. 1/3 the cost. Three 1 GHz cores on 1 chip.

Discussion Groups

Discussion Groups | Matlab DSP | linear least suqares

Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread

linear least suqares - lokeshs59 - Oct 4 22:23:38 2008



HOW to implement the Weighted Linear Least Squares
Estimation (Weighted LSE) algorithm. Apply your algorithm to the following
data sets (x1, y1, w1), …, (xN, yN, wN) where xi, yi are the
coordinates of the point
and wi is the weight of the corresponding point. 
x 1 2 3 4 5
y 2.67 5.89 7.03 9.47 10.01
w 1.0 0.5 0.4 0.3 0.1



(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )

Re: linear least suqares - el01...@mail.ntua.gr - Oct 6 8:00:13 2008

Hello,

Put all your y samples in a column vector 5x1 y5.
Put all your x samples in a column vector 5x1 h5.
Put all your weights in the diagonal elements of a 5x5 matrix W5. In the ii position put the
weight that corresponds to the i-th entry of y5 and x5. Then the optimal coefficient c in the
weighted least squares sense is given by 

c = inv(h5'*W5*h5)*h5'*W5*y5

where * denotes multiplication and ' denotes transpose (MATLAB notation)

and your y estimates become

y=c*x

If you have questions tell me.

Manolis

HOW to implement the Weighted Linear Least Squares
>Estimation (Weighted LSE) algorithm. Apply your algorithm to the following
>data sets (x1, y1, w1), ?, (xN, yN, wN) where xi, yi are the
>coordinates of the point
>and wi is the weight of the corresponding point. 
>x 1 2 3 4 5
>y 2.67 5.89 7.03 9.47 10.01
>w 1.0 0.5 0.4 0.3 0.1



(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )