This repository contains tools for likelihood ratio analysis, particularly focused on signal detection in physics data.
The repository contains several Python scripts for performing likelihood analysis:
log_Analysis.py: Interactive analysis tool for examining data and calculating likelihood ratioslikelihood_ratio.py: Core implementation of likelihood ratio methods with interactive visualizationpeak_fitter.py: Tools for fitting peaks in spectral data
-
Clone this repository:
git clone https://github.com/yourusername/majorana.git
-
Install the required dependencies:
pip install numpy scipy matplotlib pandas
-
Run the interactive analysis tool:
python log_Analysis.py
-
For likelihood ratio simulation:
python likelihood_ratio.py
The Asimov data set is a hypothetical data set in which the observed number is exactly equal to its expectation. For our experiment, this means setting
Define the likelihood ratio as
The test statistic
Taking the logarithm, we have:
Thus,
For
Remember that the test statistic
Where
If the probability of a coin flipping heads,
So we see that the likelihood function evaluates the probability of an event not based on the signal, but the parameters of the underlying distribution. Therefore, if the Likelihood is high compared to its maximum value, we think that the underlying parameters are right, and if the Likelihood is low, the parameters are wrong. This is expressed by the test-statistic
