Skip to contents

Package

stat0002-package stat0002
stat0002: Introduction to Probability and Statistics at UCL

Example data

shuttle
Challenger Space Shuttle Disaster Dataset
days
Mystery data in Exercises 1
lymphoma
T-cell count data
clouds
Cloud-seeding data
daley
Tokyo 2020 Olympics Men's Individual 10m platform
ox_births
Oxford Birth Times
blood_types
Blood Types
ftse
FTSE 100 Share Index
co2_per_capita gdp_per_capita population_size life_expectancy
World Bank Data
flu
Influenza data
kerrich
Kerrich's coin data
berkeley
Student Admisions at UCL Berkeley
USelection
The 2000 U.S. Presidential Election in Florida
aussie_births
Australian Birth Times Data
hubble
Nebulae data from Hubble (1929)
hubble2
Nebulae data from Freedman (2001)
sea_temps
Southern Hemisphere temperature anomalies 1850-2022
birds
Between-species dominance in birds data
exchange
UK/US and UK/Canada Exchange Rates

Plots

box_plot
Box plots
scatter()
Scatter plot with five number summary
scatter_hist()
Scatter plot with marginal histograms
boxcox_plot()
Plot Box-Cox transformed density functions
qqexp()
Exponential Quantile-Quantile plots

Summary statistics

five_number()
Five number summary
q_skew() skew()
Sample skewness functions
boxplot_stats()
Box Plot Statistics
dmean() dmedian() dmode() tables()
Calculation of diving scores

Simulation functions

shuttle_sim()
Simulate fake space shuttle data
shuttle_sim_hists()
Space shuttle: uncertainty in estimated probability of O-ring damage
shuttle_sim_plot()
Space shuttle: uncertainty in fitted linear logistic regression curve
rbinomial()
Simulates from a binomial distribution
poisson_process_sim()
Simulation of a Poisson process
plot(<poisson_process>)
Plot diagnostics a poisson_process object

Bayes’ theorem

screening_test()
Screening test calculations
print(<screening_test>)
Prints a screening_test object

Movies

stat0002movies
General information about the movies
shuttle_movie()
Challenger Space Shuttle Disaster Movie
scatterplot_movie()
US 2000 Presidential Election Movie: straightening scatter plots
world_bank_movie
World Bank Development Indicators Movie
ox_births_movie()
Oxford Birth Times Simulation Movie
binomial_pmf_movie()
Binomial p.m.f. movie
poisson_process_movie()
Poisson process movie
poisson_process_check()
Graphical checking of Poisson process properties
normal_pdf_movie()
Normal p.d.f. movie
normal_areas_movie()
Normal areas movie
qq_plot_movie()
Quantile-Quantile plot movie
normal_sampling_distns_movie()
Normal sampling distributions movie
clt_normal_movie()
Central Limit Theorem movie: normal data
clt_exponential_movie()
Central Limit Theorem movie: exponential data
mean_vs_median_normal_movie()
Sample mean vs sample median: normally distributed data
mean_vs_median_t_movie()
Sample mean vs sample median: Student's t distributed data
two_by_two_movie()
Test for lack of association in a 2 by 2 contingency table
lin_reg_movie()
Simple linear regression movie
lev_inf_movie()
Leverage and influence movie
corr_sim_movie()
Sampling distribution of the correlation coefficient movie

R Markdown helper functions

word() html()
Create PDF, Word or HTML R output