Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
