SlideShare a Scribd company logo
Python Certification Training https://www.edureka.co/python
Agenda
Python Certification Training https://www.edureka.co/python
Agenda
Introduction 01
Introduction to
Statistics And
Probability Getting Started 02
Concepts 03
Use Case 04
Getting Started With Python
for Probability
A practical Python use-case
to understand Python faster!
Overview of the simple
concepts that’s involved
Python Certification Training https://www.edureka.co/python
Why Python For Statistics?
Python Certification Training https://www.edureka.co/python
Why Python For Statistics?
R is a language dedicated for statistics!
Then why Python?
Building complex analysis pipelines that mix statistics
with Image Analysis, Text Mining etc..
Here, the richness of Python is an invaluable asset!
Python Certification Training https://www.edureka.co/python
What is Probability?
Python Certification Training https://www.edureka.co/python
What is Probability?
What is the chance of an event happening?
How do you answer this?
We need to consider all the other events that can occur
before coming to a conclusion!
Python Certification Training https://www.edureka.co/python
The Coin Toss
What are the outcomes for a coin toss?
Flipping a heads Flipping a tails
Any other outcome? NO!
We call this the
Sample Space!
Python Certification Training https://www.edureka.co/python
The Coin Toss
What are the outcomes for a coin toss?
A 100 Heads and 10 Tails, is this fair?
Yes, the outcome here is to gather data, use
statistics to make predictions and compare!
Python Certification Training https://www.edureka.co/python
The Coin Toss – Data Generation
Python Certification Training https://www.edureka.co/python
Too early for code?
Python Certification Training https://www.edureka.co/python
The Coin Toss – Code
import random
def coin_trial():
heads = 0 for i in range(100):
if random.random() <= 0.5:
heads +=1
return heads
def simulate(n):
trials = []
for i in range(n):
trials.append(coin_trial()) return(sum(trials)/n)
simulate(10)
>> 5.4
simulate(100)
>>> 4.83
simulate(1000)
>>> 5.055
simulate(1000000)
>>> 4.999781
Python Certification Training https://www.edureka.co/python
The Coin Toss – The Theory
Given enough data, statistics enables us to calculate
probabilities using real-world observations
Python Certification Training https://www.edureka.co/python
The Coin Toss – Python
What are the chances of someone
developing a disease over time?
What is probability that a critical
car component will fail when
you are driving?
Python making
our lives simpler
with this!
Python Certification Training https://www.edureka.co/python
Data And Distribution
Python Certification Training https://www.edureka.co/python
Data And Distribution
Let’s tackle “Which wine is better than average”
You need to know the nature of the data!
Normal Distribution
Normal distribution refers to a particularly important
phenomenon in the realm of probability and statistics.
Python Certification Training https://www.edureka.co/python
Data And Distribution
The high point in a normal distribution represents the event
with the highest probability of occurring!
Python Certification Training https://www.edureka.co/python
Revisiting The Normal
Python Certification Training https://www.edureka.co/python
Revisiting The Normal
Two major factors
Central Limit Theorem Three Sigma Rule
Central Limit Theorem dictates that the distribution of
the estimates will look like a normal distribution.
The Three Sigma rule dictates that given a normal
distribution, 68% of your observations will fall between one
standard deviation of the mean. 95% will fall within two, and
99.7% will fall within three.
Learning Python
Python Certification Training https://www.edureka.co/python
Z-Score
Learning Python
Python Certification Training https://www.edureka.co/python
Use-Case: Poker Probability
Python Certification Training https://www.edureka.co/python
Use-Case: Poker Prediction
Can we predict the outcome of probability of
occurrence of a poker hand?
Python Certification Training https://www.edureka.co/python
Use-Case: Poker Prediction
Let’s look at the basics
52 cards in a standard deck!
4 of each
shape
For an Ace - P(A) = 4/52
Python Certification Training https://www.edureka.co/python
Use-Case: Poker Prediction
Poker Without
Python
Poker With
Python
Texas Hold’em
Pre-Flop: Each player is dealt two cards, known as "hole cards"
Flop: Three community cards are dealt
Turn: One community card is dealt
River: Final community card is dealt
Python Certification Training https://www.edureka.co/python
Use-Case: Poker Prediction
Dependent Events: Flush Draw
Your Hand
Community Cards
Python Certification Training https://www.edureka.co/python
Use-Case: Poker Prediction
Dependent Events: Open-Ended
Straight Draw
Your Hand
Community Cards
Python Certification Training https://www.edureka.co/python
Use-Case: Poker Prediction
Involve Opponents now!
Your Hand
Community Cards
Opponent’s Hand
Total Pot = $60 Opponents Bet = $20
Python Certification Training https://www.edureka.co/python
Conclusion
Python Certification Training https://www.edureka.co/python
Conclusion
Statistics Using Python | Statistics Python Tutorial | Python Certification Training | Edureka

More Related Content

What's hot (20)

PPTX
Classification techniques in data mining
Kamal Acharya
 
PPTX
Naïve Bayes Classifier Algorithm.pptx
Shubham Jaybhaye
 
PPTX
Basic of python for data analysis
Pramod Toraskar
 
PDF
Classification Based Machine Learning Algorithms
Md. Main Uddin Rony
 
PPTX
Machine Learning with R
Barbara Fusinska
 
PDF
Decision tree
R A Akerkar
 
PDF
PyTorch Introduction
Yash Kawdiya
 
PDF
Data Science Full Course | Edureka
Edureka!
 
PDF
Introduction to Python Pandas for Data Analytics
Phoenix
 
PDF
Best Python Libraries For Data Science & Machine Learning | Edureka
Edureka!
 
PPTX
Linear Regression Algorithm | Linear Regression in R | Data Science Training ...
Edureka!
 
PDF
K means and dbscan
Yan Xu
 
PPTX
Python Seaborn Data Visualization
Sourabh Sahu
 
PPTX
Supervised and unsupervised learning
Paras Kohli
 
PDF
Decision tree
SEMINARGROOT
 
PDF
Naive Bayes
CloudxLab
 
PPTX
Classification and Regression
Megha Sharma
 
PPTX
Introduction of Data Science
Jason Geng
 
PPTX
PPT on Data Science Using Python
NishantKumar1179
 
Classification techniques in data mining
Kamal Acharya
 
Naïve Bayes Classifier Algorithm.pptx
Shubham Jaybhaye
 
Basic of python for data analysis
Pramod Toraskar
 
Classification Based Machine Learning Algorithms
Md. Main Uddin Rony
 
Machine Learning with R
Barbara Fusinska
 
Decision tree
R A Akerkar
 
PyTorch Introduction
Yash Kawdiya
 
Data Science Full Course | Edureka
Edureka!
 
Introduction to Python Pandas for Data Analytics
Phoenix
 
Best Python Libraries For Data Science & Machine Learning | Edureka
Edureka!
 
Linear Regression Algorithm | Linear Regression in R | Data Science Training ...
Edureka!
 
K means and dbscan
Yan Xu
 
Python Seaborn Data Visualization
Sourabh Sahu
 
Supervised and unsupervised learning
Paras Kohli
 
Decision tree
SEMINARGROOT
 
Naive Bayes
CloudxLab
 
Classification and Regression
Megha Sharma
 
Introduction of Data Science
Jason Geng
 
PPT on Data Science Using Python
NishantKumar1179
 

Similar to Statistics Using Python | Statistics Python Tutorial | Python Certification Training | Edureka (20)

PDF
Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...
Edureka!
 
PDF
Python Certification | Data Science with Python Certification | Python Online...
Edureka!
 
PDF
Supervised vs Unsupervised vs Reinforcement Learning | Edureka
Edureka!
 
PDF
python-programming-3-books-in-ryan-turner_compress.pdf
Ahmed Attyub
 
PDF
A Simple Introduction To Python Stephen Lynch
pavranqaba
 
PDF
Descriptive Analytics Describe With Python A Comprehensive Guide To Descripti...
johnspatte8t
 
PDF
Python For Natural Resource Extraction A Comprehensive Programming Guide For ...
unidosmungwe
 
PDF
Data Analysis Python For Environmental Science Hayden Van Der Post
unidosmungwe
 
PDF
Python Penetration Testing For Developers Learning Path Christopher Duffy
yencidln
 
PDF
Python Training course in Chandigarh .
Excellence Academy
 
PDF
Python Advanced Predictive Analytics Kumar Ashish
dakorarampse
 
PDF
Get Started with Quantiacs
VyacheslavBurdinskiy
 
PPTX
Python and BIG Data analytics | Python Fundamentals | Python Architecture
Skillspeed
 
PDF
python-for-advanced-data-science-techniques-and-best-practices-20240911071850...
abhishekprasadabhima
 
PDF
python_tutorial.pdf
poojaofficial
 
PDF
Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...
Edureka!
 
PPTX
Applied Data Science: Building a Beer Recommender | Data Science MD - Oct 2014
Austin Ogilvie
 
PDF
Python Basics | Python Tutorial | Edureka
Edureka!
 
PDF
Python in Data Science Work
Rick. Bahague
 
PDF
Get Started with Quantiacs
Quantiacs
 
Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...
Edureka!
 
Python Certification | Data Science with Python Certification | Python Online...
Edureka!
 
Supervised vs Unsupervised vs Reinforcement Learning | Edureka
Edureka!
 
python-programming-3-books-in-ryan-turner_compress.pdf
Ahmed Attyub
 
A Simple Introduction To Python Stephen Lynch
pavranqaba
 
Descriptive Analytics Describe With Python A Comprehensive Guide To Descripti...
johnspatte8t
 
Python For Natural Resource Extraction A Comprehensive Programming Guide For ...
unidosmungwe
 
Data Analysis Python For Environmental Science Hayden Van Der Post
unidosmungwe
 
Python Penetration Testing For Developers Learning Path Christopher Duffy
yencidln
 
Python Training course in Chandigarh .
Excellence Academy
 
Python Advanced Predictive Analytics Kumar Ashish
dakorarampse
 
Get Started with Quantiacs
VyacheslavBurdinskiy
 
Python and BIG Data analytics | Python Fundamentals | Python Architecture
Skillspeed
 
python-for-advanced-data-science-techniques-and-best-practices-20240911071850...
abhishekprasadabhima
 
python_tutorial.pdf
poojaofficial
 
Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...
Edureka!
 
Applied Data Science: Building a Beer Recommender | Data Science MD - Oct 2014
Austin Ogilvie
 
Python Basics | Python Tutorial | Edureka
Edureka!
 
Python in Data Science Work
Rick. Bahague
 
Get Started with Quantiacs
Quantiacs
 
Ad

More from Edureka! (20)

PDF
What to learn during the 21 days Lockdown | Edureka
Edureka!
 
PDF
Top 10 Dying Programming Languages in 2020 | Edureka
Edureka!
 
PDF
Top 5 Trending Business Intelligence Tools | Edureka
Edureka!
 
PDF
Tableau Tutorial for Data Science | Edureka
Edureka!
 
PDF
Python Programming Tutorial | Edureka
Edureka!
 
PDF
Top 5 PMP Certifications | Edureka
Edureka!
 
PDF
Top Maven Interview Questions in 2020 | Edureka
Edureka!
 
PDF
Linux Mint Tutorial | Edureka
Edureka!
 
PDF
How to Deploy Java Web App in AWS| Edureka
Edureka!
 
PDF
Importance of Digital Marketing | Edureka
Edureka!
 
PDF
RPA in 2020 | Edureka
Edureka!
 
PDF
Email Notifications in Jenkins | Edureka
Edureka!
 
PDF
EA Algorithm in Machine Learning | Edureka
Edureka!
 
PDF
Cognitive AI Tutorial | Edureka
Edureka!
 
PDF
AWS Cloud Practitioner Tutorial | Edureka
Edureka!
 
PDF
Blue Prism Top Interview Questions | Edureka
Edureka!
 
PDF
Big Data on AWS Tutorial | Edureka
Edureka!
 
PDF
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Edureka!
 
PDF
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
PDF
Introduction to DevOps | Edureka
Edureka!
 
What to learn during the 21 days Lockdown | Edureka
Edureka!
 
Top 10 Dying Programming Languages in 2020 | Edureka
Edureka!
 
Top 5 Trending Business Intelligence Tools | Edureka
Edureka!
 
Tableau Tutorial for Data Science | Edureka
Edureka!
 
Python Programming Tutorial | Edureka
Edureka!
 
Top 5 PMP Certifications | Edureka
Edureka!
 
Top Maven Interview Questions in 2020 | Edureka
Edureka!
 
Linux Mint Tutorial | Edureka
Edureka!
 
How to Deploy Java Web App in AWS| Edureka
Edureka!
 
Importance of Digital Marketing | Edureka
Edureka!
 
RPA in 2020 | Edureka
Edureka!
 
Email Notifications in Jenkins | Edureka
Edureka!
 
EA Algorithm in Machine Learning | Edureka
Edureka!
 
Cognitive AI Tutorial | Edureka
Edureka!
 
AWS Cloud Practitioner Tutorial | Edureka
Edureka!
 
Blue Prism Top Interview Questions | Edureka
Edureka!
 
Big Data on AWS Tutorial | Edureka
Edureka!
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Edureka!
 
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
Introduction to DevOps | Edureka
Edureka!
 
Ad

Recently uploaded (20)

PPTX
01_Approach Cyber- DORA Incident Management.pptx
FinTech Belgium
 
PDF
Quantum Threats Are Closer Than You Think – Act Now to Stay Secure
WSO2
 
PDF
99 Bottles of Trust on the Wall — Operational Principles for Trust in Cyber C...
treyka
 
PDF
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
PDF
FME as an Orchestration Tool with Principles From Data Gravity
Safe Software
 
PPTX
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Pitch ...
Michele Kryston
 
PDF
How to Comply With Saudi Arabia’s National Cybersecurity Regulations.pdf
Bluechip Advanced Technologies
 
PDF
Dev Dives: Accelerating agentic automation with Autopilot for Everyone
UiPathCommunity
 
PDF
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
PDF
Enhancing Environmental Monitoring with Real-Time Data Integration: Leveragin...
Safe Software
 
PDF
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
PPTX
Mastering Authorization: Integrating Authentication and Authorization Data in...
Hitachi, Ltd. OSS Solution Center.
 
PDF
''Taming Explosive Growth: Building Resilience in a Hyper-Scaled Financial Pl...
Fwdays
 
PDF
Understanding AI Optimization AIO, LLMO, and GEO
CoDigital
 
PDF
My Journey from CAD to BIM: A True Underdog Story
Safe Software
 
PDF
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
 
PPTX
Reimaginando la Ciberdefensa: De Copilots a Redes de Agentes
Cristian Garcia G.
 
PPTX
Paycifi - Programmable Trust_Breakfast_PPTXT
FinTech Belgium
 
PPTX
Smart Factory Monitoring IIoT in Machine and Production Operations.pptx
Rejig Digital
 
PDF
5 Things to Consider When Deploying AI in Your Enterprise
Safe Software
 
01_Approach Cyber- DORA Incident Management.pptx
FinTech Belgium
 
Quantum Threats Are Closer Than You Think – Act Now to Stay Secure
WSO2
 
99 Bottles of Trust on the Wall — Operational Principles for Trust in Cyber C...
treyka
 
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
FME as an Orchestration Tool with Principles From Data Gravity
Safe Software
 
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Pitch ...
Michele Kryston
 
How to Comply With Saudi Arabia’s National Cybersecurity Regulations.pdf
Bluechip Advanced Technologies
 
Dev Dives: Accelerating agentic automation with Autopilot for Everyone
UiPathCommunity
 
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
Enhancing Environmental Monitoring with Real-Time Data Integration: Leveragin...
Safe Software
 
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
Mastering Authorization: Integrating Authentication and Authorization Data in...
Hitachi, Ltd. OSS Solution Center.
 
''Taming Explosive Growth: Building Resilience in a Hyper-Scaled Financial Pl...
Fwdays
 
Understanding AI Optimization AIO, LLMO, and GEO
CoDigital
 
My Journey from CAD to BIM: A True Underdog Story
Safe Software
 
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
 
Reimaginando la Ciberdefensa: De Copilots a Redes de Agentes
Cristian Garcia G.
 
Paycifi - Programmable Trust_Breakfast_PPTXT
FinTech Belgium
 
Smart Factory Monitoring IIoT in Machine and Production Operations.pptx
Rejig Digital
 
5 Things to Consider When Deploying AI in Your Enterprise
Safe Software
 

Statistics Using Python | Statistics Python Tutorial | Python Certification Training | Edureka

  • 1. Python Certification Training https://www.edureka.co/python Agenda
  • 2. Python Certification Training https://www.edureka.co/python Agenda Introduction 01 Introduction to Statistics And Probability Getting Started 02 Concepts 03 Use Case 04 Getting Started With Python for Probability A practical Python use-case to understand Python faster! Overview of the simple concepts that’s involved
  • 3. Python Certification Training https://www.edureka.co/python Why Python For Statistics?
  • 4. Python Certification Training https://www.edureka.co/python Why Python For Statistics? R is a language dedicated for statistics! Then why Python? Building complex analysis pipelines that mix statistics with Image Analysis, Text Mining etc.. Here, the richness of Python is an invaluable asset!
  • 5. Python Certification Training https://www.edureka.co/python What is Probability?
  • 6. Python Certification Training https://www.edureka.co/python What is Probability? What is the chance of an event happening? How do you answer this? We need to consider all the other events that can occur before coming to a conclusion!
  • 7. Python Certification Training https://www.edureka.co/python The Coin Toss What are the outcomes for a coin toss? Flipping a heads Flipping a tails Any other outcome? NO! We call this the Sample Space!
  • 8. Python Certification Training https://www.edureka.co/python The Coin Toss What are the outcomes for a coin toss? A 100 Heads and 10 Tails, is this fair? Yes, the outcome here is to gather data, use statistics to make predictions and compare!
  • 9. Python Certification Training https://www.edureka.co/python The Coin Toss – Data Generation
  • 10. Python Certification Training https://www.edureka.co/python Too early for code?
  • 11. Python Certification Training https://www.edureka.co/python The Coin Toss – Code import random def coin_trial(): heads = 0 for i in range(100): if random.random() <= 0.5: heads +=1 return heads def simulate(n): trials = [] for i in range(n): trials.append(coin_trial()) return(sum(trials)/n) simulate(10) >> 5.4 simulate(100) >>> 4.83 simulate(1000) >>> 5.055 simulate(1000000) >>> 4.999781
  • 12. Python Certification Training https://www.edureka.co/python The Coin Toss – The Theory Given enough data, statistics enables us to calculate probabilities using real-world observations
  • 13. Python Certification Training https://www.edureka.co/python The Coin Toss – Python What are the chances of someone developing a disease over time? What is probability that a critical car component will fail when you are driving? Python making our lives simpler with this!
  • 14. Python Certification Training https://www.edureka.co/python Data And Distribution
  • 15. Python Certification Training https://www.edureka.co/python Data And Distribution Let’s tackle “Which wine is better than average” You need to know the nature of the data! Normal Distribution Normal distribution refers to a particularly important phenomenon in the realm of probability and statistics.
  • 16. Python Certification Training https://www.edureka.co/python Data And Distribution The high point in a normal distribution represents the event with the highest probability of occurring!
  • 17. Python Certification Training https://www.edureka.co/python Revisiting The Normal
  • 18. Python Certification Training https://www.edureka.co/python Revisiting The Normal Two major factors Central Limit Theorem Three Sigma Rule Central Limit Theorem dictates that the distribution of the estimates will look like a normal distribution. The Three Sigma rule dictates that given a normal distribution, 68% of your observations will fall between one standard deviation of the mean. 95% will fall within two, and 99.7% will fall within three. Learning Python
  • 19. Python Certification Training https://www.edureka.co/python Z-Score Learning Python
  • 20. Python Certification Training https://www.edureka.co/python Use-Case: Poker Probability
  • 21. Python Certification Training https://www.edureka.co/python Use-Case: Poker Prediction Can we predict the outcome of probability of occurrence of a poker hand?
  • 22. Python Certification Training https://www.edureka.co/python Use-Case: Poker Prediction Let’s look at the basics 52 cards in a standard deck! 4 of each shape For an Ace - P(A) = 4/52
  • 23. Python Certification Training https://www.edureka.co/python Use-Case: Poker Prediction Poker Without Python Poker With Python Texas Hold’em Pre-Flop: Each player is dealt two cards, known as "hole cards" Flop: Three community cards are dealt Turn: One community card is dealt River: Final community card is dealt
  • 24. Python Certification Training https://www.edureka.co/python Use-Case: Poker Prediction Dependent Events: Flush Draw Your Hand Community Cards
  • 25. Python Certification Training https://www.edureka.co/python Use-Case: Poker Prediction Dependent Events: Open-Ended Straight Draw Your Hand Community Cards
  • 26. Python Certification Training https://www.edureka.co/python Use-Case: Poker Prediction Involve Opponents now! Your Hand Community Cards Opponent’s Hand Total Pot = $60 Opponents Bet = $20
  • 27. Python Certification Training https://www.edureka.co/python Conclusion
  • 28. Python Certification Training https://www.edureka.co/python Conclusion