compute_event_significances
- exovetter.modshift.compute_event_significances(conv, sigma, results)[source]
Compute the statistical significance of 4 major events
The 4 events are the primary and secondary transits, the “tertiary transit”, i.e the 3rd most significant dip, and the strongest postive signal.
These statistical significances are the 4 major computed metrics of the modshift test.
- Parameters:
- conv
(2d np array) The convolution of the folded lightcurve and the transit model As computed by
compute_convolution_for_binned_data
- sigmafloat
As returned by
estimate_scatter
- resultsdict
Contains the indices in
conv
of the 4 events. These indices are stored in the keys “pri”, “sec”, “ter”, “pos”
- Returns:
- outdict
The
results
dictionary is returned, with 4 additional keys added, ‘sigma_pri’, ‘sigma_sec’, etc. These contain the statistical significances of the 4 major events.
- Raises:
- ValueError
Invalid inputs.