You are on page 1of 10

Name

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:

Scatter plot: Represent two different numeric variables on a plot.

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

Middle numbers are (6, 6)

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.

Day Hours(X) Mean (X - Mean) (X - Mean)2


1 6 6.6 -0.6 0.36
2 7 6.6 0.4 0.16
3 4 6.6 -2.6 6.76
4 6 6.6 -0.6 0.36
5 5 6.6 -1.6 2.56
6 8 6.6 1.4 1.96
7 10 6.6 3.4 11.56
8 3 6.6 -3.6 12.96
9 11 6.6 4.4 19.36
10 6 6.6 -0.6 0.36

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

Data set y = 6, 7, 4, 6, 5, 8, 10, 3, 11, 6


Total number of elements = 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.

n(∑ xy )−(∑ x)(∑ y )


m=
n( ∑ x ²)−(∑ x) ²

10× 382−55 ×66


m=
10 ×(385)−(55)²

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

Regression equation = Intercept + Slope x


Y = 5.3333 + 0.2303 x

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:

Catherine, S., 2020. [Online] Study. Available at: <https://study.com/academy/lesson/data-


analysis-mean-median-mode-and-range.html> [Accessed 22 May 2020].
Dong, Q., Sun, Y. and Li, P., 2017. A novel forecasting model based on a hybrid processing
strategy and an optimized local linear fuzzy neural network to make wind power forecasting:
A case study of wind farms in China. Renewable Energy, 102, pp.241-257.
Mathsisfun, 2020. Standard Deviation And Variance. [Online] Mathsisfun.com. Available at:
<https://www.mathsisfun.com/data/standard-deviation.html> [Accessed 22 May 2020].

10

You might also like