Stat 2
Stat 2
- In this case study you are given a set of questions which needs to be answered
using your knowledge on statistics.
- For each question assign your answers to respective variables in the following
cells.
- Create a new notebook (will not be graded to try out your scripts ans assign the
- All the answers are expected to be rounded off to two decimal places.
- Once you assign your answers to variables in each cell run the cell to display
incorrect answers if any.
- Dont leave any variables unassigned.
- Dont edit the script ment for evaluation
- Once you are done with your solutions run all the cells (kernel -> Restart & run
all).
import numpy as np
import math
import scipy.stats
import dill
a_3 = round(np.percentile(X,25),2)
###For evaluation
ans_3 = {"a_3": a_3}
print(ans_3)
quiz.eval(3, ans_3)
4. Suppose a marble is randomly selected from a jar containing 12 red, 4 black, and
8 blue marbles. Find the probability of the following:
a. The marble is red or black
b. The marble is black or blue
c. The marble is not blue
d. The marble is red or not blue
5. Let A and B be events with P(A) = 0.2, P(B) = 0.8, and P(A ∩ B) = 0.1 Find the
following
a. $P(\bar B)$
b. $P(\bar A \cap \bar B)$
c. $P(\bar B \space | \space A)$
d. $P(\bar A \cap B)$
quiz.eval(5, ans_5)
7. 55% of all engineering students prefer internship over final year project.
Suppose 12 students are randomly selected and the number in favor of internship is
recorded. Find the following:
a. The probability that exactly seven of them choose internship.
b. The probability that at most eight of them choose internship.
c. The probability that at least five of them choose internship.
d. The probability that at least seven, but no more than 10, choose internship.
quiz.eval(7, ans_7)
8. Suppose the population variable X is N(3, 0.3) and n = 20. How large an interval
must be chosen so that the probability is 0.95 that the sample mean $\bar X$ lies
within ±a units of the population mean μ?
### Run the below cell to save your answers for final evaluation