Simple probability example
Versione 1.0.2 (1,94 KB) da
John Jendzurski
Example of using MATLAB to simulate a random variable/process and compare the simulated result to the theoretical answer.
Example problem 2.23 in "Probability and Statistics for Engineering and the Sciences, 5th Edition" by Jay Devore:
A rental car facility has 10 foreign cars and 15 domestic cars. If 6 cars are chosen at random, what is the probability that 3 of the cars are foreign and the other 3 cars are domestic?
Answer: 0.3083
Cita come
John Jendzurski (2026). Simple probability example (https://it.mathworks.com/matlabcentral/fileexchange/134806-simple-probability-example), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2023a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxTag
Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
