#### Overview of this book

R Object-oriented Programming
Credits
www.PacktPub.com
Preface
Free Chapter
Data Types
Organizing Data
Saving Data and Printing Results
Calculating Probabilities and Random Numbers
Character and String Operations
Converting and Defining Time Variables
Basic Programming
S3 Classes
S4 Classes
Case Study – Simulation
Package Management
Index

## Chapter 4. Calculating Probabilities and Random Numbers

In this chapter, we provide a broad overview of the functions related to probability distributions. This includes functions associated with probability distributions, Random Number Generation, and issues associated with sampling. The chapter is divided into five parts:

• Distribution functions: This section gives you a brief overview of the ideas and concepts behind random variables and approximating the height of a probability mass function of a probability density function for a given distribution

• The cumulative distribution function: This section gives you an overview of how to approximate the cumulative distribution for a given distribution

• The inverse cumulative distribution function: This section gives you an overview of how to approximate the inverse cumulative distribution function for a given distribution

• Random Number Generation (RNG): This section gives you an overview of how R generates pseudorandom numbers with examples of how...