Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Lab Note: The tools presented in this lab periodically change. Updated instructions, if applicable, can be found in the eBook and lab walkthrough videos in
Lab Note: The tools presented in this lab periodically change. Updated instructions, if applicable, can be found in the eBook and lab walkthrough videos in Connect.
Case Summary: After running diagnostic analysis on Dillards transactions, you have found that there is a statistically significant difference between the amount of money customers spend in online transactions versus inperson transactions. You decide to take this a step further and design a predictive model to help determine how much a customer will spend based on the transaction type online or inperson You will run a simple regression to create a predictive model using one explanatory variable in Part and in Part you will extend your analysis to add in an additional explanatory variabletender type the method of payment the customer chooses
Data: Dillards sales data are available only on the University of Arkansas Remote Desktop waltonlabuark.edu See your instructor for login credentials.
By the end of this lab, you will create a regression analysis. While your results will include different data values, your work should look similar to this:
The screenshot shows the header on the top reads Summary output. Two of the tables below it are labeled Regression statistics and ANOVA. Regression Statistics lists Multiple R R Square, Adjusted R Square, Standard Error, and Observation; ANOVA lists Regression, Residual, and total; and the last table lists Intercept and X Variable
:
x
Click here for full size Example Output.
Before you begin the lab, you should create a new blank Word document where you will record your screenshots and save it as Lab Your nameYour email addressdocx.
Dillards is trying to figure out when its customers spend more on individual transactions. We ask questions regarding how Dillards sells its products.
Microsoft Excel Power Query
From Microsoft Excel, click the Data tab on the ribbon.
Note: If you completed Lab you can edit the query from your Lab spreadsheet instead of starting from scratch. Skip Step below, and open your Lab spreadsheet instead. Click into your data, and a tab for Query will appear in the ribbon. From the Query tab, select Edit to open the Power Query editor. In Query Settings the pane to the right delete the Pivot step. Now you can proceed to step below.
Click Get Data From Database From SQL Server Database.
Server: essqlwalton.uark.edu
Database: WCOBDillards
Expand Advanced Options and input the following query:
SELECT
FROM TRANSACT
WHERE TRANDATE BETWEEN AND AND TRANAMT
Click OK
Click Edit or Transform Data.
Now that you have created a data connection, you can create new columns to isolate the online sales from the inperson sales. The online sales store ID is Unlike the way you performed this change to run a ttest, this time you only need to create the Conditional Column no need to Pivot the columns but you will name the variables and instead of online and inperson. This is because regression analysis requires all variables to be numeric.
From the Power Query ribbon, select Add Column, then Conditional Column.
Input the following in the Add Conditional Column window:
New column name: OnlineDummy
Column Name: STORE
Operator: equals
Value:
Output:
Otherwise:
Click OK
From the Power Query ribbon, select the Home tab and Close & Load.
Take a screenshot label it MA
Perform a regression analysis by performing the following steps:
Click on the Data Analysis button in the Data tab in the ribbon. If you do not have the Data Analysis ToolPak added in see Appendix C to learn how to add it to Excel.
Click Regression, and then click OK
Reference the cells that contain the TRANAMT in the Input Y Range and OnlineDummy in the Input X Range and then click OK Note: Regression Analysis does not accept null values, so it will not work to select the entire columns for your Y and X ranges. Be sure to select only the column label and the values; the values should extend to row
Take a screenshot label it MB of your results.
Save your file as Lab Dillards Regression.xlsx
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started