Sample Essay On Using The Following Commands Two Graphs Were Generated.

Type of paper: Essay

Topic: Customers, Model, Information, Relationships, Chart, Economics, Theory, Issue

Pages: 2

Words: 550

Published: 2020/10/13

(a) Describe the economic issue
The economic issue under investigation is to determine whether there is a relationship between the number of customers and the total bill met by the company.
(b) Describe the data
The dataset is in CSV format. It contains 72 unique observations based on data collected from different cities. The dataset is made up of qualitative variables such as area and size. It is also made up of quantitative variables such as customer, OMandA and Total.Bill.
(c) Graphs

plot(OMandA~Customers, data=LDC);
plot(Total.Bill~Customers, data=LDC);
abline(lm(Total.Bill~Customers), data=LDC);
The first graph (chart 1) was a scatterplot showing the relationship between OMandA and customers. The second graph (chart 2) was a scatterplot showing the relationship between Total.Bill and customers. A regression line was added in order to show the direction of the relationship.

Chart 1:

Chart 2:
Chart 2:
(d) Describe your model
In order to investigate the economic problem posed above a linear regression model will be utilized. The regression model will involve the explanatory variables OMandA and customers while the independent variable to be used will be is Total Bill. The equation for the model to be used is:
Total Bill = c1 Customers + c2 Customers2 + c3OMandA + Constant
(e) State your hypotheses in terms of the model.

Ho: The regression model will show that there is a statistically significant relationship between total bill and number of customers

H1: The regression model will show that there is no statistically significant relationship between total bill and number of customers
(f) Present the regression results
The results of the regression model Total Bill = c1 Customers + c2 Customers2 + c3OMandA + Constant from R are as shown below:
(g) Interpret the regression results and state whether your hypotheses were supported by the data
The results of the regression model show that the explanatory variables can be used to predict the total bill as follows:
Total.Bill = 0.000015 (Customers) – 1.667 x 10-9(Customers2) + 0.004171 OMandA + 99.51

This results support the null hypothesis, which indicates that there is a significant causality between the dependent and explanatory variables.

(h) Draw conclusions
In conclusion, the data analysis indicates that the number of customers directly affects the total bill.

Work Cited:

Fox, J., Weisberg, S., & Fox, J. (2011). An R companion to applied regression. Thousand Oaks, Calif: SAGE Publications.

Cite this page
Choose cite format:
  • APA
  • MLA
  • Harvard
  • Vancouver
  • Chicago
  • ASA
  • IEEE
  • AMA
WePapers. (2020, October, 13) Sample Essay On Using The Following Commands Two Graphs Were Generated.. Retrieved November 22, 2024, from https://www.wepapers.com/samples/sample-essay-on-using-the-following-commands-two-graphs-were-generated/
"Sample Essay On Using The Following Commands Two Graphs Were Generated.." WePapers, 13 Oct. 2020, https://www.wepapers.com/samples/sample-essay-on-using-the-following-commands-two-graphs-were-generated/. Accessed 22 November 2024.
WePapers. 2020. Sample Essay On Using The Following Commands Two Graphs Were Generated.., viewed November 22 2024, <https://www.wepapers.com/samples/sample-essay-on-using-the-following-commands-two-graphs-were-generated/>
WePapers. Sample Essay On Using The Following Commands Two Graphs Were Generated.. [Internet]. October 2020. [Accessed November 22, 2024]. Available from: https://www.wepapers.com/samples/sample-essay-on-using-the-following-commands-two-graphs-were-generated/
"Sample Essay On Using The Following Commands Two Graphs Were Generated.." WePapers, Oct 13, 2020. Accessed November 22, 2024. https://www.wepapers.com/samples/sample-essay-on-using-the-following-commands-two-graphs-were-generated/
WePapers. 2020. "Sample Essay On Using The Following Commands Two Graphs Were Generated.." Free Essay Examples - WePapers.com. Retrieved November 22, 2024. (https://www.wepapers.com/samples/sample-essay-on-using-the-following-commands-two-graphs-were-generated/).
"Sample Essay On Using The Following Commands Two Graphs Were Generated.," Free Essay Examples - WePapers.com, 13-Oct-2020. [Online]. Available: https://www.wepapers.com/samples/sample-essay-on-using-the-following-commands-two-graphs-were-generated/. [Accessed: 22-Nov-2024].
Sample Essay On Using The Following Commands Two Graphs Were Generated.. Free Essay Examples - WePapers.com. https://www.wepapers.com/samples/sample-essay-on-using-the-following-commands-two-graphs-were-generated/. Published Oct 13, 2020. Accessed November 22, 2024.
Copy

Share with friends using:

Related Premium Essays
Other Pages
Contact us
Chat now