1. Learn
  2. /
  3. Courses
  4. /
  5. Fundamentals of Bayesian Data Analysis in R

Exercise

A small decision analysis 1

Each visitor spends $2.53 on average, a video ad costs $0.25 and a text ad costs $0.05. Let's figure out the probable profit when using video ads and text ads!

Instructions 1/3

undefined XP
    1
    2
    3

The data frame posterior contains the probability distribution over the underlying proportion of clicks for video ads and text ads.

  • Add the column posterior$video_profit which should be the probability distribution over the average profit you'll make on showing a video ad. That is, the underlying proportion of clicks times the average spend minus the cost of showing the video.