# Using The Following Commands Two Graphs Were Generated. Essays Example

Type of paper: Essay

Pages: 2

Words: 550

Published: 2020/11/18

## Assignment # 2

0.2 Assignment 2: Regression
(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 indirectly 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, November, 18) Using The Following Commands Two Graphs Were Generated. Essays Example. Retrieved September 29, 2023, from https://www.wepapers.com/samples/using-the-following-commands-two-graphs-were-generated-essays-example/
"Using The Following Commands Two Graphs Were Generated. Essays Example." WePapers, 18 Nov. 2020, https://www.wepapers.com/samples/using-the-following-commands-two-graphs-were-generated-essays-example/. Accessed 29 September 2023.
WePapers. 2020. Using The Following Commands Two Graphs Were Generated. Essays Example., viewed September 29 2023, <https://www.wepapers.com/samples/using-the-following-commands-two-graphs-were-generated-essays-example/>
WePapers. Using The Following Commands Two Graphs Were Generated. Essays Example. [Internet]. November 2020. [Accessed September 29, 2023]. Available from: https://www.wepapers.com/samples/using-the-following-commands-two-graphs-were-generated-essays-example/
"Using The Following Commands Two Graphs Were Generated. Essays Example." WePapers, Nov 18, 2020. Accessed September 29, 2023. https://www.wepapers.com/samples/using-the-following-commands-two-graphs-were-generated-essays-example/
WePapers. 2020. "Using The Following Commands Two Graphs Were Generated. Essays Example." Free Essay Examples - WePapers.com. Retrieved September 29, 2023. (https://www.wepapers.com/samples/using-the-following-commands-two-graphs-were-generated-essays-example/).
"Using The Following Commands Two Graphs Were Generated. Essays Example," Free Essay Examples - WePapers.com, 18-Nov-2020. [Online]. Available: https://www.wepapers.com/samples/using-the-following-commands-two-graphs-were-generated-essays-example/. [Accessed: 29-Sep-2023].
Using The Following Commands Two Graphs Were Generated. Essays Example. Free Essay Examples - WePapers.com. https://www.wepapers.com/samples/using-the-following-commands-two-graphs-were-generated-essays-example/. Published Nov 18, 2020. Accessed September 29, 2023.
Copy

Share with friends using: