Skip to contents

Get the probability that an event was generated by a normal distribution given the alternative is a t-distribution with given degrees of freedom.

Usage

p_normal_given_event(prior = 0.5, z = 10, t_df = 2)

Arguments

prior

The prior probability that the event was generated by a normal distribution

z

The Z-score of the event, i.e., the number of standard deviations away from the mean

t_df

The degrees of freedom for the t-distribution

Value

A probability

Examples

p_normal_given_event(0.999, 10, 2)
#> [1] 1.545246e-18