Skip to Main Content
Applying Math with Python - Second Edition
book

Applying Math with Python - Second Edition

by Sam Morley
December 2022
Intermediate to advanced content levelIntermediate to advanced
376 pages
10h 8m
English
Packt Publishing
Content preview from Applying Math with Python - Second Edition

4

Working with Randomness and Probability

In this chapter, we will discuss randomness and probability. We will start by briefly exploring the fundamentals of probability by selecting elements from a set of data. Then, we will learn how to generate (pseudo) random numbers using Python and NumPy, and how to generate samples according to a specific probability distribution. We will conclude the chapter by looking at a number of advanced topics covering random processes and Bayesian techniques and using Markov Chain Monte Carlo (MCMC) methods to estimate the parameters of a simple model.

Probability is a quantification of the likelihood of a specific event occurring. We use probabilities intuitively all of the time, although sometimes the formal ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Doing Math with Python

Doing Math with Python

Amit Saha

Publisher Resources

ISBN: 9781804618370Supplemental Content