Ball and Bins Arguments




CS255

Chris Pollett

Feb 7, 2022

Outline

Introduction

Balls and Bins

Ball and Bin Questions

We can ask a variety of questions about the ball tossing process. As a first question, we ask:

How many balls fall in a given bin assuming `n` tosses?

Quiz

Which of the following statements is true?

  1. Suppose we wanted to modify the definition of random variable from `X: S -> RR` to `X: S -> W` where `W` is some other set rather than the reals. For expectations of `X` to make sense, we would still need some way to multiply elements of the interval `[0,1]` with elements of `W`.
  2. Our analysis of the hiring problem did not involve calculus as argued.
  3. The Knuth shuffle is easily parallelized.

Second Ball and Bin Question

How many balls must one toss on average, until a given bin contains a ball?

Third Ball and Bin Question

How many balls must one toss on average, until every bin contains at least one ball?

Streaks

Suppose you flip a fair coin n times. What is the longest streak of consecutive heads you expect to see?

Upper Bound on Streaks