This project is intended only for training and learning to solve probabilistic issues using the Python language.
The project was simple and not very good in terms of codes, files, etc... Where the project was basically just about providing solutions without using that much code (the project was just one file), But I decided to incorporate the things and additions that I learned myself through my scientific and training experience in this project so that it is more advanced.
- Python 3.11.2
- YAML 6.0.1
To run this project:
- install dependencies run
make install
ormake i
- run main file
make run
or by using code editor such as Pycharm or Visual Studio Code
Suppose a random variable Y represent number of successes in the three math exams, (Y is a binomial random variable with n=3). A student pass an exam when his/her mark is greater or equal to 50.
a) Compute probability of success (p).
b) Compute probability of every value of the random variable Y.
Assume a random variable X that defines the Gender of a student. We define a success when the student is a 'female'.
a) Compute the probability of success using the data.
b) Write a function that computes the probability of a bernoulli random variable.
c) Plot the distribution of the random variable X.
Write a function that predicts the student mark given (Gender, Parent education, Test preparation).
-
The historical data as a list of dictionaries.
-
Information of the unseen student as a dictionary.
The predicted mark for that student, (The predicted mark is the mark with the maximum conditional probability).