Simulating a probability, use a random number?

Click For Summary

Discussion Overview

The discussion revolves around simulating probabilities related to electric car charging availability and usage. Participants explore the methodology of using random numbers to model these probabilities in a simulation context.

Discussion Character

  • Exploratory, Technical explanation, Conceptual clarification

Main Points Raised

  • One participant proposes simulating a random number between 0 and 1 to determine if a charging point is available based on a 70% probability.
  • Another participant confirms that the proposed simulation method is correct.
  • A different participant seeks clarification on the statistical logic behind using random numbers to simulate events, providing a related example of a 60% probability for charging an electric car.
  • A subsequent reply reiterates that generating a random number less than the given probability effectively simulates the event's likelihood.

Areas of Agreement / Disagreement

Participants generally agree on the validity of using random numbers to simulate probabilities, but there is no consensus on the deeper statistical theory behind the method as one participant seeks further explanation.

Contextual Notes

The discussion does not delve into the underlying assumptions of the probabilities or the implications of using random number generation in simulations.

bradyj7
Messages
117
Reaction score
0
Hello,

I looking for some advice for a simulation. I know that when an electric car arrives at a destination there is a 70% chance that a charging point will be available. I'm building a model that models electric car journeys. When a car arrives at a destination would I simulate a random number between 0 and 1 and if it is less than 0.7 then a charging post is available or if it is greater than 0.7 then a charging post is not available. Would that make sense? I would appreciate any suggestions or comments.

Thank you
 
Physics news on Phys.org
Your description is exactly correct for the simulation.
 
Hello MAthman,

Could you perhaps explain the statistical logic/theory for simulating an event like this?

In an other example, I know the probability that somebody will recharge an electric car is 60%. So if I generate a random number and it is less than 0.6 then the person plugs in and consumes electricity. I'm interested to know the statistical logic behind the method.

Thanks for your time

J
 
60% of the time somebody charges an electric car.

60% of the time a (pseudo)-random number between 0 and 1 is less than 0.6.

So the latter is a good simulation of the former.
 

Similar threads

Replies
15
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
785
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K