Simulating a probability, use a random number?

AI Thread Summary
To simulate the availability of a charging point for electric cars, generating a random number between 0 and 1 is an effective method. If the random number is less than 0.7, it indicates that a charging point is available, reflecting the 70% probability. Similarly, for the probability of a person charging an electric car, a random number less than 0.6 signifies that the car is plugged in. This approach effectively models the probabilities involved in both scenarios. The statistical logic relies on the relationship between random number generation and the defined probabilities of events.
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.
 
I was reading documentation about the soundness and completeness of logic formal systems. Consider the following $$\vdash_S \phi$$ where ##S## is the proof-system making part the formal system and ##\phi## is a wff (well formed formula) of the formal language. Note the blank on left of the turnstile symbol ##\vdash_S##, as far as I can tell it actually represents the empty set. So what does it mean ? I guess it actually means ##\phi## is a theorem of the formal system, i.e. there is a...
Back
Top