# Bayesian Methods for Hackers

Master Bayesian Inference through Practical Examples and Computation-Without Advanced Mathematical Analysis Bayesian methods of inference are deeply natural and extremely powerful. However, most discussions of Bayesian inference rely on intensely complex mathematical analyses and artificial examples, making it inaccessible to anyone without a strong mathematical background. Now, though, Cameron Davidson-Pilon introduces Bayesian inference from a computational perspective, bridging theory to practice-freeing you to get results using computing power. Bayesian Methods for Hackers illuminates Bayesian inference through probabilistic programming with the powerful PyMC language and the closely related Python tools NumPy, SciPy, and Matplotlib. Using this approach, you can reach effective solutions in small increments, without extensive mathematical intervention. Davidson-Pilon begins by introducing the concepts underlying Bayesian inference, comparing it with other techniques and guiding you through building and training your first Bayesian model. Next, he introduces PyMC through a series of detailed examples and intuitive explanations that have been refined after extensive user feedback. You'll learn how to use the Markov Chain Monte Carlo algorithm, choose appropriate sample sizes and priors, work with loss functions, and apply Bayesian inference in domains ranging from finance to marketing. Once you've mastered these techniques, you'll constantly turn to this guide for the working PyMC code you need to jumpstart future projects. Coverage includes * Learning the Bayesian "state of mind" and its practical implications * Understanding how computers perform Bayesian inference * Using the PyMC Python library to program Bayesian analyses * Building and debugging models with PyMC * Testing your model's "goodness of fit" * Opening the "black box" of the Markov Chain Monte Carlo algorithm to see how and why it works * Leveraging the power of the "Law of Large Numbers" * Mastering key concepts, such as clustering, convergence, autocorrelation, and thinning * Using loss functions to measure an estimate's weaknesses based on your goals and desired outcomes * Selecting appropriate priors and understanding how their influence changes with dataset size * Overcoming the "exploration versus exploitation" dilemma: deciding when "pretty good" is good enough * Using Bayesian inference to improve A/B testing * Solving data science problems when only small amounts of data are available Cameron Davidson-Pilon has worked in many areas of applied mathematics, from the evolutionary dynamics of genes and diseases to stochastic modeling of financial prices. His contributions to the open source community include lifelines, an implementation of survival analysis in Python. Educated at the University of Waterloo and at the Independent University of Moscow, he currently works with the online commerce leader Shopify.

View more

Number of Pages: 256
Format(s): Paperback - ISBN: 9780133902839
Publication Date:
Listed in: Computer programming & software development, Mathematical theory of computation

Paperback

RRP: £29.49

Sale Price: £23.47

Save: £6.02 per copy!

Currently out of stock

## Institutionalization of Usability: A Step-by-step Guide

### By Eric Schaffer

Save £10.34 = £21.65

## Usability Engineering

### By Xris Faulkner

Save £12.74 = £25.25

## Beginning Programming All-In-One Desk Reference For Dummies

### By Wallace Wang

Save £6.74 = £16.25

## Professional IIS 7

### By Scott Forsyth

Save £11.14 = £22.85

## OpenCL Programming Guide

### By Benedict Gaster

Save £7.31 = £26.68

## Latest from the blog

### Fantastic new recipe book from Sabrina Ghayour 'Sirocco'

Sabrina Ghayour's long awaited second recipe book Sirocco is out this month and is a great follow up to Persianna. Read article

### Ten Great Bedtime Reads from The Great British Bookshop and Aspace

We have teamed up with Aspace (www.aspace.co.uk) who create beautiful room for Children to bring you 10 great bedtime reads for your little ones. Read article

## Breaking book world news

Posted 09/06/2016

### Literary Event Focus June-Sept 2016

Posted 23/02/2015

### Bath Literature Festival Judges deem Wolf Hall as 'outstanding novel of our time'

Posted 19/02/2015

### NLT & Walker Books Launch Alex Rider 15th Anniversary Writing Competition for Schools

• @TheGBBookshop - 3 years ago

Lottery funding for dementia reading project £2m pledged for Reading Agency scheme to pair readers with dementia sufferers

@TheGBBookshop - 3 years ago

Harry Potter and the Cursed Child has held on to the number one spot for a sixth week #HarryPotter #CursedChild @littlebrown @pottermore

• @TheGBBookshop - 3 years ago

@thebookseller @MartinaCole @Jeffrey_Archer @Foyles

@TheGBBookshop - 3 years ago

Frith wins inaugural Klaus Flugge Prize for illustration t.co/U9P08h4XMG

• @TheGBBookshop - 3 years ago