Descriptive Statistics
Random Variable: A function that maps each outcome in a sample space to a real number
Discrete Random Variable: Countable values with gaps between them; often integer counts
Continuous Random Variable: Uncountable continuum of values over an interval
Measures of Central Tendency
Mean
Arithmetic center of gravity
Median
Middle value after sorting
50th percentile
Percentile: Cutoff in the data in which you find a given percentage below the value
Mode
Most frequent value/highest frequency bin
Only measure for nominal data
Right-skewed: Mode < Median < Mean
Left-skewed: Mean < Median < Mode
Symmetric: Mode = Median = Mean (roughly)
Measures of Spread
Variance
Average squared deviation from the mean
comes from a correction for the downward bias of using a sample mean rather than the true population mean
Standard Deviation
Square root of variance
Used to return to original units
Interquartile Range (IQR)
Q3 - Q1
Range of the middle 50% of values
Visualizing Distribution
Histogram
Bar plot used effectively in conjunction with samples from a continuous random variable
Bins hold all values between a start and end value. Bins should be equal width to each other
Can show a bimodal distribution
Two distinct peaks often indicate that data is a mixture of two underlying populations
Mean often falls in the valley and therefore describes neither population well
Skewness: Direction of tails
Kurtosis: Weight of curve
Concentration: within k standard deviations of the mean, we have at least
Data collected from a feature is a vector of information
Residuals: Difference between observed and predicted