HomeCoursesBasics of probability applied with Python

Toss a coin using Python

Chapter 2 · First Steps in Coin Toss Simulations · lesson 2 of 63
Reserved for subscribers — here is the beginning
This course is aimed at people who have basic knowledge of Python and are familiar with statistics. By the end of the course, you will understand the essential concepts of probability, including random variables, probability calculations and probability distributions, as well as fundamental results such as the law of large numbers. These concepts will be illustrated using simulations carried out in Python. Probability Probability is the foundation of many methods and models used in data science. Statistical inference methods rely on data to understand the underlying mechanisms that produce them
The rest of this lesson is reserved for subscribers Create your free account to try the sample exercises, then upgrade to full access whenever you like.

Create your free account

No credit card required, in thirty seconds.
Continue with Google
or
Sign up with an e-mail
Already registered? Log in
By continuing, you agree to the terms of use and the privacy policy. Your data is hosted in the European Union.

Full access DATAGOZ

19 €/ month — or 190 € / year
  • All published courses and career paths
  • Exercises and quizzes with automatic grading
  • Practice, exam and certificate of completion
  • No commitment, cancel online
See the plans
This lesson is part of the course

Applied Probability Basics with Python

short_training6 chapters · 63 lessons

Discover and master the essential principles of probability with Python!

  • The training platformsubscribers
  • Tossing a coin using Pythonyou are here
  • Simulate coin tossessubscribers
  • Multiplying coin toss simulations with the binom functionsubscribers
  • Distinguishing probability mass functions from probability distribution functionssubscribers
  • Estimating the probability of defaultssubscribers
  • Predicting employment status from probabilitiessubscribers
  • Estimating the conviction rate for burglarysubscribers
  • Discovering the expected value, mean and variancesubscribers
  • Calculate the expected value and variance of a distributionsubscribers
  • Estimating the mean from simulationssubscribers
  • Check the accuracy of the results obtainedsubscribers
  • Calculate the mean and variance of a samplesubscribers
  • Calculate the probability of two eventssubscribers
  • Analyze the overlap between several eventssubscribers
  • Study the characteristics of a samplesubscribers
  • Calculate joint probabilitiessubscribers
  • Solve probability problems with a deck of cardssubscribers
  • Determine conditional probabilitiessubscribers
  • Assess the probabilities of flight delayssubscribers
  • Analyze relationships between events with a contingency tablesubscribers
  • Go deeper into probability calculations with cardssubscribers
  • Apply the law of total probabilitysubscribers
  • Estimate the winning chances of Formula 1 driverssubscribers
  • Analyze probabilities linked to voters' choicessubscribers
  • Use Bayes' rule to update probabilitiessubscribers
  • Go deeper into conditional probability calculationssubscribers
  • Study production probabilities in factoriessubscribers
  • Assess the reliability of a blood test for detecting swine flusubscribers
  • Explore the normal distributionsubscribers
  • Determine the range of possible valuessubscribers
  • Plot normal distributionssubscribers
  • Examine values located within three standard deviations of the meansubscribers
  • Calculate probabilities using the normal distributionsubscribers
  • Apply the normal distribution to restaurant spendingsubscribers
  • Model a smartphone battery's runtime with the normal distributionsubscribers
  • Analyze the distribution of adult heightssubscribers
  • Discover the Poisson distributionsubscribers
  • Apply the Poisson distribution to vending machine operationssubscribers
  • Model the frequency of highway accidents with the Poisson distributionsubscribers
  • Generate and visualize Poisson distributions in Pythonsubscribers
  • Discover the geometric distributionsubscribers
  • Apply the geometric distribution to salmon catchingsubscribers
  • Modeling free-throw success with the geometric distributionsubscribers
  • Generating and plotting geometric distributionssubscribers
  • Moving from a sample mean to the population meansubscribers
  • Creating a random sample in Pythonsubscribers
  • Calculating the mean of a samplesubscribers
  • Plotting the distribution of sample meanssubscribers
  • Studying the sum of random variablessubscribers
  • Comparing means obtained from several samplessubscribers
  • Understanding why sample means follow a normal distributionsubscribers
  • Analyzing the sum of results from several dice rollssubscribers
  • Discovering the principles of linear regressionsubscribers
  • Fit a linear regression model to the datasubscribers
  • Predict exam results using a linear modelsubscribers
  • Analyze the residuals of a regression modelsubscribers
  • Discover logistic regressionsubscribers
  • Build and fit a logistic regression modelsubscribers
  • Predict student success from their datasubscribers
  • Calculate the probability of passing two examssubscribers
  • Review the probability and statistics concepts studiedsubscribers
  • Course conclusionsubscribers
Next lesson

Simulating coin tosses

View the programme Create an account to continue