1.
i) Creating a dataframe from dictionary of ndarray/lists perform basic operations on rows/columns
like selecting, deleting, adding, and renaming using pandas.
ii) Write a pandas program to sort the dataframe first by 'name' in descending order, then by 'score'
in ascending order.
2. i) Write a pandas program to select the rows where the number of attempts in the examination
is greater than 2.
ii) Write a pandas program to append a new row ‘k’ to dataframe with given values for each
column. Now delete the new row and return the original dataframe.
3. i) Write a python program to change the vertical spacing between legend entries in Matplotlib?
ii) Write a python program to change the color of a graph plot in matplotlib using dataset csv.
4. Create a figure of size 15 x 8 with two subplots, top and bottom. Draw two lines in the top axes, one
green and one orange. Add a legend for the top plot, Green and Orange. Put this legend in the top-
middle of graph using matplotlib.
5. Draw the frequency distribution table and frequency distribution curve for the following data:
2, 3, 1, 4, 2, 2, 3, 1, 4, 4, 4, 2, 2, 2
Page 1 of 4
6. The table below gives the values of runs scored by Virat Kohli in last 25 T-20 matches. Represent
the data in the form of less than type cumulative frequency distribution:
45 34 50 75 22
56 63 70 49 33
0 8 14 39 86
92 88 70 56 50
57 45 42 12 39
Draw the cumulative frequency distribution table in the form of cumulative frequency distribution
line curve
7. Write a python program calculate the probability under a normal curve for normal distribution in
statistics.
8. Analysis Correlation and scatterplot is a type of graph with data points representing a relationship
between two quantities. For example, the following table contains points on a graph:
x y
1 2
1.5 3
2 5
2.5 7
3 10
3.5 12
4 13
4.5 14
5 18
5.5 20
On a graph, the table would be plotted as (x,y) points with the first column being the x values and
the second column being the y values.
Page 2 of 4
9. Write a python code to calculate a Pearson ccorrelation coefficients any statistical data using numpy
and shows the data points for correlation coefficients using matplotlib.
10. Write a python program to implement a simple linear regression. To find a linear function that
predicts the response value(y) as accurately as possible as a function of the feature or independent
variable(x). Let us consider a dataset where we have a value of response y for every feature x. Find
the coefficient and value show in graph using matplotlib.
x 0 1 2 3 4 5 6 7 8 9
y 1 3 2 5 7 8 8 9 10 12
11. Write a python program to implement a multiple linear regression to find the Coefficient, Variance
score and plot for residual error.
12. (i) Evaluate the Data Distribution to formulate hypothesis and calculate Z-Test Statistics with One-
Sample using Pandas and SciPy.
(ii) Write a Python program to implement Independent T-Test on the two independent samples
using NumPy
13. (i) Write a Python Program to implement T-Test on a sample of ages using NumPy.
ages = [45, 89, 23, 46, 12, 69, 45, 24, 34, 67]
(ii) Evaluate the Data Distribution to formulate hypothesis and calculate Z-Test Statistics with
Two-Sample using Pandas and SciPy.
14. (i) Write a python program to perform a T-Test to determine whether the mean of a population is
equal to some value or not using SciPy.
(ii) Create a dummy age data for the population of voters to test whether the average age of voters
Minnesota differs from the population using SciPy.
15. (i) Write a Python program to find the null hypothesis or alternate hypothesis using ANOVA.
(ii) Write a Python program to perform Two-way F-test using ANOVA.
16. (i) Write a Python program to implement One-way F-test using ANOVA.
(ii) Create an average mark for 3 colleges and find the F-Score for the same with its Statistics and
PValue.
Page 3 of 4
17. Develop a python program for basics implementation of building and validating linear models using
a matplotlib.
18. Develop a python program for basics implementation building and validating logistic models using
a matplotlib.
19. Write a python program to analyze the time series data to read the airline passenger data into a data
frame using pandas and generate a time series plot using Seaborn and Matplotlib.
20. (i) Write a python program to analyze the time series on data set with Test Statistics, critical value,
rolling mean and pvalue and plot the same using matplotlib.
(ii) Write a python Program to analyze the time series on data set with Rolling mean and pvalue and
plot the same using matplotlib.
Page 4 of 4