0% found this document useful (0 votes)
19 views3 pages

Assignment 1

Assignment 1 stats in data science (comsats university islamabad)
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views3 pages

Assignment 1

Assignment 1 stats in data science (comsats university islamabad)
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

COMSATS University Islamabad (CUI)

Department of Computer Science


FALL 2024

Assignment No.1
Class: BSDS-4
Course: DSC-300-Statistical Methods in Data Science
Dated: October 03, 2024.
Submission Deadline: October 13, 2024.

CLO1: Perform descriptive and exploratory data analysis on given dataset.

In this assignment, you will have to perform EDA tasks on iris dataset. Details of tasks are given
below:

1. What is the average sepal length across all iris species?


2. How does the median petal width compare between Iris setosa and Iris virginica?
3. Which iris species has the highest mode sepal width?
4. Calculate the mean sepal length for each species of iris.
5. Compare the median sepal width between different species of iris.
6. Identify the modal value of petal length for Iris versicolor.
7. What is the mean sepal width of all iris samples combined?
8. Find the median petal width across all iris species.
9. Determine the most common petal length value among all iris samples.
10. Calculate the average sepal width for Iris setosa.
11. What is the range of petal length for Iris virginica?
12. Calculate the variance of sepal width for Iris versicolor.
13. Compare the standard deviation of petal width between Iris setosa and Iris versicolor.
14. Determine the range of sepal length across all iris species.
15. Compute the variance of petal length for each iris species.
16. Find the standard deviation of sepal width for Iris virginica.
17. Identify the range of petal width for Iris setosa.
18. Calculate the variance of sepal length for all iris samples combined.
19. Determine the standard deviation of petal length for Iris versicolor.
20. Compare the range of sepal width between Iris setosa and Iris virginica.
21. Is the sepal length distribution positively or negatively skewed for Iris setosa?
22. Determine the skewness of petal width distribution for Iris virginica.
23. Compare the skewness of sepal width distributions between different iris species.
24. Identify the skewness of petal length distribution for Iris versicolor.
25. Is the sepal width distribution symmetrical or skewed for Iris setosa?
26. Calculate the kurtosis of sepal length distribution for each iris species.
27. Determine the kurtosis of petal width distribution for Iris setosa.
Kurt_diff_iris_species_SL = data.groupby('Species') ['SepalLengthCm'].apply(lambda x: x.kurt())
28. Compare the kurtosis of sepal width distributions between Iris virginica and Iris versicolor.
29. Identify the kurtosis of petal length distribution for Iris virginica.
30. Calculate the overall kurtosis of sepal width for all iris samples combined.
31. What is the probability that a randomly selected flower from the iris dataset is of the setosa
species?
32. Given that a flower is from the virginica species, what is the probability that it has sepal width
greater than 3.5 cm?
33. If a flower is chosen randomly, what is the probability that it belongs to either the versicolor or
virginica species?
34. What is the probability that a randomly chosen flower has petal length between 4.5 cm and 5.5
cm, inclusive?
35. Given that a flower has sepal length less than 5.0 cm, what is the probability that it is from the
Alwasy remember than there are the two groups given in a question.
setosa species?
36. If a flower is chosen randomly, what is the probability that its sepal area (length * width) is greater
than 20 square cm?
37. What is the conditional probability that a flower is virginica given that it has petal width greater
than 2.0 cm?
38. If two flowers are chosen at random without replacement, what is the probability that both are of
the same species?
39. Given that a flower has sepal width less than 2.5 cm, what is the probability that it is either setosa
or versicolor?
40. What is the probability that the average sepal length of 10 randomly chosen flowers is greater
than 5.5 cm?
41. If a flower has petal length greater than 4.0 cm, what is the probability that it belongs to the
versicolor species?
42. What is the probability that a randomly chosen flower has sepal length greater than its sepal
width?
43. Given that a flower is from the setosa species, what is the probability that its petal length is less
than 2.0 cm?
44. If a flower has sepal area less than 15 square cm, what is the probability that it is not from the
setosa species?
45. What is the probability that a flower has sepal width within one standard deviation of the mean
sepal width of the dataset?
46. If a flower has sepal length between 5.5 cm and 6.5 cm, what is the probability that it is from the
virginica species?
47. What is the probability that a flower has petal width greater than its petal length?
48. Given that a flower has sepal length greater than 6.0 cm, what is the probability that it is either
versicolor or virginica?
49. If a flower has sepal width less than 3.0 cm, what is the probability that its petal width is less than
1.0 cm?
50. What is the probability that a randomly chosen flower has a sepal area between 10 and 20 square
cm, inclusive?
51. Given that a flower is from the versicolor species, what is the probability that its sepal width is
less than 2.5 cm?
52. If a flower has petal length less than 3.0 cm, what is the probability that it is not from the setosa
species?
53. What is the probability that the difference between sepal length and petal length of a randomly
chosen flower is less than 2.0 cm?
54. Given that a flower has petal width greater than 1.5 cm, what is the probability that it belongs to
the virginica species?
55. If a flower is chosen randomly, what is the probability that its petal area (length * width) is greater
than 5 square cm?

• Submission: Submit your completed Jupyter Notebook

You might also like