Professional Documents
Culture Documents
Lab 2 - DS
Lab 2 - DS
2. There are three urns A, B and C. Urn A contains 4 red balls and 3 black balls.
Urn B contain 5 red balls and 4 black balls. Urn C contains 4 red and 4 black balls.
One ball is drawn from each of these urns. Write a python code to find the probability
that 3 balls drawn consist of 2 red ball and 1 black ball.
3) For the data points [1, 2.5, 4, 8, 28], write a Python code without importing
libraries to calculate the central tendency: a) mean b) median c) mode
i)Explore the relationship between the variables sepal length and sepal width
and also between petal length and petal width using scatter plot and explain
the inferences observed.