Professional Documents
Culture Documents
Student id:
Course name:
1
Contents
Introduction................................................................................................................................3
Que 1..........................................................................................................................................3
Que 2..........................................................................................................................................4
Que 3..........................................................................................................................................5
Que 4..........................................................................................................................................7
Conclusion................................................................................................................................11
References:...............................................................................................................................11
2
Introduction
In this assignment, data regarding the number of hours a person sleeps a day will be
considered. The data set will include the values of sleeping hours each day for 10 consecutive
days. Using this data, various statistical calculations will be performed such as calculating the
mean, range, median, standard deviation, and mode of the data. The report will also include
the calculation of the missing values in the linear forecasting model which will be used to
predict future outcomes.
Que 1.
Data: 6, 7, 4, 6, 5, 8, 10, 3, 11, 6
Table Format:
Days Hours
1 6
2 7
3 4
4 6
5 5
6 8
7 10
8 3
9 11
10 6
3
Que 2.
Line chart:
4
Que 3.
I. Mean
Mean is always used to find out the average of dataset.
Mean is used to calculate the central value of the dataset.
Steps:
At first calculate the sum of numbers and then we will divide it by total
numbers in dataset.
Mean = (6 + 7 + 4 + 6 + 5 + 8 + 10 + 3 + 11 + 6)/10
=66/10
Mean = 6.6
II. Median
It is the mid value of the dataset.
Median is the number which is halfway to the dataset.
We will rearrange the values in ascending order first:
3, 4, 5, 6, 6, 6, 7, 8, 10, 11
Median= (6+6)/2
= (12)/2
Median = 6
III. Mode
Mode = maximum occurred number.
The number which occurred maximum time in the dataset.
Mode = 6
IV. Range
Range is the difference between the maximum value of the dataset and the
minimum value of the dataset.
5
Range =Max value – Min value
Min value = 3
Max value = 11
Range = 11 – 3
Range = 8
V. Standard Deviation
Standard deviation: Measure of dispersion relative to mean.
When the number are close from the mean then the standard deviation is low.
And when the number are far from the mean then the standard deviation is
high.
6
Find sum:
∑( x - Mean )2 = 56.4
Standard deviation:
Standard deviation = √ { (X - Mean)2 / N }
Standard deviation = √ (56.4 / 10)
Standard deviation = 2.3749
Que 4.
Data set x = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
X Y XY X2
1 6 6 1
2 7 14 4
3 4 12 9
4 6 24 16
5 5 25 25
6 8 48 36
7 10 70 49
8 3 24 64
9 11 99 81
10 6 60 100
∑X = 55 ∑Y = 66 ∑XY = 382 ∑X2 = 385
7
I. Show the steps of calculation of m value and discuss the answer.
195
m=
825
m = 0.2303
II. Show the steps of calculation of c value and discuss the answer.
c = intercept
∑ y−m(∑ x )
c=
n
66−0.2303× 55
c=
10
c = 5.3333
III. Using the calculated 'm' and 'c' values, forecast the number of hours of sleep for
day 11 and day 15.
Y = 5.3333 + 0.2303 x
8
When X = 11
Y =?
Y = 5.3333 + 0.2303 x
Y = 5.3333 + 0.2303*11
Y = 7.8666
Hours of sleep = 7.8666
Y = 5.3333 + 0.2303 x
When X = 15
Y =?
Y = 5.3333 + 0.2303 x
Y = 5.3333 + 0.2303*15
Y = 8.7878
Hours of sleep = 8.7878
9
Conclusion
The report presents step by step process of calculation of various statistical operations such as
mean, range, median, standard deviation, and mode of the data. The report also presents the
calculation of the linear forecasting model which is used to predict the future outcomes of the
required days. All the results are highlighted in bold so that they could be identified easily.
References:
10