Curve-fit with zero offset
Say you are measuring some signal, which you expect to show an exponential decay, but you are unsure of the zero-point on your measuring device. If you want to measure the time constant of the decay you need to know what it’s decaying to. For a signal s,
In order to do conventional least-squares fitting to you need to determine
.
For instance, the figure above shows the fluorescent intensity of some 3T3 cells to ionomycin. The traces are normalized to the initial values. Notice that the cells don’t recover to the levels at which they began. I wanted to know the time constant of the decay on the tail of the trace.
I solved this problem by performing the fit inside an iterative minimum-finding function. First I identified the point of fastest decline and selected that as the point. Then I iterated to find the value for
which minimized the norm of the error:
for best-fit A and .
y0_fit = fminbnd( @(y0) ...
norm( y-y0 - exp( polyval( polyfit( x, log(y-y0), 1), x))) ,...
-10*y(1), y(1) );
This, along with other analysis:
For a population of cells (Showing mean and standard deviation for each test point. numbers in parentheses indicate number of cells in the sample.):


