Last updated: 2019-04-26

Checks: 2 0

Knit directory: MSTPsummerstatistics/

This reproducible R Markdown analysis was created with workflowr (version 1.3.0). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.


Great! Since the R Markdown file has been committed to the Git repository, you know the exact version of the code that produced these results.

Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility. The version displayed above was the version of the Git repository at the time these results were generated.

Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish or wflow_git_commit). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:


Ignored files:
    Ignored:    .Rproj.user/

Unstaged changes:
    Modified:   analysis/CLT.Rmd

Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.


These are the previous versions of the R Markdown and HTML files. If you’ve configured a remote Git repository (see ?wflow_git_remote), click on the hyperlinks in the table below to view them.

File Version Author Date Message
Rmd 9f13e70 Anthony Hung 2019-04-25 finish CLT
html 9f13e70 Anthony Hung 2019-04-25 finish CLT
Rmd 68d1b40 Anthony Hung 2019-04-24 Start probability intro
html 68d1b40 Anthony Hung 2019-04-24 Start probability intro

Introduction

Probability is a foundational concept in statistics, and understanding the basics of probability is important for understanding the theory behind commonly used statistical tests and developing statistical methods. Here, we discuss the basics behind random variables and their probability distributions.

Random Variables

Random variables are variables that can take on a set of possible numerical values, each of which has a probability of occuring. Oftentimes the numerical values that a random variable takes on represents a particular outcome. For example, the result of a coin flip can be thought of as a random variable that can take on one of two values: heads or tails, each with a probability \(\frac{1}{2}\) of occuring.

Value Outcome Probability
\(0\) \(heads\) \(P_{heads} = \frac{1}{2}\)
\(1\) \(tails\) \(P_{tails} = \frac{1}{2}\)

Properties of Random Variables

The sum of all the probabilities of the possible values that a

Types of distributions: Discrete vs. Continuous

Working with named distributions in R