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

Type of paper: Essay

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:
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.

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 July 03, 2022, 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 03 July 2022.
WePapers. 2020. Sample Essay On Using The Following Commands Two Graphs Were Generated.., viewed July 03 2022, <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 July 03, 2022]. 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 July 03, 2022. 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 July 03, 2022. (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: 03-Jul-2022].
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 July 03, 2022.
Copy

Share with friends using:

Please remember that this paper is open-access and other students can use it too.

If you need an original paper created exclusively for you, hire one of our brilliant writers!

GET UNIQUE PAPER

Some topics are tougher than others.
If these samples aren’t enough, order your unique customized essay from us.

It’s okay to ask for help!