Skip to content

Latest commit

 

History

History
85 lines (64 loc) · 3.94 KB

stats-basic.md

File metadata and controls

85 lines (64 loc) · 3.94 KB

Basic Statistics

It is good to refresh some stats for ML.

Prerequisites

In order to do these exercises, you need to learn the stats functions in your ML platform (Python, Java, R ..etc.).
For Python it is Numpy.
Refer to our Numpy section to learn the basics of Numpy.

Part 1 - Recommended

1.1 - Resources

Generic

Covariance / Correlation

1.2 - Check List

You should be familiar with the following

  • Population vs. sample
  • Variable types (quantitative, discrete, continuous)
  • Plot basic graphs
  • Do numerical analysis such as mean, median, variance, standard deviation
  • Correlation

1.3 - Quick Exercise

This is a simple exercise designed to reinforce your learning so far.

We have some sample salary data (in thousands) from two cities.

city1 = [15,12, 20, 25, 50, 35, 75, 80, 60, 45, 36]
city2 = [40,42, 45, 60, 55, 52, 56, 52, 62, 57, 48]

Calculate mean, median, variation, standard deviation for both city data.

Part 2 - [Optional] Advanced

2.1 - Resources

Generic

Degrees of Freedom

Bootstrapping

Cross Validation / k-fold validation

2.2 - Check List

You should know the following concepts

  • Hypothesis testing
  • p-value
  • t-test
  • Degrees of freedom
  • ANOVA
  • Chi-Square Test
  • Bootstrapping