Statistics is the study of predicting Populations from Samples

Statistic

Statistic

A Statistic is a scalar feature extracted from a Sample that represents it in some way. As opposed to Parameter.

Sample Statistic

  • Sample Mean
  • Sample Median: Middle entry in Sample
  • Sample Mode: Most occurences in Sample
  • Sample Variance
  • Sample Standard Deviation
  • Sample Proportion

Centrality Features

  • Sample Mean, Median, Mode. Median is best.

Spread Features

  • Sample Range
  • Sample Variance, Standard Deviation
  • Percentile
  • Quartile, Inter Quartile Range

Grouped Features

Link to original

In the real world, you don’t Parameters, so you have to approximate them with Statistics. In Statistics, our goal is to analyze population(s) without omnipotence.

Point Estimation

Point Estimation

A Point Estimator is a Statistic that is designed to estimate a Parameter.

  • A regular statistic is just any feature from the data, whereas a Point Estimator specifically involves using the feature to predict the population parameter
  • In order to evaluate how good a Point Estimator is, our goal is to minimize Mean Squared Error, i.e. both Bias and Variance. Minimizing MSE maximizes accuracy of the Point Estimator.
  • In order to find a Point Estimator we can use techniques such as

Bias

Bias is a measure of the expected difference between a Point Estimator and a Parameter. Imagine shooting arrows at a target. Bias refers to displacement of the center of the cluster from the bullseye.

  • where is a Statistic
  • where is a Parameter of
  • where is a Point Estimator

Variance

Variance measures spread of a Point Estimator. Imagine shooting arrows at a target. Variance measures how spread out the arrows are from each other (and specifically not from the bullseye).

Point Estimation Features

  • Standard Error
  • Sample Mean

Mean Squared Error

Mean Squared Error (MSE) measures how good a Point Estimator is. The lower the MSE, the more accurate a Point Estimator is, even if it does not minimize Bias.

Finding a Point Estimator

Method of Moments

Method of Moments

In Point Estimation, we want to estimate parameters of an unknown population distribution using sample data. To do this, we borrow the concept of moments from physics.

In general, a moment is a weighted distance from an axis. The moment of force is torque, where the weight is force or literal weight. Imagine a flat seesaw at rest with weights distributed across it. The torque each weight applies is the product of x, the signed distance from the axis of rotation, and F, the force of the weight. The net torque, the sum of these individual torques.

Furthermore, instead of only indexing each occurence of a torque, we can alternatively create a function that gives the force at every , which allows us to write as a discrete or continuous sum over a domain .

where the “sum” expression is shorthand for this summation regardless of whether is discrete or continuous.

We can also reinterpret our to be a PMF/PDF instead of a force function. You will recognize the moment equation above as Expected Value.

We care about this because it contains information about the hidden parameters of the population distribution that we are sampling from, including the parameter we want to estimate.

We define the kth order moment as the following, where k > 1 is used for systems of equations with greater than one unknown, to provide additional valid equations until we have a well-determined system of equations.

Yep. It’s just literally just expected value. And when we use the higher degrees of k, it literally just adjusts the scale of the x axis (distance from the axis) from linear to quadratic to cubic to quartic, etc etc. Each new k value results in a new polynomially scaled version of the original distribution that gives a new equation that we can use to solve the system of equations that I am going to shortly introduce.

Notice how

Furthermore, we can also calculate sample moments, for k = 1 or above if needed.

Using the following idea, we can estimate our parameters in the following way.

Or if more than k = 1 is needed, the following is also applicable

Our system of equations is of the following form, where at least k = 1 is used, and where the range of k used is equal to the dimension of

Examples

Link to original

Maximum Likelihood Estimator

For

We find MLE, which is the that maximizes the Likelihood Function . is a scoring function that tells you how well your matches the observed data.

The trick for finding MLE

  • Find
  • Find
    • Recall
  • Find where this equals 0
  • Find which root is the max
  • The
Link to original

Confidence Intervals

Sample Distribution

Sample Distribution

A Sample Distribution is a Distribution that simply is the actual data of a single Sample.

Link to original

Sampling Distribution

Sampling Distribution

A Sampling Distribution is a Distribution of a particular Sample Statistic, sampled repeatedly from a Population. For example, a distribution of sample average heights.

Link to original

The Central Limit Theorem gives a Sample Mean Sampling Distribution where when is sufficiently large, the distribution is approximately a Z Distribution

Degree of Freedom

Degree of Freedom

Degrees of Freedom is a property of a Statistic or Point Estimator that describes how many variables are free to vary while maintaining the feature’s validity.

Example

For example, a sample mean is a linear function of its inputs, because it is a sum of the RVs, all divided by a scalar. This is a linear transformation, as well.

Due to this linearity, all of the inputs except for the last can be any value. If you allow the first RV to vary, then the RV is forced to a specific value.

Therefore, for sample mean,

Link to original

Chi Squared Distribution

Chi Squared Distribution

A Distribution is a kind of Sampling Distribution formed by combining iid squared Z Distributions through addition.

  • shows up when we try to estimate Variance
  • is Degree of Freedom

Additive Property

The sum of iid variables is also

Chi Squared Quantiles

If then quantile is denoted

  • where
  • where is the CDF
  • where is type I error
  • where is Degree of Freedom

Link to original

t distribution

Student's t distribution

A Student’s Distribution is a kind of Sampling Distribution formed by combining a Z Distribution and Chi Squared Distribution in the following fashion

  • shows up when we try to estimate when the is unknown.
  • looks like but with a fatter tail to account for the extra uncertainty of using instead of

Student’s t Quantiles

If then the quantile is denoted

  • where
  • where is the CDF
  • where is type I error
  • where is Degree of Freedom
  • where the distribution is symmetrical so

Link to original

F distribution

F distribution

An F Distribution is a kind of Sampling Distribution formed by combining two independent Chi Squared Distributions in the following fasion

F Quantiles

If then the quantile is denoted

  • where
  • where the CDF does not have a simple closed form, and the PDF is a mess
  • where is type I error
  • where are separate Degree of Freedoms
  • where

Link to original

Confidence Interval

Confidence Interval

A Confidence Interval is a technique in Statistics, where instead of estimating a Parameter by a Point Estimator alone, we create an interval that we know contains the unknown parameter with a certain Probability.

A Confidence Interval for an unknown parameter is given by satisfying

  • where is the lower bound
  • where is the upper bound
  • where is the Confidence Coefficient

Confidence Interval Scenarios

  • 1 population Confidence Interval
      • known
      • unknown
  • 2 population Confidence Interval
      • known
        • ; bonus: is unbiased estimator for

Variation of Sidedness

Calculating Sample Size from Half Width

Example using 1 population, , unknown

Mean CI Variance Known

is called half-width

In order to reduce half length below a tolerance error

Mean CI Variance Unknown

Link to original