Descripti v e statistics P R AC TIC IN G STATISTIC S IN TE R VIE W - - PowerPoint PPT Presentation

descripti v e statistics
SMART_READER_LITE
LIVE PREVIEW

Descripti v e statistics P R AC TIC IN G STATISTIC S IN TE R VIE W - - PowerPoint PPT Presentation

Descripti v e statistics P R AC TIC IN G STATISTIC S IN TE R VIE W QU E STION S IN P YTH ON Conor De w e y Data Scientist , Sq u arespace What are descripti v e statistics ? 1 Wikimedia PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON Meas


slide-1
SLIDE 1

Descriptive statistics

P R AC TIC IN G STATISTIC S IN TE R VIE W QU E STION S IN P YTH ON

Conor Dewey

Data Scientist, Squarespace

slide-2
SLIDE 2

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

What are descriptive statistics?

Wikimedia

1

slide-3
SLIDE 3

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Measures of centrality

Mean Median Mode

slide-4
SLIDE 4

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Measures of centrality

0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 2.2 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6

σ = 0.25 σ = 1 mode median mean

Wikimedia

1

slide-5
SLIDE 5

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Measures of variability

Variance Standard deviation Range

slide-6
SLIDE 6

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Measures of variability

slide-7
SLIDE 7

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Modality

Wikimedia

1

slide-8
SLIDE 8

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Skewness

Wikimedia

1

slide-9
SLIDE 9

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Summary

Dening descriptive statistics Mean, median, and mode Standard deviation and variance Modality and skewness

slide-10
SLIDE 10

Let's prepare for the interview!

P R AC TIC IN G STATISTIC S IN TE R VIE W QU E STION S IN P YTH ON

slide-11
SLIDE 11

Categorical data

P R AC TIC IN G STATISTIC S IN TE R VIE W QU E STION S IN P YTH ON

Conor Dewey

Data Scientist, Squarespace

slide-12
SLIDE 12

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Types of variables

slide-13
SLIDE 13

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Encoding categorical data

What is One Hot Encoding and How to Do It

1

slide-14
SLIDE 14

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Example: laptop models

slide-15
SLIDE 15

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Example: laptop models

company_count = df['Company'].value_counts() sns.barplot(company_count.index, company_count.values)

slide-16
SLIDE 16

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Box plots

  • utliers

lower whisker upper whisker upper quartile lower quartile median Wikimedia

1

slide-17
SLIDE 17

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Example: laptop models

df.boxplot('Price', 'Company', rot = 30, figsize=(12,8), vert=False)

slide-18
SLIDE 18

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Summary

Types of variables Encoding techniques Sample exploratory data analysis

slide-19
SLIDE 19

Let's prepare for the interview!

P R AC TIC IN G STATISTIC S IN TE R VIE W QU E STION S IN P YTH ON

slide-20
SLIDE 20

Two or more variables

P R AC TIC IN G STATISTIC S IN TE R VIE W QU E STION S IN P YTH ON

Conor Dewey

Data Scientist, Squarespace

slide-21
SLIDE 21

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Types of relationships

Wikimedia

1

slide-22
SLIDE 22

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

What is correlation?

Statistical relationship between variables Stronger correlation = more information

Wikimedia

1

slide-23
SLIDE 23

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Covariance

slide-24
SLIDE 24

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Pearson's correlation

slide-25
SLIDE 25

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Pearson's correlation

1 0.8 0.4

  • 0.4
  • 0.8
  • 1

1 1 1

  • 1
  • 1
  • 1

Wikimedia

1

slide-26
SLIDE 26

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Correlation vs. causation

xkcd

1

slide-27
SLIDE 27

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Correlation vs. causation

Correlation does not mean Causation

1

slide-28
SLIDE 28

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Summary

Types of relationships Review of correlation Covariance Pearson's correlation Correlation vs. causation

slide-29
SLIDE 29

Let's prepare for the interview!

P R AC TIC IN G STATISTIC S IN TE R VIE W QU E STION S IN P YTH ON