Skip to main content
Top

13. Simulation Experiments

  • 2024
  • OriginalPaper
  • Chapter
Published in:

Activate our intelligent search to find suitable subject content or patents.

search-config
loading …

Abstract

Simulation is a versatile tool to investigate the probability distribution of an outcome of a random event or experiment. In this chapter we focus on R functions that simplify the design and implementation of common types of simulation studies. Two functions that are used throughout are the sample() function for drawing random samples with or without replacement, and the replicate() function to easily repeat blocks of code including the sampling. The examples include some famous probability problems such as the collector’s problem and the hat-check problem, and the streaky patterns found among hitters in a baseball game. Simulations are summarized with suitable plots in R graphics and ggplot graphics.

Not a customer yet? Then find out more about our access models now:

Individual Access

Start your personal individual access now. Get instant access to more than 164,000 books and 540 journals – including PDF downloads and new releases.

Starting from 54,00 € per month!    

Get access

Access for Businesses

Utilise Springer Professional in your company and provide your employees with sound specialist knowledge. Request information about corporate access now.

Find out how Springer Professional can uplift your work!

Contact us now
Title
Simulation Experiments
Authors
Jim Albert
Maria Rizzo
Copyright Year
2024
DOI
https://doi.org/10.1007/978-3-031-76074-7_13
This content is only visible if you are logged in and have the appropriate permissions.

Premium Partner

    Image Credits
    Neuer Inhalt/© ITandMEDIA, Nagarro GmbH/© Nagarro GmbH, AvePoint Deutschland GmbH/© AvePoint Deutschland GmbH, AFB Gemeinnützige GmbH/© AFB Gemeinnützige GmbH, USU GmbH/© USU GmbH, Ferrari electronic AG/© Ferrari electronic AG