Repertory used for the 4th year project in Applied Mathematics at INSA Toulouse on the subject Evaluation of the performance of the new statistical tool.
Go to file
Paul-Corbalan cf39a3c6f3 Update Abstract in readme 2022-05-23 22:54:25 +02:00
.gitignore Start code with Poisson 2022-02-01 10:48:52 +01:00
Comparaison_of_methods.rmd Fusion of codes 2022-05-21 18:15:56 +02:00
README.md Update Abstract in readme 2022-05-23 22:54:25 +02:00

README.md

Detection of anomalies using the Scan Statistic and Local Score methods

Abstract

Mathematical researchers are regularly looking for new scan methods to detect atypical segments in datasets. Scan methods have wide applications in medicine or actuary science. Previous work has tried to find methods to reveal irregularities within a discrete sequence of events using the local score method, defined by the log-likelihood ratio. However, these methods have not proposed a time-continuous scan on an interval from 0 to T. We propose a new method using scan statistic and Local Score to apply on continuous data and to detect atypical segments. We compare the performance of both algorithms. We simulate three sets of 10^4 Poisson processes of a certain parameter \lambda. We use one set to estimate the empirical distribution of the scan statistic, using a Monte Carlo estimator. On the same set, we compute the sequence of times between events to estimate the score distribution. With the two other sets, we associate to each scan or score value, its p-value, that states if the detected segment is atypical. We conduct this experiment, knowing the value of the scan window, and then by choosing it at random. Results show that both methods have a good prediction quality. The Scan statistic method performs more accurately when knowing the window-size. Local Score outperforms the Scan statistic method when using random values for the window size. Applications on real datasets, such as epileptic seizures, are an opening for the use of these methods.

Keywords: scan statistic, Poisson process, local score, detection of atypical regions, window size

Dependencies

R libraries

To run and compile the code Comparaison_of_methods in PDF format, please use the following command in R terminal before running the file:

install.packages(c("localScore", "latex2exp", "Rcpp", "caret", "ROCR", "pROC"))