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

Connected

Exercise

A small decision analysis 2

Using the columns video_profit and text_profit that you added to posterior in the last exercise, let's conclude the decision analysis.

Instructions 1/4

undefined XP
    1
    2
    3
    4
  • Add the new column posterior$profit_diff: The probability distribution over the difference in profits between video ads and text ads. That is, the profit from video ads minus the profit from text ads.
  • Take a look at posterior$profit_diff by plotting it using hist().