Re: Solve Ax=b with different weights for each x[i]



On Jan 3, 12:31 am, spasmous <spasm...@xxxxxxxxx> wrote:
I'd like to try out a weighting approach that uses different weights
on each part of the solution. E.g. starting with Ax=b where x=x[1 to
n] and b=b[1 to n], then for computing each element x[i] I'd like to
weight b[i] more strongly.

Kind of like solving WAx=Wb with W=diag([2 1 1 ...]) and taking x[1]
from that solution, then W=diag([1 2 1 1...]) and taking x[2] from
that solution, etc. I know this is kind of "wrong" but is there a way
to do it by some clever weighting matrix that only means solving the
equation once?

Use
Weighted Least Squares

x = (A^T P A)^-1 * A^T P b

where P is your weight matrix (P is usually diagonal and each element
corresponds to 1/(\sigma_bi)^2, where (\sigma_bi)^2 is the variance of
element b[i]. P(i,i) = 1 is full weight, P(i,i) = 0.5 is half weight,
etc.
.



Relevant Pages

  • Re: Solve Ax=b with different weights for each x[i]
    ... weight bmore strongly. ... to do it by some clever weighting matrix that only means solving the ... Robust least-squares algorithms based on orthogonal ... decompositions just solve for you this problem without needing to ...
    (sci.math.num-analysis)
  • Re: Solve Ax=b with different weights for each x[i]
    ... weight bmore strongly. ... to do it by some clever weighting matrix that only means solving the ... where lambda is a scalar. ...
    (sci.math.num-analysis)
  • Re: Calculate Standard Deviation with R
    ... it gives you the weighted variance. ... weight by n. ... Descriptive Statistics ...
    (sci.stat.math)
  • Re: Countnumberofdays while function = TRUE
    ... behind each cell in B. ... >> B1 may only contain the number of days the animal needs to reach a weight ...
    (microsoft.public.excel.programming)
  • Re: Creatine - how long to leave system?
    ... I'm assuming this corresponds to how long it takes for body ... weight to return to pre-creatine levels (at least the weight due to ... about a month for creatine to "leave" the system such that the body ...
    (misc.fitness.weights)

Quantcast