# Event¶

class poisson_approval.Event(candidate_x, candidate_y, candidate_z, tau)[source]

An event with all its attributes: magnitudes, offsets, asymptotic if possible (abstract class).

Parameters: candidate_x (str) – A candidate (e.g. 'a'). candidate_y (str) – A candidate (e.g. 'b'). candidate_z (str) – A candidate (e.g. 'c'). tau (TauVector) – A tau-vector.
asymptotic

The asymptotic development of the probability of the event when n tends to infinity.

Type: Asymptotic
mu

Shortcut for asymptotic.mu.

Type: Number, sp.nan, np.nan, - sp.oo or - np.inf
nu

Shortcut for asymptotic.nu.

Type: Number, sp.nan, np.nan, - sp.oo or - np.inf
xi

Shortcut for asymptotic.xi.

Type: Number, sp.nan, np.nan, - sp.oo or - np.inf
phi_ab

The offset for this kind of ballot. An offset is np.nan if it is not defined. Other offsets are denoted phi_a, etc.

Type: Number or np.nan
phi

The dictionary of the offsets. For example, self.phi['a'] is just an alternate notation for self.phi_a.

Type: dict
psi_ab

The pseudo-offset for this kind of ballot. It is equal to phi_ab if it exists, and phi_a * phi_b otherwise. Similarly, the pseudo-offset psi_a is equal to phi_a if it exists, and phi_ab * phi_ac otherwise. Other pseudo-offsets are denoted psi_b, etc.

Type: Number or np.nan
psi

The dictionary of pseudo-offsets. For example, self.psi['a'] is just an alternate notation for self.psi_a.

Type: dict

Notes

The permutation of candidate_x, candidate_y and candidate_z is generally important in the subclasses. For example, in EventDuo, we consider a tie between candidates x and y (hence in that case, if is the same if x and y are exchanged, but not if x and z are exchanged for example).

Examples
{"ft_lang_label":"__label__en","ft_lang_prob":0.5665432,"math_prob":0.8811416,"size":1769,"snap":"2020-24-2020-29","text_gpt3_token_len":535,"char_repetition_ratio":0.1490085,"word_repetition_ratio":0.087272726,"special_character_ratio":0.26229507,"punctuation_ratio":0.24661246,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9858638,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-05-25T17:00:16Z\",\"WARC-Record-ID\":\"<urn:uuid:e23300b8-1acb-426d-b64d-07df968b5e67>\",\"Content-Length\":\"23309\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:0ac05df2-f606-4039-b263-a5c496cb5a8d>\",\"WARC-Concurrent-To\":\"<urn:uuid:cf0fa165-8f15-4b0d-a4c7-d04db0c58b4c>\",\"WARC-IP-Address\":\"104.17.32.82\",\"WARC-Target-URI\":\"https://poisson-approval.readthedocs.io/en/latest/reference/reference_events/reference_event.html\",\"WARC-Payload-Digest\":\"sha1:M4N5SODDPMRU6T7XIUEJFIVW52E277UC\",\"WARC-Block-Digest\":\"sha1:YWYCKAS3RT2NJDF2VNGK7PN4GKBOGAD4\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-24/CC-MAIN-2020-24_segments_1590347389309.17_warc_CC-MAIN-20200525161346-20200525191346-00077.warc.gz\"}"}