Changeset 4529 for trunk/doc/pslib/psLibADD.tex
- Timestamp:
- Jul 8, 2005, 4:25:56 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/doc/pslib/psLibADD.tex (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/psLibADD.tex
r4518 r4529 1 %%% $Id: psLibADD.tex,v 1.8 1 2005-07-08 20:50:52 price Exp $1 %%% $Id: psLibADD.tex,v 1.82 2005-07-09 02:25:56 eugene Exp $ 2 2 \documentclass[panstarrs]{panstarrs} 3 3 … … 262 262 \subsubsection{Robust Statistics} 263 263 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 ofinterest represent a primary population of interest with a264 Robust statistics algorithms provide estimators of basic statistical 265 concepts which are reliable even for data samples with significant 266 contamination. A typical case is the situation in which the data of 267 interest represent a primary population of interest with a 268 268 single-valued mean and standard deviation and a secondary population 269 269 of data with a substantially different distribution. For example, an … … 273 273 sources, but many are significantly higher (contributed by stars) or 274 274 significantly 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: 275 the background, a robust mean is necessary as the outliers will bias 276 the sample statistics. We define two levels of robust statistical 277 estimators: robust statistics using the cumulative histogram, and 278 statistics measured by fitting the differential histogram. 279 280 The robust statistics from the cumulative are calculated by 281 constructing a cumulative histogram of the values and performing 282 simple measurements of the histogram data distribution. The use of 283 the cumulative histogram by this algorithm reduces the sensitivity to 284 the exact bin size. The initial bin size is set to 1/1000 of the 285 total data range. The data values are found using quadratic 286 interpolation between the bin of interest and its two neighbors. 286 287 287 288 \begin{itemize} 288 289 \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. 298 306 \end{itemize} 299 300 To determine the robust median, construct the cumulative histogram301 from the histogram above. Select the bin which contains the 50th302 percentile value and its two neighbors. Fit a quadratic to these303 three points. The robust median value is the coordinate of the304 quadratic which returns the 50\% value. For the upper and lower305 quartile points, the same process should be used, choosing the three306 bins in the vicinity of the upper and lower quartile points.307 307 308 308 If the errors in the input values are known, then the same approach is … … 314 314 value (as opposed to a Gaussian), where the boxcar width is equal to 315 315 $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. 316 constant area. Then the robust median and standard deviation are 317 estimated in the same manner as above. 318 319 \subsubsection{Fitted Statistics} 320 321 The fitted statistics algorithm starts with the histogram used for the 322 robust statistics and determines the population statistics by fitting 323 a 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} 318 339 319 340 \subsubsection{Histograms}
Note:
See TracChangeset
for help on using the changeset viewer.
