IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 8, 2005, 4:25:56 PM (21 years ago)
Author:
eugene
Message:

modified stats section: split robust into robust and fitted stats

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/pslib/psLibADD.tex

    r4518 r4529  
    1 %%% $Id: psLibADD.tex,v 1.81 2005-07-08 20:50:52 price Exp $
     1%%% $Id: psLibADD.tex,v 1.82 2005-07-09 02:25:56 eugene Exp $
    22\documentclass[panstarrs]{panstarrs}
    33
     
    262262\subsubsection{Robust Statistics}
    263263
    264 The robust version of the statistics provides estimators of basic
    265 statistical concepts which are reliable even for data samples with
    266 significant contamination.  A typical case is the situation in which
    267 the data of interest represent a primary population of interest with a
     264Robust statistics algorithms provide estimators of basic statistical
     265concepts which are reliable even for data samples with significant
     266contamination.  A typical case is the situation in which the data of
     267interest represent a primary population of interest with a
    268268single-valued mean and standard deviation and a secondary population
    269269of data with a substantially different distribution.  For example, an
     
    273273sources, but many are significantly higher (contributed by stars) or
    274274significantly lower (dead pixels).  If we want to measure the mean of
    275 the background, a robust mean is necessary as the outliers will
    276 strongly bias the sample statistics.
    277 
    278 The robust statistics are calculated by constructing a histogram of
    279 the values and performing the measurements on the histogram.  The
    280 choice of a bin size requires some care.  If the data are integer
    281 valued, the natural bin size is an integer.  Otherwise, the bin should
    282 be a fraction of an estimate of the standard deviation.  Use the
    283 $3\sigma$ clipped standard deviation as an estimator of the standard
    284 deviation.  The bin size shall be set at $\sigma_e / 10$.  The
    285 remaining steps of the algorithm are as follows:
     275the background, a robust mean is necessary as the outliers will bias
     276the sample statistics.  We define two levels of robust statistical
     277estimators: robust statistics using the cumulative histogram, and
     278statistics measured by fitting the differential histogram.
     279
     280The robust statistics from the cumulative are calculated by
     281constructing a cumulative histogram of the values and performing
     282simple measurements of the histogram data distribution.  The use of
     283the cumulative histogram by this algorithm reduces the sensitivity to
     284the exact bin size.  The initial bin size is set to 1/1000 of the
     285total data range. The data values are found using quadratic
     286interpolation between the bin of interest and its two neighbors.
    286287
    287288\begin{itemize}
    288289\item Construct the histogram with the specified bin size.
    289 \item Smooth the histogram by a Gaussian with $\sigma_s = \sigma_e /
    290   4$. 
    291 \item Find the bin with the peak value in the range $L_{\frac{1}{4}}$
    292   to $U_{\frac{1}{4}}$; this is the robust mode, $\mbox{mode}_r$. 
    293 \item Determine $dL = (U_{\frac{1}{4}} - L_{\frac{1}{4}}) / 4$.
    294 \item Fit a Gaussian to the bins in the range $\mbox{mode}_r - dL$ to
    295   $\mbox{mode}_r + dL$.
    296 \item The resulting fit parameters are the robust mean,
    297 $\mbox{mean}_r$ and the robust standard deviation, $\sigma_r$.
     290\item Construct the cumulative histogram from the specific histogram
     291\item Find the bin which contains the 50\% data point. 
     292\item Interpolate to the exact 50\% position: this is the robust
     293  histogram median.
     294\item Find the bins which contains the 15.8655\% and 84.1345\% data
     295  points. 
     296\item Interpolate to find these two positions exactly: these are the
     297  $\pm 1\sigma$ positions.
     298\item Determine $\sigma$ as 1/2 of the distance between these
     299  positions.
     300\item If the measured $\sigma$ is less than 2 times the bin size,
     301  exclude points which are more than 25 bins from the median,
     302  recalculate the bin size, and perform the algorithm again.
     303\item Find the bins which contains the 25\% and 75\% data points.
     304\item Interpolate to find these two positions exactly: these are the
     305  upper and lower quartile positions.
    298306\end{itemize}
    299 
    300 To determine the robust median, construct the cumulative histogram
    301 from the histogram above. Select the bin which contains the 50th
    302 percentile value and its two neighbors.  Fit a quadratic to these
    303 three points.  The robust median value is the coordinate of the
    304 quadratic which returns the 50\% value.  For the upper and lower
    305 quartile points, the same process should be used, choosing the three
    306 bins in the vicinity of the upper and lower quartile points.
    307307
    308308If the errors in the input values are known, then the same approach is
     
    314314value (as opposed to a Gaussian), where the boxcar width is equal to
    315315$2 \sqrt{2 \ln 2}$ times the error and each input value contributes
    316 constant area.  Then the mean, median, mode, standard deviation and
    317 quartiles are estimated in the same manner as above.
     316constant area.  Then the robust median and standard deviation are
     317estimated in the same manner as above.
     318
     319\subsubsection{Fitted Statistics}
     320
     321The fitted statistics algorithm starts with the histogram used for the
     322robust statistics and determines the population statistics by fitting
     323a Gaussian model to the histogram.  The algorithm is as follows:
     324
     325\begin{itemize}
     326\item Perform the Robust Histogram Statistics algorithm above
     327\item Smooth the resulting histogram with a Gaussian with $\sigma_s$ =
     328  1 bin.
     329\item Find the bin with the peak value in the range $\pm 2 \sigma$ of
     330  the robust histogram median.
     331\item Fit a Gaussian to the bins in the range $\pm 2 \sigma$ of
     332  the robust histogram median.
     333\item The robust mean $\mbox{mean}_r$ is derived directly from the
     334  fitted Gaussian mean. 
     335\item The robust standard deviation, $\sigma_r$, is determined by
     336  subtracting the smoothing scale in quadrature: $\sigma_r^2 =
     337  \sigma^2 - \sigma_s^2$
     338\end{itemize}
    318339
    319340\subsubsection{Histograms}
Note: See TracChangeset for help on using the changeset viewer.