Randomness in Computing L ECTURE 8 Last time Variance, covariance - - PowerPoint PPT Presentation

β–Ά
randomness in computing
SMART_READER_LITE
LIVE PREVIEW

Randomness in Computing L ECTURE 8 Last time Variance, covariance - - PowerPoint PPT Presentation

Randomness in Computing L ECTURE 8 Last time Variance, covariance Chebyshevs inequality Variance of Binomial and Geometric RVs In Discussion Median of a RV Today Computing the median of an array 2/19/2020 Sofya


slide-1
SLIDE 1

2/19/2020

Randomness in Computing

LECTURE 8

Last time

  • Variance, covariance
  • Chebyshev’s inequality
  • Variance of Binomial and

Geometric RVs

In Discussion

  • Median of a RV

Today

  • Computing the median of an

array

Sofya Raskhodnikova;Randomness in Computing

slide-2
SLIDE 2

Median of a random variable

  • A value 𝑛 is the median of a random variable π‘Œ

if Pr π‘Œ ≀ 𝑛 ≀ 1/2 and Pr π‘Œ β‰₯ 𝑛 ≀ 1/2.

  • Example 1: π‘Œ is uniform over 𝑦1, … , 𝑦2𝑙+1,

where 𝑦1 < β‹― < 𝑦2𝑙+1. What is the median?

  • Example 2: π‘Œ is uniform over 𝑦1, … , 𝑦2𝑙,

where 𝑦1 < β‹― < 𝑦2𝑙. Find all medians.

2/19/2020

Sofya Raskhodnikova; Randomness in Computing

slide-3
SLIDE 3

Median and mean: another view

  • Theorem. For a random variable X

with a finite expectation 𝜈 and a finite median 𝑛,

  • 1. the expectation 𝜈 is the value of c

that minimizes the expression 𝐹 π‘Œ βˆ’ 𝑑 2 ;

  • 2. the median 𝑛 is a value of 𝑑

that minimizes the expression 𝐹 |π‘Œ βˆ’ 𝑑| .

2/19/2020

Sofya Raskhodnikova; Randomness in Computing

slide-4
SLIDE 4

Median and mean are close

  • Theorem. For a random variable X with

expectation 𝜈, median 𝑛, and standard deviation 𝜏, 𝜈 βˆ’ 𝑛 ≀ 𝜏.

2/19/2020

Sofya Raskhodnikova; Randomness in Computing

slide-5
SLIDE 5

Randomized Algorithm for the Median of an Array

  • On the board

2/19/2020

Sofya Raskhodnikova; Randomness in Computing