
Visualize how degrees of freedom affect the shape of t distribution. compute\/visualize quantiles out of given probability and probability from a given quantile.
t_plot(df = 3)t_per(probs = 0.95, df = 4, type = c("lower", "upper", "both"))
t_prob(perc, df, type = c("lower", "upper", "interval", "both"))
degrees of freedom
a probability value
lower tail, upper tail, interval or both
a quantile value
percentile for the probs
based on df
and
type
or probability value for the perc
based on df
and
type
# visualize t distribution
t_plot()
t_plot(6)
t_plot(df = 8)
# compute\/visualize quantiles out of given probability
t_per(probs = 0.95, df = 4, type = 'lower')
t_per(probs = 0.35, df = 4, type = 'upper')
t_per(probs = 0.69, df = 7, type = 'both')
# compute\/visualize probability from a given quantile
t_prob(2.045, 7, 'lower')
t_prob(0.945, 7, 'upper')
t_prob(1.445, 7, 'interval')
t_prob(1.6, 7, 'both')
Run the code above in your browser using DataLab