1. Dataframes
- Create a dataframe for the given data
Emp Id: 1 2 3 4 5 6 7
Sex : M F F M F F M
Salary: 50 52 45 48 55 43 60 (in thousands)
Find the summary statistics.
Generate 20 random values incremented by 3.
For a Binomial(7, 1/4) named X,
- Compute Probability of two success
- Compute Probability of whole space
- Display probabilities in a table
- Determine Shape of this binomial distribution
4. English Quiz
Suppose there are 12 MCQ in a english quiz, where each question has 5 options. Find probability of the student getting 4 or less correct answers if he/she attempts all questions randomly.
Find Expectation and variance of X = [0, 1, 2, 3] p = [1/8, 3/8, 3/8, 1/8]
Create a matrix with 3 rows and 4 columns (values arbitrary)