You are on page 1of 10

Introduction to Python

Ans:

As index [1] calls Akshay(Because indexes start from 0,1,2…n) and [-1] after that calls the first alphabet from the last
of ‘Akshay’.

Ans:

Ans:

None of the above


Ans:
Python for DS

Ans:

Ans:

Ans:
Data Visualisation

Ans: It lies between 0.6 and 0.8 . As we can see that blue box is indicating the condition of with air-
conditioning. So, in that boxplot the median clearly lies between 0.6-0.8.

Ans: Scatterplot
EDA

Ans: 91%. As the question asks for atleast once a week. So, clearly we have to take the count for girls playing
Everyday and Once a week. i.e 2886+1046=3932………………….. further 3932/4307=91.29% = approx. 91%

Ans: Both A and B.

As, scatterplots and Heatmaps both could be used to visualise two numeric variables against each other.
Coding

Ans:

In exam instead of using print(s) use return(s).

Ans:

In exam instead of using print(a) use return(a).


Inferential Statitics

Ans:

probability of more than 2 people from that college getting selected =

P(>2) = 1 – (probability of < or = 2 people from that college getting selected)

P(>2) = 1 - P(0)+P(1)+P(2)
P(>2) = 1 – (12C0*(0.25)^0 *(0.75)^12) + (12C1*(0.25)^1 *(0.75)^11) + (12C2*(0.25)^2 *(0.75)^10)
P(>2) = 1 – (0.0316) + (0.1266) + (0.2322)
P(>2) = 1 – (0.39)
P(>2) = 0.61 or 61%

Ans: X=4, P=3/7


The total expected value= 26/7
Let the missing value be x
26/7 = (1)*(1/7)+(3)*(2\7)+ x + (7)*(1/7)
26/7 = 14/7+ x
x = 12/7
which is possible with (4)*(3/7)
Ans: (5.835,6.165)
Hypothesis Testing

Ans:- Z-score for B would be 2 times than that of A.

Ans: 16.8% Fail to reject the null hypothesis.


Ans: 10.32 fail to reject the null hypothesis.

You might also like