Assignment-Regression Analysis
Assignment-Regression Analysis
Assignment-Regression Analysis
Manish Lamsal
Table of Contents
List of Figures.........................................................................................................................3
List of Tables..........................................................................................................................4
1.3 Univariate Analysis for Hourly Cost of running a machine and Machine work
time 6
1.4 Univariate Analysis for Hourly Cost of running a machine and Age of Machine.8
1.5 Univariate Analysis for Price of running a machine and Machine Idle Time.......9
References.............................................................................................................................12
3
List of Figures
Figure 2: Univariate Analysis for Price of running a machine and Machine Work Time...............5
Figure 4: Univariate Analysis of Price of running a machine and Age of the Machine..................7
Figure 5: Univariate Analysis for Price of running a machine and Machine Idle Time................8
List of Tables
Regression Analysis is a simple and statistical method to understand and quantify the
relationship between two variables or more (Simplilearn, n.d.). It helps any business to estimate
and understand the impacts of one or more independent variable on a dependent variable.
Here, the data provided where is collected for 18 machine, and the data contains four
variables, Machine work time, Age of the machine, Machine Idle Time and Hourly Cost of
running a machine.
From table 1, we can see that there are three independent and one dependent variable.
The Independent variable or input in this analysis are Machine work time, Age of the machine,
Machine Idle Time and the one dependent variables is Price of running a machine.
6
Correlation Analysis can be defined as a measure to test strength correlation between two
variables (QuestionPro, n.d). From the figure above, we can see that price of running a machine
has strong positive correlation with two independent variables, Age of the machine and Machine
Idle time, with almost perfect correlation i.e. 0.93 and 0.95 respectively while remaining
Machine work time has almost no correlation with Machine work time, dependent variable.
1.3 Univariate Analysis for Hourly Cost of running a machine and Machine work time
Figure 2: Univariate Analysis for Price of running a machine and Machine Work Time
The upper moving graph shows the positive linear function as the machine work time
increases, the hourly cost of running the machine also increases, the graph displays univariate
By using the function above, if the machine work time is 30, then price of running a
machine would be $ 28.5 per hour. But from the table above, we can see the average error for the
given data is 54.25% which means the probability of the prediction is low.
8
1.4 Univariate Analysis for Hourly Cost of running a machine and Age of Machine
The figure shows the another positive linear function as the age of machine increases, the
price of running the machine also increases. The graph displays univariate regression function
i.e. Y=0.9722x+5.3795 which can be interrupted as Price of running a machine= 0.9722* Age
of Machine+5.3795 and the average error for given data is 13.65%, there is less chance of
Figure 4: Univariate Analysis of Price of running a machine and Age of the Machine
9
1.5 Univariate Analysis for Price of running a machine and Machine Idle Time
Figure 5: Univariate Analysis for Price of running a machine and Machine Idle Time
The figure above shows upper moving graph which means the another positive linear
function as the machine idle time increases, the price of running the machine also increases, the
graph displays univariate regression function i.e. y=5.0313x+7.5473 which can be interrupted as
Hourly Cost= 5.0313*Age of Machine +7.5473. Using this equation, we can figure out if the
machine idle time is 2, then price of running the machine is 17.51. The figure displays error of
all the observation and as well as average error for given data is 13.05% which means the
prediction is dependable.
10
Here, we can see that P-value of Machine work is greater than 5% or 0.05 which means
that the regression analysis is invalid. We have to redo the regression analysis without Machine
Work time.
Here, as per the figure 7, we can find that Final multivariate function is
Y=0.4172*X1+3.1236*X2+5.4739.
11
When the age of the machine is 15 and machine idle time is 10, then the Price of running
As Per the figure 7 has listed all the error for the observation and average error can be
seen as 10.61%. while the maximum and minimum error can be seen 69.37% and 0.87%
respectively.
12
References
Education. https://nces.ed.gov/nceskids/help/user_guide/graph/variables.asp
https://www.questionpro.com/features/correlation-analysis.html
https://www.simplilearn.com/tutorials/excel-tutorial/regression-analysis
13
Appendices