Mathematics and Statistics Lab
MAT 104
Student Name:
Registration No.
1
Scenario: Study Hours and Exam Performance Analysis
You are analyzing a dataset to understand how the amount of time students dedicates to studying affects
their performance on exams. This dataset tracks study hours (X) and exam scores (Y) for a sample of 10
students.
Dataset:
Hours of Study (X): [8, 12, 15, 20, 25, 28, 32, 35, 40, 45]
Exam Scores (Y): [60, 70, 75, 82, 88, 92, 95, 98, 105, 110]
Question:
1. Regression Analysis:
ulate the regression coefficient and derive the equations for regression lines Y on X. Document each
calculation step in your report.
2. Excel: Use Excel to calculate the regression line equation Y =a+bX
3. Visualization:
te a line plot visualizing the relationship between study hours and exam scores. Add observations based on
the plot, focusing on the trend indicated by the regression lines and the
significance of the regression coefficient.
Solution
2
Scenario: Sleep and Productivity Analysis
You are investigating the impact of sleep on productivity levels. This dataset captures the number of hours slept (X)
and corresponding productivity levels (Y) for a group of 10 participants.
Dataset:
Hours of Sleep (X): [7, 9, 8, 6, 5, 7, 8, 6, 5, 7]
Productivity Levels (Y): [65, 72, 70, 58, 50, 68, 71, 60, 52, 69]
Tasks:
4. Correlation Analysis:
ulate the correlation coefficient to quantify the relationship between hours of sleep and productivity levels.
Include step-by-step calculations in the report.
5. Excel Analysis:
Excel to calculate correlation coefficient. Create a scatter plot in Excel to visually represent the relationship
between sleep hours and productivity levels.
Solution
3
der the following data points of Marks obtained of 10 students of BSC ISM class
Data Points
12
18
25
30
35
35
45
50
60
70
Tasks:
6. Find the Mean, Mode, Median marks, Variance, and standard deviation of marks using Execl?
7. Find the first second and third quartile of the given marks using Excel?
8. Find the Interquartile range (IQR) using Excel?
4
following table represents the number of students who scored within specific marks intervals in an exam:
Class Interval Frequency
0-10 5
10-20 8
20-30 10
30-40 6
40-50 3
50-60 4
60-70 7
70-80 5
80-90 2
9. Calculate Mean using Excel for the given frequency distribution?
10. Calculate Mode using Excel for the given frequency distribution?
11. Calculate Median using Excel for the given frequency distribution?
12. Calculate Q1, Q2, Q3, and IQR using Excel for the given frequency distribution?
5
he following table shows the relationship between two variables, X and Y:
X Y
10 15
20 30
30 25
40 50
50 45
13. Calculate the correlation coefficient to determine the strength and direction of the relationship
between X and Y using excel.
14. Perform linear regression using excel to find the slope of the regression line and the intercept of
the regression line. Predict the value of Y when X=60.
15. Create a scatter plot of X and Y.