Docsity

Frequentist vs. Bayesian Estimation: Probability Estimation Approaches, Lecture notes of Machine Learning

Partial preview of the text

Download Frequentist vs. Bayesian Estimation: Probability Estimation Approaches and more Lecture notes Machine Learning in PDF only on Docsity!

Frequentist vs. Bayesian Estimation

CSE 4309 – Machine Learning Vassilis Athitsos Computer Science and Engineering Department University of Texas at Arlington

Estimating Probabilities

  • In order to use probabilities, we need to estimate them.
  • For example:
    • What is the prior probability p(snows | January), that it snows on a January day in Arlington, Texas?
    • Prior means that we do not take any current observations into account (like weather in neighboring areas, weather the previous day, etc).
  • How can we compute that?

Frequentist Approach

  • The method we just used for estimating the probability of snow in January is called frequentist.
  • In the frequentist approach, probabilities are estimated based on observed frequencies in available data.
  • The frequentist approach is simple, and widely used.
  • However, there are pitfalls.
  • Can you think of any?

Frequentist Pitfalls

  • In our "snow in January" example, suppose that:
    • The historical record contains data for only two January days.
    • It did not snow either day.
  • Then, what is p(snows | January) according to the frequentist approach?
  • p(snows | January = 0)
  • This means that your system predicts that there is zero chance of snowing on a January day.
  • Anything wrong with that?

More Data Helps

  • The previous pitfall can be (mostly) avoided if we have lots of data on the historical record.
  • If we have data for the last 100 years, then we have data for 3100 January days.
  • If the true probability of snow is 10%, it is very unlikely that the frequentist approach will give an estimate that is less than 8% or more than 12%.
  • How unlikely? You will find out on your next homework.

The Dangers of Absolute Certainty

  • Suppose that we have data for all January days from the last 100 years.
  • Suppose it never snowed on those days.
  • Our frequentist-based AI system again predicts a probability of snow that is 0%?
  • Should we risk our lifes, or lots of money, or the fate of humanity, on such a prediction?
  • What is the chance that the prediction is wrong?
  • Are we being too skeptical if we expect a 100-year pattern to break? If we expect a 1000-year pattern to break? (^8)

The Sunrise Problem –

Frequentist Solution

  • The sun has risen every day you can remember.
  • Therefore, the sun has risen 100% of the times in your observations.
  • Therefore, the probability that the sun will rise tomorrow is 100%.

The Dangers of Absolute Certainty

  • For both the "snow in January" problem (version where it has not snowed for 100 years), and for the sunrise problem, the frequentist approach gives an answer with 100% certainty for the outcome. - 0% chance it will snow. - 100% chance the sun will rise tomorrow.
  • Intuitively, this outcome is correct in one case, incorrect in another case. - 100 years of not snowing do not guarantee that it will never snow. - The sun will rise again tomorrow, no doubt about that. (^11)

Bayesian Estimation

  • p(sunrise) = θ.
  • We do not know θ.
  • The first step in doing Bayesian Estimation of a probability distribution, is to assign a prior to the parameters that we want to estimate.
  • In the sunrise problem, what are the parameters that we want to estimate?

Bayesian Estimation

  • p(sunrise) = θ.
  • We do not know θ.
  • The first step in doing Bayesian Estimation of a probability distribution, is to assign a prior to the parameters that we want to estimate.
  • In the sunrise problem, the only parameter is θ.
  • That is why we will indicate p(sunrise) as pθ(sunrise).
  • So, before we look at observations, we must define a p(θ).
  • In other words, for each possible θ, we need to define the probability that the probability of sunrise is θ. 14

Bayesian Estimation

  • pθ(sunrise) = θ.
  • Before we look at observations, we must define a prior p(θ).
  • For example, suppose that, before we look at any observations, we assume that all values of θ to be equally likely.
  • Then, how should we define p(θ) to reflect that assumption?
  • p(θ) is uniform for values between 0 and 1, and zero elsewhere.
  • In other words:

0 , if θ < 0

1 , if θ𝜖 0 , 1

0 , if θ > 1

Bayesian Estimation

  • pθ(sunrise) = θ.
  • We decide to define the prior p(θ) as:

𝑝 θ =

0 , if θ < 0 1 , if θ𝜖 0 , 1 0 , if θ > 1

  • Why did we assign zero density for θ < 0 and θ > 1?

Bayesian Estimation

  • pθ(sunrise) = θ.
  • We decide to define the prior p(θ) as:

𝑝 θ =

0 , if θ < 0 1 , if θ𝜖 0 , 1 0 , if θ > 1

  • Why did we assign zero density for θ < 0 and θ > 1?
  • Because θ itself is a probability value, so it can only take values between 0 and 1.
  • Why did we assign density 1 for θ between 0 and 1? Why not assign density 2, for example?
  • Because density 1 is the only value that makes p(θ) integrate to
    1. 19

Bayesian Estimation, Before Day 1

  • pθ(sunrise) = θ.
  • We decide to define the prior p(θ) as:

𝑝 θ =

0 , if θ < 0 1 , if θ𝜖 0 , 1 0 , if θ > 1

  • According to this prior, what is the probability p(sunrise) for the first day? (Before we have made any observations).

1

0 =???