Simulation is the imitation of some real thing, state of affairs, or process. The act of simulating something generally entails representing certain key characteristics or behaviours of a selected physical or abstract system.
2
votes
1answer
92 views
Is this an elegant/accurate simulation of the Monty Hall problem?
I'm trying to simulate the Monty Hall problem, to statistically determine if there is any benefit to changing my choice after a door containing a goat is open (testing this guy's Monty Hall theory on ...
1
vote
0answers
151 views
Python Code Review, Inventory Simulation using Pandas Dataframe
I've been learning python like for a year and started learning a little about pandas DataFrame. I made this little program to practice all the concepts and would like to hear your suggestions for ...
7
votes
1answer
244 views
Haskell Particle Simulation
I recently started learning Haskell and as my first project I decided to port a particle simulation I had written in C.
The simulation is pretty simple. We have a cubic box with particles (spheres) ...
3
votes
1answer
108 views
Please review my statistical simulation to help me improve my C
I've written the following program as a submission to the German Federal Computer Science Competition for highschool students. The program makes the following simulation with a given number of days ...
2
votes
0answers
113 views
Speed up a monte carlo simulation with nested loop
I would like to know if there is a more efficiency way to speed up below code. It uses a procedure where subsampling is required in the nested loop (which a previous answer ...
1
vote
0answers
112 views
Review: C++ Algo - Function
See Review: C++ Algo - Style
I'm looking for a review of the function of this code, answers to the above question which also describes the code use focus on style instead.
Below is the updated code ...
5
votes
2answers
206 views
Review: C++ Algo - Style
Can this code be reviewed?
I've updated this question to be about code style only, as all of its answered focused on this aspect. For the codes function, see Review: C++ Algo - Function
'algo' is an ...
3
votes
1answer
349 views
Baseball game state class in python looking for feedback
So far, this is just a class that tracks the state of a baseball game. Unfortunately, I can't tell you for sure what the next step is. It might be a an interactive playable baseball game, or a game ...
1
vote
1answer
49 views
Is there a more efficient way to simulate in R, by exposition factor, gender and disease profile?
I started working with R recently and need to do a simulation for 100 000 people that
divides them in exposition factor for a disease, gender and presence or absence of
disease.
My background info is ...
4
votes
2answers
321 views
Discrete event simulation with variable intervals
I've built a discrete event simulation system, similar to the bank problem presented on the wikipedia page but with a key difference.
Let's say, that a TELLER can service two CUSTOMERS at the same ...