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

PPTX
Statistics for data science
PDF
Decision tree
PDF
Introduction to basic data analytics tools
PDF
Learn Python Programming | Python Programming - Step by Step | Python for Beg...
PDF
Python Programming Tutorial | Edureka
PPTX
One R (1R) Algorithm
PPTX
What Is Data Science? | Introduction to Data Science | Data Science For Begin...
PDF
Data Analytics For Beginners | Introduction To Data Analytics | Data Analytic...
Statistics for data science
Decision tree
Introduction to basic data analytics tools
Learn Python Programming | Python Programming - Step by Step | Python for Beg...
Python Programming Tutorial | Edureka
One R (1R) Algorithm
What Is Data Science? | Introduction to Data Science | Data Science For Begin...
Data Analytics For Beginners | Introduction To Data Analytics | Data Analytic...

What's hot (20)

PPTX
Introduction to Data Analytics
PDF
Python for Data Science
PPTX
Data Wrangling
PDF
Introduction to Python Pandas for Data Analytics
PDF
Inference in Bayesian Networks
PPTX
Data science life cycle
PPTX
Python Developer Roadmap 2023
PDF
Python For Data Analysis | Python Pandas Tutorial | Learn Python | Python Tra...
PDF
Data Science Full Course | Edureka
PPT
A Hybrid Recommendation system
PDF
Python Tutorial | Python Tutorial for Beginners | Python Training | Edureka
PPTX
Data Science Project Lifecycle and Skill Set
PPT
2.3 bayesian classification
PPTX
Data Science Training | Data Science For Beginners | Data Science With Python...
PPTX
Feature selection
PDF
Feature selection
PPTX
MatplotLib.pptx
PDF
Dimensionality Reduction
PDF
Hierarchical Clustering
PDF
Scikit Learn Tutorial | Machine Learning with Python | Python for Data Scienc...
Introduction to Data Analytics
Python for Data Science
Data Wrangling
Introduction to Python Pandas for Data Analytics
Inference in Bayesian Networks
Data science life cycle
Python Developer Roadmap 2023
Python For Data Analysis | Python Pandas Tutorial | Learn Python | Python Tra...
Data Science Full Course | Edureka
A Hybrid Recommendation system
Python Tutorial | Python Tutorial for Beginners | Python Training | Edureka
Data Science Project Lifecycle and Skill Set
2.3 bayesian classification
Data Science Training | Data Science For Beginners | Data Science With Python...
Feature selection
Feature selection
MatplotLib.pptx
Dimensionality Reduction
Hierarchical Clustering
Scikit Learn Tutorial | Machine Learning with Python | Python for Data Scienc...
Ad

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

DOCX
10 Must-Know Statistical Concepts for Data Scientists.docx
PDF
probabilidades.pdf
PPTX
Probability Theory for Data Scientists
PDF
Essential_20Statistics_20for_20Data_20Science.pdf
DOCX
The Importance of Probability in Data Science.docx
PDF
Probabilistic Reasoning bayes rule conditional .pdf
PPTX
Unit-2 Bayes Decision Theory.pptx
PPTX
Chapter_01 Prob and Random Variables.pptx
PDF
Python Certification | Data Science with Python Certification | Python Online...
PDF
Probability for engineering student module (2).pdf
PPTX
Introduction to probabilities and radom variables
PPT
Probability And Probability Distributions
PPTX
PA_EPGDM_2_2023.pptx
DOCX
MSL 5080, Methods of Analysis for Business Operations 1 .docx
PDF
Probability and Statistics - Week 1
PPTX
Machine learning session2
PPTX
Lec. 10: Making Assumptions of Missing data
PPTX
UNIT-II-Probability-ConditionalProbability-BayesTherom.pptx
PDF
Probability and basic statistics with R
PDF
Lecturenotesstatistics
10 Must-Know Statistical Concepts for Data Scientists.docx
probabilidades.pdf
Probability Theory for Data Scientists
Essential_20Statistics_20for_20Data_20Science.pdf
The Importance of Probability in Data Science.docx
Probabilistic Reasoning bayes rule conditional .pdf
Unit-2 Bayes Decision Theory.pptx
Chapter_01 Prob and Random Variables.pptx
Python Certification | Data Science with Python Certification | Python Online...
Probability for engineering student module (2).pdf
Introduction to probabilities and radom variables
Probability And Probability Distributions
PA_EPGDM_2_2023.pptx
MSL 5080, Methods of Analysis for Business Operations 1 .docx
Probability and Statistics - Week 1
Machine learning session2
Lec. 10: Making Assumptions of Missing data
UNIT-II-Probability-ConditionalProbability-BayesTherom.pptx
Probability and basic statistics with R
Lecturenotesstatistics
Ad

More from Edureka! (20)

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

Recently uploaded (20)

PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Machine learning based COVID-19 study performance prediction
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
MIND Revenue Release Quarter 2 2025 Press Release
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Encapsulation_ Review paper, used for researhc scholars
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Machine learning based COVID-19 study performance prediction
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
MIND Revenue Release Quarter 2 2025 Press Release
The AUB Centre for AI in Media Proposal.docx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Reach Out and Touch Someone: Haptics and Empathic Computing
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Assigned Numbers - 2025 - Bluetooth® Document
Unlocking AI with Model Context Protocol (MCP)
Mobile App Security Testing_ A Comprehensive Guide.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
sap open course for s4hana steps from ECC to s4
Network Security Unit 5.pdf for BCA BBA.
Review of recent advances in non-invasive hemoglobin estimation
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf

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