Exercise: Predicting Election Results
Explore how to use random variables and sampling to predict election outcomes. This lesson guides you through poll simulation and probability calculations to determine prediction accuracy using Python tools.
We'll cover the following...
We'll cover the following...
Task
Consider an election where one million (1,000,000) people will vote.
-
490,000 people will vote for Mr. Arthur
-
510,000 people will vote for Mr. Ben.
One day before the election, a private company, Octavius, conducts a poll among 1000 randomly chosen voters.
Problem statement 1
Compute whether Octavius will predict the winner ...