Bayesian Analysis with Excel and R

Book description

Leverage the full power of Bayesian analysis for competitive advantage

Bayesian methods can solve problems you can't reliably handle any other way. Building on your existing Excel analytics skills and experience, Microsoft Excel MVP Conrad Carlberg helps you make the most of Excel's Bayesian capabilities and move toward R to do even more.

Step by step, with real-world examples, Carlberg shows you how to use Bayesian analytics to solve a wide array of real problems. Carlberg clarifies terminology that often bewilders analysts, provides downloadable Excel workbooks you can easily adapt to your own needs, and offers sample R code to take advantage of the rethinking package in R and its gateway to Stan.

As you incorporate these Bayesian approaches into your analytical toolbox, you'll build a powerful competitive advantage for your organization---and yourself.

  • Explore key ideas and strategies that underlie Bayesian analysis

  • Distinguish prior, likelihood, and posterior distributions, and compare algorithms for driving sampling inputs

  • Use grid approximation to solve simple univariate problems, and understand its limits as parameters increase

  • Perform complex simulations and regressions with quadratic approximation and Richard McElreath's quap function

  • Manage text values as if they were numeric

  • Learn today's gold-standard Bayesian sampling technique: Markov Chain Monte Carlo (MCMC)

  • Use MCMC to optimize execution speed in high-complexity problems

  • Discover when frequentist methods fail and Bayesian methods are essential---and when to use both in tandem

Table of contents

  1. Cover Page
  2. About This eBook
  3. Title Page
  4. Contents at a Glance
  5. Copyright Page
  6. Credits
  7. Pearson’s Commitment to Diversity, Equity, and Inclusion
  8. Contents
  9. About the Author
  10. Preface
  11. 1. Bayesian Analysis and R: An Overview
    1. Bayes Comes Back
    2. About Structuring Priors
    3. Watching the Jargon
    4. Priors, Likelihoods, and Posteriors
    5. Contrasting a Frequentist Analysis with a Bayesian
    6. Summary
  12. 2. Generating Posterior Distributions with the Binomial Distribution
    1. Understanding the Binomial Distribution
    2. Understanding Some Related Functions
    3. Working with R’s Binomial Functions
    4. Grappling with the Math
    5. Summary
  13. 3. Understanding the Beta Distribution
    1. Establishing the Beta Distribution in Excel
    2. Comparing the Beta Distribution with the Binomial Distribution
    3. Decoding Excel’s Help Documentation for BETA.DIST
    4. Replicating the Analysis in R
    5. Summary
  14. 4. Grid Approximation and the Beta Distribution
    1. More on Grid Approximation
    2. Using the Results of the Beta Function
    3. Tracking the Shape and Location of the Distribution
    4. Inventorying the Necessary Functions
    5. Moving from the Underlying Formulas to the Functions
    6. Comparing Built-in Functions with Underlying Formulas
    7. Understanding Conjugate Priors
    8. Summary
  15. 5. Grid Approximation with Multiple Parameters
    1. Setting the Stage
    2. Putting the Data Together
    3. Summary
  16. 6. Regression Using Bayesian Methods
    1. Regression à la Bayes
    2. Sample Regression Analysis
    3. Matrix Algebra Methods
    4. Understanding quap
    5. Continuing the Code
    6. A Full Example
    7. Designing the Multiple Regression
    8. Arranging a Bayesian Multiple Regression
    9. Summary
  17. 7. Handling Nominal Variables
    1. Using Dummy Coding
    2. Supplying Text Labels in Place of Codes
    3. Comparing Group Means
    4. Summary
  18. 8. MCMC Sampling Methods
    1. Quick Review of Bayesian Sampling
    2. A Sample MCMC Analysis
    3. Summary and Concluding Thoughts
  19. A. Installation Instructions for RStan and the rethinking Package on the Windows Platform
  20. Glossary
  21. Index
  22. Code Snippets

Product information

  • Title: Bayesian Analysis with Excel and R
  • Author(s): Conrad Carlberg
  • Release date: November 2022
  • Publisher(s): Addison-Wesley Professional
  • ISBN: 9780137580934