Professional Documents
Culture Documents
Prof. A Ramesh
Week 2 IIT Roorkee
● Week 1 questions
● Python concepts
Week 1 - questions
Linear regression
Time series analysis and forecasting
Bar Graphs
Data mining
Week 1 - questions
State true or False: Statement: Data can be numerical and categorical but cannot be continuous or
discrete
True
False
Week 1 - questions
Height
Year
Age
Weight
Week 1 - questions
What is the output from this print() function call: print( '$100 $200 $300'.count('$'), '$100 $200
$300'.count('$', 5, 10), '$100 $200 $300'.count('$', 5) )
310
311
312
313
State True or false: Statement: data can be generated by machines but not by humans.
True
False
Week 1 - questions
Consider the following statements- Statement A : With iloc, we can pass in the negative
value. Statement B : With loc, we can pass in the negative value.
A coin is thrown 3 times .what is the probability that atleast one head is obtained?
mn rule
Event 1 followed by event 2 they are not dependent on each other
{(H,H,H),(H,H,T),(H,T,H),(H,T,T),
(T,H,H), (T,H,T) (T, T, H), (T,T,T)} in total 2*2*2 = 8
Ans : 7/8
Questions
A coin is thrown 3 times .what is the probability that atleast one head is obtained?
Ans : 7/8
⅜ + ⅜ +⅛
Questions
There are 5 green 7 red balls. Two balls are selected one by one With replacement. Find the
probability that first is green and second is red.
5/12*7/12 =35/144
There are 5 green 7 red balls. Two balls are selected one by one Without replacement. Find the
probability that first is green and second is red.
5/12 * 7/11
Python
1. Mean
2. Median
3. Mode
4. Percentiles
5. Range
6. Inter-quartile range
7. Mean Absolute Deviation
8. Variance
9. Standard Deviation
10. Different plots
title