Optimizing Random Variates in Simulations for Basic Statistics Problems

  • Context: Undergrad 
  • Thread starter Thread starter CaptainP
  • Start date Start date
  • Tags Tags
    Random
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
CaptainP
Messages
11
Reaction score
0
Pretty theoretical question here. I was talking with one of my friends the other day about a basic statistics problem that utilizes random variates. The problem asked us to perform 20 simulations of the world series final using a U(0,1) distribution. One team was given a probability of winning a given game of .55, the other team .45, and the series is won best 4 out of 7. My friend would generate one variate at a time representing each game as it was played, so some of his simulations used just 4 variates while others used 5, 6, or 7. I generated an ordered set of 7 variates for every single simulation, and worked my way through them until a winner was determined, so some of the simulations did not utilize all of the variates generated for them. Is my method improper? Is there something wrong with "skipping" or "wasting" random variates like I did?
 
Physics news on Phys.org
I don't see a problem with unnecessary calculations. It might need more CPU time, but for those small numbers this is completely negligible.