HomeCoursesBasics of probability applied with Python

Discovering expected value, mean and variance

Chapter 2 · First steps in coin toss simulations · lesson 9 of 63
Reserved for subscribers — here is the beginning
Is there one result that is more likely than the others in a data set? To what extent is the data spread out? To answer these questions, three important measures can be used: the expected value, the arithmetic mean and the variance. Calculating the expected value of a random variable A discrete random variable has a finite number of possible outcomes. For example, a standard die has six possible outcomes. For this type of variable, the expected value is the sum of the possible outcomes, each weighted by its probability. To calculate it, simply multiply each outcome by its probability,
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 Pythonsubscribers
  • 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
  • Discover the expected value, the mean and the varianceyou are here
  • 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

Calculate the expected value and variance of a distribution

View the programme Create an account to continue