100 Excel Simulations
eBook - ePub

100 Excel Simulations

Using Excel to Model Risk, Investments, Genetics, Growth, Gambling and Monte Carlo Analysis

  1. 213 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

100 Excel Simulations

Using Excel to Model Risk, Investments, Genetics, Growth, Gambling and Monte Carlo Analysis

About this book

Covering a variety of Excel simulations, from gambling to genetics, this introduction is for people interested in modeling future events, without the cost of an expensive textbook. The simulations covered offer a fun alternative to the usual Excel topics and include situations such as roulette, password cracking, sex determination, population growth, and traffic patterns, among many others.

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access 100 Excel Simulations by Gerard M. Verschuuren in PDF and/or ePUB format, as well as other popular books in Computer Science & Financial Risk Management. We have over one million books available in our catalogue for you to explore.
  1. Gambling
    Chapter 1 The Die Is Cast
    All these simulations are supported by files that you can download from the following website:
    http://www.genesispc.com/download/simulations100.zip.
    What the simulation does
    We start with a very simple case of simulation—casting a die (on sheet “Dice” in 1-Gambling.xlsx). In cell A1 is a formula that generates a random number between 1 and 6. According to that outcome, the colored die shows the appropriate number of eyes at their proper locations. Each time the random number changes, the die adjusts accordingly.
    What you need to know
    Cell A1 has a formula that uses a volatile function called RAND. On each recalculation, this function generates a new random number between 0 and 1. Because we want numbers between 1 and 6, we need to multiply by 6, round the number down by using the INT function, and then add 1 to the end result. More in general: =INT((high-low+1)*RAND()+low).
    Users of Excel 2007 and later can also use the “easier” function RANDBETWEEN which has two arguments for the lower limit (in this case 1) and the upper limit (in this case 6). I decided not to use that function, because in pre-2007 Excel versions this function was only available through the Analysis Toolpak.
    To generate a new random number, you either hit the key F9 or the combination of the Shift key and the F9 key. In this file, I would recommend the latter option (Shift F9), since that would only recalculate the current sheet—otherwise you would recalculate all sheets in this file, which may take lots of calculating time.
    Finally, we need to regulate which eyes should pop up for each new random number. This is done inside some of the die cells by using the IF function. This function is a “decision maker,” which determines whether a specific eye should be on or off.
    What you need to do
  1. Type in cell A1: =INT(RAND()*6) + 1. In this case, the function RAND is “nested” inside the function INT (INT eliminates decimals). Nested functions are very common in Excel; for more information, see Appendix 2.
  2. Type in B3: =IF(A1>1,0,””). The two double quotes in the last argument return an empty string, showing up as nothing.
  3. Type in D3: =IF(A1>3,0,””).
  4. Type in B5: =IF(A1=6,0,””).
  5. Type in D5: =IF(A1=6,0,””).
  6. Type in B7: =IF(A1>3,0,””).
  7. Type in D7: =IF(A1>1,0,””).
  8. Type in C5: =IF(OR(A1=1,A1=3,A1=5),0,””). In this case, the function OR is nested inside IF. The function OR returns “true” if any of the enclosed arguments is “true.”
  9. If you want to see all formulas at once, hit Ctr ~ (the tilde can be found below the Esc key). This shortcut toggles the sheet, back and forth, between value-view and formula-view.
Chapter 2 Casting Six Dice
What the simulation does
Open file 1-Gambling.xlsx on sheet “6-Dices.” This time we have six different dice. Each die “listens” to a random number above it, to its left.
The settings for each die are similar to what we did in Simulation 1. The number of eyes for each die is plotted in a column chart below the dice.
A die that shows six eyes gets marked with a color. When there are at least 2 dice in a row with six eyes, all dice get marked at the same time.
What you need to know
There is not much new on this sheet. The main difference is that we need 6 different cells with a RAND function in order to control the...

Table of contents

  1. Gambling
  2. Chapter 2 Casting Six Dice
  3. Chapter 3 Frequencies
  4. Chapter 4 Roulette Machine
  5. Chapter 5 Gambler’s Ruin
  6. Chapter 6 Random Walk
  7. Chapter 7 Gambling Strategy
  8. Chapter 8 Cracking a Password
  9. Statistics
  10. Chapter 10 The Mean of Means
  11. Chapter 11 Sampling
  12. Chapter 12 The Normal Distribution
  13. Chapter 13 Normalizing
  14. Chapter 14 Repeats
  15. Chapter 15 Confidence Margins
  16. Chapter 16 Power Curves
  17. Chapter 17 Hidden Peaks
  18. Chapter 18 Sampling Sizes
  19. Chapter 19 Quality Control
  20. Genetics
  21. Chapter 21 Sex Determination
  22. Chapter 22 Radiation and Mutation
  23. Chapter 23 Mendel
  24. Chapter 24 Hardy-Weinberg Law
  25. Chapter 25 Genetic Drift
  26. Chapter 26 Lethal Homozygote
  27. Chapter 27 Reduced Vitality
  28. Chapter 28 Two Selective Forces
  29. Chapter 29 Balanced Equilibrium
  30. Chapter 30 Molecular Clock
  31. Chapter 31 DNA Sequencing
  32. Financial
  33. Chapter 33 Risk Analysis
  34. Chapter 34 Missing or Exceeding Targets
  35. Chapter 35 Two-Dimensional Filters
  36. Chapter 36 Scenarios
  37. Chapter 37 Moving Averages
  38. Chapter 38 Return on Investment
  39. Chapter 39 Employee Stock Options
  40. Chapter 40 Value at Risk
  41. Chapter 41 Asian Options
  42. Chapter 42 Black-Scholes Model
  43. Expansion
  44. Chapter 44 Extrapolation
  45. Chapter 45 Predator-Prey Cycle
  46. Chapter 46 Homeostasis
  47. Chapter 47 Taking Medication
  48. Chapter 48 Population Pyramid
  49. Chapter 49 Titration
  50. Chapter 50 EC50 Determination
  51. Chapter 51 Converter
  52. Chapter 52 Conditional Training
  53. Chapter 53 Epidemics
  54. Monte Carlo Simulations
  55. Chapter 55 Brownian Motion
  56. Chapter 56 A Traffic Situation
  57. Chapter 57 Uncertainties in Sales
  58. Chapter 58 Exchange Rate Fluctuations
  59. Chapter 59 Cost Estimates
  60. Chapter 60 Market Growth
  61. Chapter 61 Integration with Monte Carlo
  62. Iterations
  63. Chapter 63 Win or Lose?
  64. Chapter 64 Circular Gradients
  65. Chapter 65 Single-Cell Arrays
  66. Chapter 66 Data Management
  67. Chapter 67 Solving Equations
  68. Chapter 68 Least Squares Method
  69. Chapter 69 Combining Scenarios
  70. Chapter 70 Logistics
  71. Extras
  72. Chapter 72 Graph Manipulation
  73. Chapter 73 Detecting Outliers
  74. Chapter 74 False Positives
  75. Chapter 75 Probability of Beliefs
  76. Chapter 76 Unbiased Sampling
  77. Chapter 77 Numbering Records
  78. Chapter 78 Fiscal Year
  79. Chapter 79 Stock Market
  80. Chapter 80 Forecasting Temperatures
  81. Miscellanea
  82. Chapter 82 Graph Manipulation
  83. Chapter 83 Simulation of a Slot Machine
  84. Chapter 84 Letter Game
  85. Chapter 85 A Hawk-Dove Simulation
  86. Chapter 86 Flock Behavior
  87. Chapter 87 Simulation of Sick Cases
  88. Chapter 88 Ehrenfest’s Urn Simulation
  89. Chapter 89 Two Monte Carlo Integrations
  90. Chapter 90 Randomness in Gene Pools
  91. Chapter 91 Random Mating
  92. Chapter 92 Differences in Fitness
  93. Chapter 93 Loan Simulation
  94. Chapter 94 Stock Volatility
  95. Chapter 95 S&P 500 Performance
  96. Chapter 96 Scenario Risks
  97. Chapter 97 Temperature Fluctuations
  98. Chapter 98 Juror Selection
  99. Chapter 99 Waiting Time Simulation
  100. Chapter 100 Project Delays
  101. Appendices
  102. Nested functions
  103. What-If Tables
  104. Simulation Controls