Counting Votes: Distributions In a small voting district, Poisson(λ) people arrive to vote during a poll. Each voter votes for the proposal with probability p and against the proposal with probability (1−p). Assume everyone casts their vote independently.   If D is the difference between the number of votes for the proposal and the number of votes against the proposal, determine E(D) and Var(D). Implement a simulation to check your answers(python code). Solve by hand and show calculations done by hand and by code!

A First Course in Probability (10th Edition)
10th Edition
ISBN:9780134753119
Author:Sheldon Ross
Publisher:Sheldon Ross
Chapter1: Combinatorial Analysis
Section: Chapter Questions
Problem 1.1P: a. How many different 7-place license plates are possible if the first 2 places are for letters and...
icon
Related questions
Question

Counting Votes: Distributions

In a small voting district, Poisson(λ) people arrive to vote during a poll. Each voter votes for the proposal with probability p and against the proposal with probability (1−p). Assume everyone casts their vote independently.

 

  1. If D is the difference between the number of votes for the proposal and the number of votes against the proposal, determine E(D) and Var(D).
  2. Implement a simulation to check your answers(python code).

Solve by hand and show calculations done by hand and by code! 

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
A First Course in Probability (10th Edition)
A First Course in Probability (10th Edition)
Probability
ISBN:
9780134753119
Author:
Sheldon Ross
Publisher:
PEARSON
A First Course in Probability
A First Course in Probability
Probability
ISBN:
9780321794772
Author:
Sheldon Ross
Publisher:
PEARSON