SlideShare a Scribd company logo
Think stats: chi square test
in digital analytics
Chi-Square Test for independence FTW!!11one
Pawel Kapuscinski
pawel@databall.co
@aliendeg
Chi-square test use cases
Is gender a factor in color preference of a car?
Comparing the number of sales from the test experience vs the control
experience (A/B test or A/B/n)
Comparing sales revenues of each product before and after the change in
strategy
Is country a factor in pricing plan preference?
Is weather a factor in sales of different products?
Implementing the chi square test
1. Identify the two variables of interest from the data table
2. State hypothesis
3. Compute Margin summations
4. Build contingency table
5. Compute the observed chi-square value
6. Compare the observed value to critical value
IMPORTANT: Requirements for chi squared test
The variables under study are each categorical. If sample data are displayed in a
Hypothesis testing steps
1. State null (H0) and alternative (H1) hypothesis
2. Choose level of significance
3. Find critical values
4. Find test statistic
5. Draw your conclusion
Chi squared distribution plots
Dataset - pricing plans sold across world
Sold plans
Professional Team Business Enterprise
USA 1220 790 500 190
UK 950 590 200 120
Germany 880 420 320 70
Sweden 340 260 130 60
Belgium 290 190 110 80
Poland 910 290 190 40
Spain 250 320 220 50
Hypothesis
H0: Number of sales of each pricing plan is independent upon country
H1: Number of sales of each pricing plan is dependent upon country
Finding test statistics (manually, Excel and R)
Find critical value
(https://www.ma.utexas.edu/users/davis/375/popecol/tables/chisq.html)
Compute Margin summations
Summing rows and columns
Build contingency table
Compute the observed chi-square value
Finding test statistics - results
R code
df = data.frame(Prof= c(152,118,110,42,36,113,31),
Team = c(98,73,52,32,23,36,40),
Business = c(62,25,40,16,13,23,27),
Enterprise = c(23,15,8,7,10,6,6))
chisq.test(df)
Drawing conclusion
We can reject hypothesis zero (H0) and
accept H1. Number of sales of each pricing
plan is dependent upon country
Learn more
http://stats.stackexchange.com
www.analyticsvidhya.com
www.dartistics.com
Measure Slack - http://join.measure.chat
Assignment / homework
Transactions
mobile desktop tablet
Direct 3490028 538101 526095
Paid Search 1229227 214050 210811
Organic Search 862144 401720 193064
Referral 228352 129927 39693
Affiliates 38669 31947 12523
Email 35681 14284 6615
Social 9013 5196 2070
Display 231 171 47
(Other) 58 82 36
Questions?

More Related Content

What's hot

Indirect cost elcir
Indirect cost elcirIndirect cost elcir
Indirect cost elcir
naji maalouf
 
Examplelf flowchart
Examplelf flowchartExamplelf flowchart
Examplelf flowchart
Ankit Dubey
 
Excel - Vloopup, Averageif , Countif, Index and Sumif
Excel - Vloopup, Averageif , Countif, Index and SumifExcel - Vloopup, Averageif , Countif, Index and Sumif
Excel - Vloopup, Averageif , Countif, Index and Sumif
VIVEKRAJ546946
 
Financial modeling & coding
Financial modeling  & coding Financial modeling  & coding
Financial modeling & coding
Johnsmith5188
 
5 creating a_histogram
5 creating a_histogram5 creating a_histogram
5 creating a_histogramMedia4math
 
Bis 155 Exceptional Education / snaptutorial.com
Bis 155 Exceptional Education / snaptutorial.comBis 155 Exceptional Education / snaptutorial.com
Bis 155 Exceptional Education / snaptutorial.com
Davis142
 
[Question Paper] Visual Basic – 6 (Old Syllabus) [April / 2014]
[Question Paper] Visual Basic – 6 (Old Syllabus) [April / 2014][Question Paper] Visual Basic – 6 (Old Syllabus) [April / 2014]
[Question Paper] Visual Basic – 6 (Old Syllabus) [April / 2014]
Mumbai B.Sc.IT Study
 
Using line-based Voronoi cells in GIS
Using line-based Voronoi cells in GISUsing line-based Voronoi cells in GIS
Using line-based Voronoi cells in GIS
Fabien Ancelin
 

What's hot (8)

Indirect cost elcir
Indirect cost elcirIndirect cost elcir
Indirect cost elcir
 
Examplelf flowchart
Examplelf flowchartExamplelf flowchart
Examplelf flowchart
 
Excel - Vloopup, Averageif , Countif, Index and Sumif
Excel - Vloopup, Averageif , Countif, Index and SumifExcel - Vloopup, Averageif , Countif, Index and Sumif
Excel - Vloopup, Averageif , Countif, Index and Sumif
 
Financial modeling & coding
Financial modeling  & coding Financial modeling  & coding
Financial modeling & coding
 
5 creating a_histogram
5 creating a_histogram5 creating a_histogram
5 creating a_histogram
 
Bis 155 Exceptional Education / snaptutorial.com
Bis 155 Exceptional Education / snaptutorial.comBis 155 Exceptional Education / snaptutorial.com
Bis 155 Exceptional Education / snaptutorial.com
 
[Question Paper] Visual Basic – 6 (Old Syllabus) [April / 2014]
[Question Paper] Visual Basic – 6 (Old Syllabus) [April / 2014][Question Paper] Visual Basic – 6 (Old Syllabus) [April / 2014]
[Question Paper] Visual Basic – 6 (Old Syllabus) [April / 2014]
 
Using line-based Voronoi cells in GIS
Using line-based Voronoi cells in GISUsing line-based Voronoi cells in GIS
Using line-based Voronoi cells in GIS
 

Viewers also liked

You Don't Have to Be a Data Scientist to Do Data Science
You Don't Have to Be a Data Scientist to Do Data ScienceYou Don't Have to Be a Data Scientist to Do Data Science
You Don't Have to Be a Data Scientist to Do Data Science
Carmen Mardiros
 
Phils Session cards @ Measurecamp
Phils Session cards @ MeasurecampPhils Session cards @ Measurecamp
Phils Session cards @ Measurecamp
Phil Pearce
 
Plan a Digital Analytics Training Strategy for an Analytics Agency
Plan a Digital Analytics Training Strategy for an Analytics AgencyPlan a Digital Analytics Training Strategy for an Analytics Agency
Plan a Digital Analytics Training Strategy for an Analytics Agency
Phil Pearce
 
Morphing GA into an Affiliate Analytics Monster
Morphing GA into an Affiliate Analytics MonsterMorphing GA into an Affiliate Analytics Monster
Morphing GA into an Affiliate Analytics Monster
Phil Pearce
 
Top 10 Google Analytics tips to save you money!
Top 10 Google Analytics tips to save you money!Top 10 Google Analytics tips to save you money!
Top 10 Google Analytics tips to save you money!
Phil Pearce
 
Measurecamp 6 session: Effective Customer Feedback & Measurement Frameworks
Measurecamp 6 session: Effective Customer Feedback & Measurement FrameworksMeasurecamp 6 session: Effective Customer Feedback & Measurement Frameworks
Measurecamp 6 session: Effective Customer Feedback & Measurement Frameworks
Sean Burton
 
4 clicks 2 Measurement - Analytics Automation @ SuperWeek
4 clicks 2 Measurement - Analytics Automation @ SuperWeek4 clicks 2 Measurement - Analytics Automation @ SuperWeek
4 clicks 2 Measurement - Analytics Automation @ SuperWeek
Phil Pearce
 
Measure camp pres 5 cro myths
Measure camp pres   5 cro mythsMeasure camp pres   5 cro myths
Measure camp pres 5 cro myths
Amrdeep Athwal (L.I.O.N)
 
User-Centric Analytics (MeasureCamp Talk)
User-Centric Analytics (MeasureCamp Talk)User-Centric Analytics (MeasureCamp Talk)
User-Centric Analytics (MeasureCamp Talk)
Taste Medio
 
Superweek 2015 traffic attribution
Superweek 2015 traffic attributionSuperweek 2015 traffic attribution
Superweek 2015 traffic attribution
Jacob Kildebogaard
 
Google Data Studio - First impressions @ Measurecamp
Google Data Studio - First impressions @ MeasurecampGoogle Data Studio - First impressions @ Measurecamp
Google Data Studio - First impressions @ Measurecamp
Phil Pearce
 
31 Ways To Destroy Your Google Analytics Implementation
31 Ways To Destroy Your Google Analytics Implementation31 Ways To Destroy Your Google Analytics Implementation
31 Ways To Destroy Your Google Analytics Implementation
Charles Meaden
 
How to Become a Thought Leader in Your Niche
How to Become a Thought Leader in Your NicheHow to Become a Thought Leader in Your Niche
How to Become a Thought Leader in Your Niche
Leslie Samuel
 
Brand Management Training Program
Brand Management Training ProgramBrand Management Training Program
Brand Management Training Program
Beloved Brands Inc.
 
SlideShare 101
SlideShare 101SlideShare 101
SlideShare 101
Amit Ranjan
 
Web Analytics Project Brief: How to MOBILIZE and ENERGIZE your analytics team
Web Analytics Project Brief: How to MOBILIZE and ENERGIZE your analytics teamWeb Analytics Project Brief: How to MOBILIZE and ENERGIZE your analytics team
Web Analytics Project Brief: How to MOBILIZE and ENERGIZE your analytics team
Rachelle Maisner
 
Proactive Measures for Good Site Health - Brighton SEO 2014
Proactive Measures for Good Site Health - Brighton SEO 2014Proactive Measures for Good Site Health - Brighton SEO 2014
Proactive Measures for Good Site Health - Brighton SEO 2014
Thomas Whittam
 
MeasureCamp London - Using enhanced ecommerce for non-ecommerce websites
MeasureCamp London - Using enhanced ecommerce for non-ecommerce websitesMeasureCamp London - Using enhanced ecommerce for non-ecommerce websites
MeasureCamp London - Using enhanced ecommerce for non-ecommerce websites
Yard
 
The Lego Data Layer
The Lego Data LayerThe Lego Data Layer
The Lego Data Layer
Carmen Mardiros
 
A study of digital data about yourself - By Phil Pearce
A study of digital data about yourself - By Phil PearceA study of digital data about yourself - By Phil Pearce
A study of digital data about yourself - By Phil Pearce
Phil Pearce
 

Viewers also liked (20)

You Don't Have to Be a Data Scientist to Do Data Science
You Don't Have to Be a Data Scientist to Do Data ScienceYou Don't Have to Be a Data Scientist to Do Data Science
You Don't Have to Be a Data Scientist to Do Data Science
 
Phils Session cards @ Measurecamp
Phils Session cards @ MeasurecampPhils Session cards @ Measurecamp
Phils Session cards @ Measurecamp
 
Plan a Digital Analytics Training Strategy for an Analytics Agency
Plan a Digital Analytics Training Strategy for an Analytics AgencyPlan a Digital Analytics Training Strategy for an Analytics Agency
Plan a Digital Analytics Training Strategy for an Analytics Agency
 
Morphing GA into an Affiliate Analytics Monster
Morphing GA into an Affiliate Analytics MonsterMorphing GA into an Affiliate Analytics Monster
Morphing GA into an Affiliate Analytics Monster
 
Top 10 Google Analytics tips to save you money!
Top 10 Google Analytics tips to save you money!Top 10 Google Analytics tips to save you money!
Top 10 Google Analytics tips to save you money!
 
Measurecamp 6 session: Effective Customer Feedback & Measurement Frameworks
Measurecamp 6 session: Effective Customer Feedback & Measurement FrameworksMeasurecamp 6 session: Effective Customer Feedback & Measurement Frameworks
Measurecamp 6 session: Effective Customer Feedback & Measurement Frameworks
 
4 clicks 2 Measurement - Analytics Automation @ SuperWeek
4 clicks 2 Measurement - Analytics Automation @ SuperWeek4 clicks 2 Measurement - Analytics Automation @ SuperWeek
4 clicks 2 Measurement - Analytics Automation @ SuperWeek
 
Measure camp pres 5 cro myths
Measure camp pres   5 cro mythsMeasure camp pres   5 cro myths
Measure camp pres 5 cro myths
 
User-Centric Analytics (MeasureCamp Talk)
User-Centric Analytics (MeasureCamp Talk)User-Centric Analytics (MeasureCamp Talk)
User-Centric Analytics (MeasureCamp Talk)
 
Superweek 2015 traffic attribution
Superweek 2015 traffic attributionSuperweek 2015 traffic attribution
Superweek 2015 traffic attribution
 
Google Data Studio - First impressions @ Measurecamp
Google Data Studio - First impressions @ MeasurecampGoogle Data Studio - First impressions @ Measurecamp
Google Data Studio - First impressions @ Measurecamp
 
31 Ways To Destroy Your Google Analytics Implementation
31 Ways To Destroy Your Google Analytics Implementation31 Ways To Destroy Your Google Analytics Implementation
31 Ways To Destroy Your Google Analytics Implementation
 
How to Become a Thought Leader in Your Niche
How to Become a Thought Leader in Your NicheHow to Become a Thought Leader in Your Niche
How to Become a Thought Leader in Your Niche
 
Brand Management Training Program
Brand Management Training ProgramBrand Management Training Program
Brand Management Training Program
 
SlideShare 101
SlideShare 101SlideShare 101
SlideShare 101
 
Web Analytics Project Brief: How to MOBILIZE and ENERGIZE your analytics team
Web Analytics Project Brief: How to MOBILIZE and ENERGIZE your analytics teamWeb Analytics Project Brief: How to MOBILIZE and ENERGIZE your analytics team
Web Analytics Project Brief: How to MOBILIZE and ENERGIZE your analytics team
 
Proactive Measures for Good Site Health - Brighton SEO 2014
Proactive Measures for Good Site Health - Brighton SEO 2014Proactive Measures for Good Site Health - Brighton SEO 2014
Proactive Measures for Good Site Health - Brighton SEO 2014
 
MeasureCamp London - Using enhanced ecommerce for non-ecommerce websites
MeasureCamp London - Using enhanced ecommerce for non-ecommerce websitesMeasureCamp London - Using enhanced ecommerce for non-ecommerce websites
MeasureCamp London - Using enhanced ecommerce for non-ecommerce websites
 
The Lego Data Layer
The Lego Data LayerThe Lego Data Layer
The Lego Data Layer
 
A study of digital data about yourself - By Phil Pearce
A study of digital data about yourself - By Phil PearceA study of digital data about yourself - By Phil Pearce
A study of digital data about yourself - By Phil Pearce
 

Similar to Chi squared test for digital analytics

6 CVP anlysis NEW.pptx
6 CVP anlysis NEW.pptx6 CVP anlysis NEW.pptx
6 CVP anlysis NEW.pptx
fadilaamalis
 
Javier Garcia - Verdugo Sanchez - Six Sigma Training - W2 Chi Square Test
Javier Garcia - Verdugo Sanchez - Six Sigma Training - W2 Chi Square TestJavier Garcia - Verdugo Sanchez - Six Sigma Training - W2 Chi Square Test
Javier Garcia - Verdugo Sanchez - Six Sigma Training - W2 Chi Square Test
J. García - Verdugo
 
Chap 5.ppt
Chap 5.pptChap 5.ppt
Chap 5.ppt
CiThThuDim
 
6 product specifications (1)
6 product specifications (1)6 product specifications (1)
6 product specifications (1)
sadha sivam
 
6 product specifications
6 product specifications6 product specifications
6 product specifications
sadha sivam
 
Analyze phase lean six sigma tollgate template
Analyze phase   lean six sigma tollgate templateAnalyze phase   lean six sigma tollgate template
Analyze phase lean six sigma tollgate templateSteven Bonacorsi
 
Analyze Phase Lean Six Sigma Tollgate Templates
Analyze Phase Lean Six Sigma Tollgate TemplatesAnalyze Phase Lean Six Sigma Tollgate Templates
Analyze Phase Lean Six Sigma Tollgate TemplatesSteven Bonacorsi
 
Convenience shoppingSTAT-S301Fall 2019Question Set 1.docx
Convenience shoppingSTAT-S301Fall 2019Question Set 1.docxConvenience shoppingSTAT-S301Fall 2019Question Set 1.docx
Convenience shoppingSTAT-S301Fall 2019Question Set 1.docx
bobbywlane695641
 
Week 2 iLab TCO 2 — Given a simple problem, design a solutio.docx
Week 2 iLab TCO 2 — Given a simple problem, design a solutio.docxWeek 2 iLab TCO 2 — Given a simple problem, design a solutio.docx
Week 2 iLab TCO 2 — Given a simple problem, design a solutio.docx
melbruce90096
 
Bis 345-final-exam-guide-set-1-new
Bis 345-final-exam-guide-set-1-newBis 345-final-exam-guide-set-1-new
Bis 345-final-exam-guide-set-1-new
assignmentcloud85
 
Math 533 ( applied managerial statistics ) final exam answers
Math 533 ( applied managerial statistics ) final exam answersMath 533 ( applied managerial statistics ) final exam answers
Math 533 ( applied managerial statistics ) final exam answers
Patrickrasacs
 
DEC215 Statistics .docx
DEC215 Statistics                                               .docxDEC215 Statistics                                               .docx
DEC215 Statistics .docx
randyburney60861
 
Workshop: Your first machine learning project
Workshop: Your first machine learning projectWorkshop: Your first machine learning project
Workshop: Your first machine learning project
Alex Austin
 
MATH 533 Education Specialist / snaptutorial.com
MATH 533 Education Specialist / snaptutorial.comMATH 533 Education Specialist / snaptutorial.com
MATH 533 Education Specialist / snaptutorial.com
McdonaldRyan97
 
ManScie_Chapter1_Introduction (4).pdf
ManScie_Chapter1_Introduction (4).pdfManScie_Chapter1_Introduction (4).pdf
ManScie_Chapter1_Introduction (4).pdf
MierukoChan2
 
1. What is operations management Why is it important Is a good k.docx
1. What is operations management Why is it important Is a good k.docx1. What is operations management Why is it important Is a good k.docx
1. What is operations management Why is it important Is a good k.docx
jackiewalcutt
 
Math 533 ( applied managerial statistics ) entire course
Math 533 ( applied managerial statistics ) entire courseMath 533 ( applied managerial statistics ) entire course
Math 533 ( applied managerial statistics ) entire course
DennisHine
 
Math 533 ( applied managerial statistics ) entire course
Math 533 ( applied managerial statistics ) entire courseMath 533 ( applied managerial statistics ) entire course
Math 533 ( applied managerial statistics ) entire course
NathanielZaleski
 
Math 533 ( applied managerial statistics ) entire course
Math 533 ( applied managerial statistics ) entire courseMath 533 ( applied managerial statistics ) entire course
Math 533 ( applied managerial statistics ) entire course
BrittneDean
 
MATH 533 RANK Achievement Education--math533rank.com
MATH 533 RANK Achievement Education--math533rank.comMATH 533 RANK Achievement Education--math533rank.com
MATH 533 RANK Achievement Education--math533rank.com
kopiko162
 

Similar to Chi squared test for digital analytics (20)

6 CVP anlysis NEW.pptx
6 CVP anlysis NEW.pptx6 CVP anlysis NEW.pptx
6 CVP anlysis NEW.pptx
 
Javier Garcia - Verdugo Sanchez - Six Sigma Training - W2 Chi Square Test
Javier Garcia - Verdugo Sanchez - Six Sigma Training - W2 Chi Square TestJavier Garcia - Verdugo Sanchez - Six Sigma Training - W2 Chi Square Test
Javier Garcia - Verdugo Sanchez - Six Sigma Training - W2 Chi Square Test
 
Chap 5.ppt
Chap 5.pptChap 5.ppt
Chap 5.ppt
 
6 product specifications (1)
6 product specifications (1)6 product specifications (1)
6 product specifications (1)
 
6 product specifications
6 product specifications6 product specifications
6 product specifications
 
Analyze phase lean six sigma tollgate template
Analyze phase   lean six sigma tollgate templateAnalyze phase   lean six sigma tollgate template
Analyze phase lean six sigma tollgate template
 
Analyze Phase Lean Six Sigma Tollgate Templates
Analyze Phase Lean Six Sigma Tollgate TemplatesAnalyze Phase Lean Six Sigma Tollgate Templates
Analyze Phase Lean Six Sigma Tollgate Templates
 
Convenience shoppingSTAT-S301Fall 2019Question Set 1.docx
Convenience shoppingSTAT-S301Fall 2019Question Set 1.docxConvenience shoppingSTAT-S301Fall 2019Question Set 1.docx
Convenience shoppingSTAT-S301Fall 2019Question Set 1.docx
 
Week 2 iLab TCO 2 — Given a simple problem, design a solutio.docx
Week 2 iLab TCO 2 — Given a simple problem, design a solutio.docxWeek 2 iLab TCO 2 — Given a simple problem, design a solutio.docx
Week 2 iLab TCO 2 — Given a simple problem, design a solutio.docx
 
Bis 345-final-exam-guide-set-1-new
Bis 345-final-exam-guide-set-1-newBis 345-final-exam-guide-set-1-new
Bis 345-final-exam-guide-set-1-new
 
Math 533 ( applied managerial statistics ) final exam answers
Math 533 ( applied managerial statistics ) final exam answersMath 533 ( applied managerial statistics ) final exam answers
Math 533 ( applied managerial statistics ) final exam answers
 
DEC215 Statistics .docx
DEC215 Statistics                                               .docxDEC215 Statistics                                               .docx
DEC215 Statistics .docx
 
Workshop: Your first machine learning project
Workshop: Your first machine learning projectWorkshop: Your first machine learning project
Workshop: Your first machine learning project
 
MATH 533 Education Specialist / snaptutorial.com
MATH 533 Education Specialist / snaptutorial.comMATH 533 Education Specialist / snaptutorial.com
MATH 533 Education Specialist / snaptutorial.com
 
ManScie_Chapter1_Introduction (4).pdf
ManScie_Chapter1_Introduction (4).pdfManScie_Chapter1_Introduction (4).pdf
ManScie_Chapter1_Introduction (4).pdf
 
1. What is operations management Why is it important Is a good k.docx
1. What is operations management Why is it important Is a good k.docx1. What is operations management Why is it important Is a good k.docx
1. What is operations management Why is it important Is a good k.docx
 
Math 533 ( applied managerial statistics ) entire course
Math 533 ( applied managerial statistics ) entire courseMath 533 ( applied managerial statistics ) entire course
Math 533 ( applied managerial statistics ) entire course
 
Math 533 ( applied managerial statistics ) entire course
Math 533 ( applied managerial statistics ) entire courseMath 533 ( applied managerial statistics ) entire course
Math 533 ( applied managerial statistics ) entire course
 
Math 533 ( applied managerial statistics ) entire course
Math 533 ( applied managerial statistics ) entire courseMath 533 ( applied managerial statistics ) entire course
Math 533 ( applied managerial statistics ) entire course
 
MATH 533 RANK Achievement Education--math533rank.com
MATH 533 RANK Achievement Education--math533rank.comMATH 533 RANK Achievement Education--math533rank.com
MATH 533 RANK Achievement Education--math533rank.com
 

Recently uploaded

Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
ahzuo
 
Machine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptxMachine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptx
balafet
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
slg6lamcq
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
v3tuleee
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
TravisMalana
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
haila53
 
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTESAdjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
Subhajit Sahu
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
Subhajit Sahu
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
AbhimanyuSinha9
 
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
u86oixdj
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
Timothy Spann
 
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptxData_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
AnirbanRoy608946
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
Timothy Spann
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
Oppotus
 
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
g4dpvqap0
 
Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
2023240532
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
ewymefz
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
jerlynmaetalle
 

Recently uploaded (20)

Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
 
Machine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptxMachine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptx
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
 
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTESAdjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
 
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
 
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptxData_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
 
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
 
Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
 

Chi squared test for digital analytics

  • 1. Think stats: chi square test in digital analytics Chi-Square Test for independence FTW!!11one Pawel Kapuscinski pawel@databall.co @aliendeg
  • 2. Chi-square test use cases Is gender a factor in color preference of a car? Comparing the number of sales from the test experience vs the control experience (A/B test or A/B/n) Comparing sales revenues of each product before and after the change in strategy Is country a factor in pricing plan preference? Is weather a factor in sales of different products?
  • 3. Implementing the chi square test 1. Identify the two variables of interest from the data table 2. State hypothesis 3. Compute Margin summations 4. Build contingency table 5. Compute the observed chi-square value 6. Compare the observed value to critical value IMPORTANT: Requirements for chi squared test The variables under study are each categorical. If sample data are displayed in a
  • 4. Hypothesis testing steps 1. State null (H0) and alternative (H1) hypothesis 2. Choose level of significance 3. Find critical values 4. Find test statistic 5. Draw your conclusion
  • 6. Dataset - pricing plans sold across world Sold plans Professional Team Business Enterprise USA 1220 790 500 190 UK 950 590 200 120 Germany 880 420 320 70 Sweden 340 260 130 60 Belgium 290 190 110 80 Poland 910 290 190 40 Spain 250 320 220 50
  • 7. Hypothesis H0: Number of sales of each pricing plan is independent upon country H1: Number of sales of each pricing plan is dependent upon country
  • 8. Finding test statistics (manually, Excel and R) Find critical value (https://www.ma.utexas.edu/users/davis/375/popecol/tables/chisq.html) Compute Margin summations Summing rows and columns Build contingency table Compute the observed chi-square value
  • 10. R code df = data.frame(Prof= c(152,118,110,42,36,113,31), Team = c(98,73,52,32,23,36,40), Business = c(62,25,40,16,13,23,27), Enterprise = c(23,15,8,7,10,6,6)) chisq.test(df)
  • 11. Drawing conclusion We can reject hypothesis zero (H0) and accept H1. Number of sales of each pricing plan is dependent upon country
  • 13. Assignment / homework Transactions mobile desktop tablet Direct 3490028 538101 526095 Paid Search 1229227 214050 210811 Organic Search 862144 401720 193064 Referral 228352 129927 39693 Affiliates 38669 31947 12523 Email 35681 14284 6615 Social 9013 5196 2070 Display 231 171 47 (Other) 58 82 36

Editor's Notes

  1. rejection region