Chapter 7. Simulation from Probability Distributions
This chapter covers the following topics:
- Generating random samples
- Understanding uniform distribution
- Generating binomial random variates
- Generating Poisson random variates
- Sampling from normal distribution
- Sampling from chi-squared distribution
- Understanding Student's t-distribution
- Sampling from a dataset
- Simulating the stochastic process
Introduction
To handle the uncertainty of real-world events, we can use probability to measure the likelihood of whether an event will occur. By definition, probability is quantified with a number between 0 and 1; the higher the probability (closer to 1), the more certain we are that an event will occur.
As statistical inference is used to deduce the properties of a ...
Get R for Data Science Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.