This Python script analyzes photon counting data (voltage traces), and compares photon statistics to theoretical Poisson and Exponential distributions.
- Detect photon-like pulses in noisy signals
- Create histogram of photon counts per time bin
- Compare data to expected Poisson distribution (random photon arrivals)
- Perform chi-square goodness-of-fit test
- Plot time intervals between pulses and fit Exponential distribution
- Print conclusions about photon randomness