Conditional probabilities P R AC TIC IN G STATISTIC S IN TE R VIE - - PowerPoint PPT Presentation

conditional probabilities
SMART_READER_LITE
LIVE PREVIEW

Conditional probabilities P R AC TIC IN G STATISTIC S IN TE R VIE - - PowerPoint PPT Presentation

Conditional probabilities 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 Co u rse o v er v ie w 1. Probabilit y and sampling distrib u tions 2. E x plorator y data anal y sis 3.


slide-1
SLIDE 1

Conditional probabilities

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

Course overview

  • 1. Probability and sampling distributions
  • 2. Exploratory data analysis
  • 3. Statistical experiments
  • 4. Regression and classication
slide-3
SLIDE 3

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Quick review

Wikimedia

1

slide-4
SLIDE 4

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Bayes' theorem

Wikimedia

1

slide-5
SLIDE 5

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Probability tree diagrams

Wikimedia

1

slide-6
SLIDE 6

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Example: passing the interview

slide-7
SLIDE 7

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Example: passing the interview

both = 0.25 * 0.40 print(both) coding = (0.25 * 0.40) + (0.75 * 0.20) print(coding) 0.1 0.25 stats_given_coding = both / coding print(stats_given_coding) 0.4

slide-8
SLIDE 8

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Summary

Conditional probabilities Bayes' theorem Probability tree diagrams

slide-9
SLIDE 9

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-10
SLIDE 10

Central limit theorem

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-11
SLIDE 11

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

What does it mean?

Wikimedia

1

slide-12
SLIDE 12

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Why does it matter?

Wikimedia

1

slide-13
SLIDE 13

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Law of large numbers

StackExchange

1

slide-14
SLIDE 14

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Simulating CLT in Python

np.random.randint(start, end, size)

How to Visualize the Central Limit Theorem in Python

1

slide-15
SLIDE 15

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

List comprehension

x = [1,2,3,4]

  • ut = []

for item in x:

  • ut.append(item**2)

print(out) [1, 4, 9, 16] x = [1,2,3,4]

  • ut = [item**2 for item in x]

print(out) [1, 4, 9, 16]

slide-16
SLIDE 16

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Summary

Central limit theorem Law of large numbers Simulating die rolls List comprehension

slide-17
SLIDE 17

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-18
SLIDE 18

Probability distributions

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-19
SLIDE 19

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

What's a probability distribution?

Indicates likelihood of an outcome Probabilities must add up to 1

Wikimedia

1

slide-20
SLIDE 20

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Overview of common distributions

Common Probability Distributions: The Data Scientists Crib Sheet

1

slide-21
SLIDE 21

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Overview of common distributions

Common Probability Distributions: The Data Scientists Crib Sheet

1

slide-22
SLIDE 22

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Bernoulli distribution

plt.hist(bernoulli.rvs(p=0.5, size=1000))

slide-23
SLIDE 23

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Binomial distribution

plt.hist(binom.rvs(2, 0.5, size=10000))

slide-24
SLIDE 24

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Normal distribution

Wikimedia

1

slide-25
SLIDE 25

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Poisson distribution

Wikimedia

1

slide-26
SLIDE 26

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Poisson distribution

120 Data Science Interview Questions

1

slide-27
SLIDE 27

PRACTICING STATISTICS INTERVIEW QUESTIONS IN PYTHON

Summary

Denition of probability distributions Overview of common distributions Bernoulli, binomial, normal, and Poisson

slide-28
SLIDE 28

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