Re: Curve fitting



If you use any linear Least Squares (LS) algorithm, you can
practically force a constraint by increasing the weight of the
respective point to near infinity. In this context, a point (xi, yi)
refers to the ith rows in X and y of the problem

min ||y - Xa||
a

You replace (xi, yi) with (w*xi, w*yi). In the limit w->oo, the
constraint is exact, i.e., (yi - xiTa) -> 0, but you can practically
use a large finite value w, so that (yi - xiTa) is very small. The
allowable size of the weight will depend on the specific algorithm
because typical algorithms will be unstable for sufficiently large
weights and you will have to determine the largest weight before this
happens. However, row sequential LS via the Sherman-Morrison formula
is stable with infinite weights because the weight w conveniently
appears as a reciprocal 1/w = 0. If you constrain only one point, the
exact row sequential update can be conveniently done on a solution
previously found by QR or Cholesky decomposition. If you are
interested, I can look up the exact procedure for you.


On Nov 16, 2:05 pm, eoz1...@xxxxxxxxxxxxxx wrote:
Hi everyone,

I have a question regarding curve fitting to data.
My question is:
If I have some data points one of them is (0,0) and when I fit them to
a curve, how can I control this fitting curve and force it to pass a
definite point like (0,0).

Could anyone give help in this question?

Thank you in advance.

RainyCloud

.



Relevant Pages

  • Re: the "hat" container class [C++]
    ... Craig Nicol wrote: ... I notice however that your selection algorithm ... I store the cumulative chances. ... according to their weight. ...
    (comp.programming)
  • Re: What I learned from Class Viewer
    ... displaced by such a trivially easy algorithm? ... by simply assuming that the weight is a distance between nodes ... while is not a valid circuit as a node is omitted. ...
    (comp.lang.java.programmer)
  • Re: Finding longest path in graph between two vertices
    ... a topological sort and than a relaxation to find the critical path ... Bellman-Ford Algorithm (due to the weight negation it should find not ... DAG shortest path algorithm (which for each topologically sorted vertex ...
    (sci.math)
  • Re: a chessboard type problem
    ... algorithm would be great. ... particular there are no directed cycles with a total negative weight. ... Consider each square on the chess board as a ... about from the start node to one of the last rank nodes. ...
    (comp.theory)
  • Re: a chessboard type problem
    ... algorithm would be great. ... particular there are no directed cycles with a total negative weight. ... Consider each square on the chess board as a ... about from the start node to one of the last rank nodes. ...
    (comp.theory)