https://github.com/ramarav/python-for-probaility-african-institute-of-mathematical-sciences-
This repository is created in order to solve some proability assignment using python
https://github.com/ramarav/python-for-probaility-african-institute-of-mathematical-sciences-
probability-statistics python
Last synced: 7 months ago
JSON representation
This repository is created in order to solve some proability assignment using python
- Host: GitHub
- URL: https://github.com/ramarav/python-for-probaility-african-institute-of-mathematical-sciences-
- Owner: ramarav
- License: gpl-3.0
- Created: 2020-05-05T21:34:33.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-06T21:04:57.000Z (over 5 years ago)
- Last Synced: 2025-02-16T00:24:41.708Z (9 months ago)
- Topics: probability-statistics, python
- Language: Python
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Back in 2014, I came across a probability related worksheet expected to be solved by students of African Institute for Mathematical Sciences. They were expected to solve the problems using Python.
Here I would like to show you an attempt of solving those problems by a beginner.
Following is the actual assignment given to those students:
1. Suppose you have a fair six-sided die. Now suppose that you throw the die three times. What is the probability that you will get :
A. a 1 on the first throw, a 2 on the second throw, and a 3 on the third throw?
B. a 1, a 2, and a 3 in any order?
C. Three sixes?
2. Two dice are rolled. We define s as the sum of the values on the two faces.
A. What is the mean (expected value) of s?
B. What is the probability that s is even?
3. Find the probability of obtaining at least one 6 when 5 dice are thrown.
4. What is the probability of drawing an ace or a heart from a pack of 52 playing cards?
Box u = 1 contains 1 red ball and 3 black balls. Box u = 2 contains 1 red ball, 1 white ball, and 1 black ball. Box u = 3 contains 1 red ball and 1 black ball.
5. A box is chosen at random and one ball is drawn. What is the probability that the ball is red? Given that the ball is red, what are the probabilities that the chosen box was box u = 1, 2, 3?
6. Three identical skipping ropes are dropped in a heap. The six free ends of the ropes are picked up by three people—each person picks up one free end with his right hand and another free end with his left. Then they all step away from each other.
A. What is the probability that every person finds he is holding a single skipping rope?
B. What is the probability that the three people are joined in a single closed chain?
Detailed explanation can be found in my blog : http://electroniccad.blogspot.com/p/python.html