Answered step by step
Verified Expert Solution
Question
1 Approved Answer
There 3 DataFrames: ( customer id age 0 1 1 4 9 7 1 . 0 1 7 5 0 2 1 . 0 2
There
DataFrames:
customer id age
rows x columns
customerid date shopid totalprice
NaN
NaN
NaN
NaN
NaN
rows x columns
shopid offerbegin offerend
NaN NaN
NaN NaN
rows x columns
Do people tend to spend more money when they make a purchase during a special offer? Let's check it
First of all, we know that during December people spend more money in shops due to holidays and at the time shops usually announce more special offers during December. As we are interested in the effect of special offers alone, let us remove all purchases that happened during December.
Then create a table which rows are customers that contains two columns: in one column we have average of all prices of purchases that were made during special offers, and in the second the same for purchases that were not made during special offers. Drop all rows that contain NaN's. Then apply an appropriate statistical test to check if there is any statistically significant difference between these columns. Use twosided alternative.
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