Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Foundations of Probability in Python: Normal and Poisson Distributions, Study notes of Statistical Physics

An introduction to probability distributions in Python, focusing on normal and Poisson distributions. It covers topics such as probability density, mean, standard deviation, normal sampling, probability mass function, cumulative distribution function, and percent point function. code examples using the scipy.stats library.

What you will learn

  • How do you calculate the mean and standard deviation of a normal distribution in Python?
  • What is the difference between normal and Poisson distributions?
  • What is the cumulative distribution function (cdf) and how is it used to calculate probabilities?
  • What is the percent point function (ppf) and how is it related to the cdf?
  • What is the probability density function (pdf) and how is it used to calculate probabilities?

Typology: Study notes

2021/2022

Uploaded on 09/27/2022

shokha
shokha 🇮🇳

4.5

(13)

234 documents

1 / 55

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Normal distributions
F OU N DAT IO N S OF P RO BABIL I TY I N P YT H O N
Alexander A. Ramírez M.
CEO @ Synergy Vision
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37

Partial preview of the text

Download Foundations of Probability in Python: Normal and Poisson Distributions and more Study notes Statistical Physics in PDF only on Docsity!

Normal distributions

F O U N D AT I O N S O F P R O B A B I L I T Y I N P Y T H O N

Alexander A. Ramírez M.

CEO @ Synergy Vision

Modeling for measures

Probability density

Probability density examples

Symmetry

Mean

Mean (Cont.)

Standard deviation

Standard deviation (Cont.)

One standard deviation

Three standard deviations

Normal sampling

# Import norm, matplotlib.pyplot, and seaborn

from scipy.stats import norm

import matplotlib.pyplot as plt

import seaborn as sns

# Create the sample using norm.rvs()

sample = norm.rvs(loc=0, scale=1, size=10000, random_state=13)

# Plot the sample

sns.distplot(sample)

plt.show()

Let's do some

exercises with

normal distributions

Normal probabilities

F O U N D AT I O N S O F P R O B A B I L I T Y I N P Y T H O N

Alexander A. Ramírez M.

CEO @ Synergy Vision