Simple Sampling - Generalized

assume:

  • function β„Ž(𝑋)
  • 𝑋 has a probability distribution 𝐏
  • it is easy to generate a sampleΒ π‘₯𝑖 from probability distribution 𝐏
  • computation of β„Ž(π‘₯𝑖) is easy

we want to compute the expected value of β„Ž(𝑋) (i.e. 𝐄𝐏[β„Ž(𝑋)])

  • 𝐄𝐏[β„Ž(𝑋)] = βˆ«β„Ž(π‘₯)𝐏(π‘₯)𝑑π‘₯ # continuous case
  • 𝐄𝐏[β„Ž(𝑋)] = 𝛴π‘₯βˆŠπ‘‹Β β„Ž(π‘₯)𝐏(π‘₯) # discrete case

is estimated with:

  • 𝐄𝐏[β„Ž(𝑋)] β‰ˆ (1/𝑛) 𝛴1β‰€π‘–β‰€π‘›β„Ž(π‘₯𝑖)

where:

  • β„Ž(π‘₯) - is some function
  • 𝐏 - is the probability distribution
  • 𝐄𝐏[..] - expected value based on 𝐏
  • 𝑛 - is the number of samples generated
  • {π‘₯1, …, π‘₯𝑖, …, π‘₯𝑛} - are samples i.i.d. generated from 𝐏

Simple Sampling - Examples