Behavioral Data Analysis with R and Python: Customer-Driven Data for Real Business Results

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Harness the full power of the behavioral data in your company by learning tools specifically designed for behavioral data analysis. Common data science algorithms and predictive analytics tools treat customer behavioral data, such as clicks on a website or purchases in a supermarket, the same as any other data. Instead, this practical guide introduces powerful methods specifically tailored for behavioral data analysis. Advanced experimental design helps you get the most out of your A/B tests, while causal diagrams allow you to tease out the causes of behaviors even when you can't run experiments. Written in an accessible style for data scientists, business analysts, and behavioral scientists, thispractical book provides complete examples and exercises in R and Python to help you gain more insight from your data--immediately. • Understand the specifics of behavioral data • Explore the differences between measurement and prediction • Learn how to clean and prepare behavioral data • Design and analyze experiments to drive optimal business decisions • Use behavioral data to understand and measure cause and effect • Segment customers in a transparent and insightful way

Author(s): Florent Buisson
Edition: 1
Publisher: O'Reilly Media
Year: 2021

Language: English
Commentary: Vector PDF
Pages: 360
City: Sebastopol, CA
Tags: Data Analysis; Behavior Analysis; Psychology; Python; Cognitive Psychology; Emotion Recognition; R; Causality; Uncertainty; Bootstrapping; Robustness; Causal Diagrams; Design of Experiments; Moderation

Copyright
Table of Contents
Preface
Who This Book Is For
Who This Book Is Not For
R and Python Code
Code Environments
Code Conventions
Functional-Style Programming 101
Using Code Examples
Navigating This Book
Conventions Used in This Book
O’Reilly Online Learning
How to Contact Us
Acknowledgments
Part I. Understanding Behaviors
Chapter 1. The Causal-Behavioral Framework for Data Analysis
Why We Need Causal Analytics to Explain Human Behavior
The Different Types of Analytics
Human Beings Are Complicated
Confound It! The Hidden Dangers of Letting Regression Sort It Out
Data
Why Correlation Is Not Causation: A Confounder in Action
Too Many Variables Can Spoil the Broth
Conclusion
Chapter 2. Understanding Behavioral Data
A Basic Model of Human Behavior
Personal Characteristics
Cognition and Emotions
Intentions
Actions
Business Behaviors
How to Connect Behaviors and Data
Develop a Behavioral Integrity Mindset
Distrust and Verify
Identify the Category
Refine Behavioral Variables
Understand the Context
Conclusion
Part II. Causal Diagrams and Deconfounding
Chapter 3. Introduction to Causal Diagrams
Causal Diagrams and the Causal-Behavioral Framework
Causal Diagrams Represent Behaviors
Causal Diagrams Represent Data
Fundamental Structures of Causal Diagrams
Chains
Forks
Colliders
Common Transformations of Causal Diagrams
Slicing/Disaggregating Variables
Aggregating Variables
What About Cycles?
Paths
Conclusion
Chapter 4. Building Causal Diagrams from Scratch
Business Problem and Data Setup
Data and Packages
Understanding the Relationship of Interest
Identify Candidate Variables to Include
Actions
Intentions
Cognition and Emotions
Personal Characteristics
Business Behaviors
Time Trends
Validate Observable Variables to Include Based on Data
Relationships Between Numeric Variables
Relationships Between Categorical Variables
Relationships Between Numeric and Categorical Variables
Expand Causal Diagram Iteratively
Identify Proxies for Unobserved Variables
Identify Further Causes
Iterate
Simplify Causal Diagram
Conclusion
Chapter 5. Using Causal Diagrams to Deconfound Data Analyses
Business Problem: Ice Cream and Bottled Water Sales
The Disjunctive Cause Criterion
Definition
First Block
Second Block
The Backdoor Criterion
Definitions
First Block
Second Block
Conclusion
Part III. Robust Data Analysis
Chapter 6. Handling Missing Data
Data and Packages
Visualizing Missing Data
Amount of Missing Data
Correlation of Missingness
Diagnosing Missing Data
Causes of Missingness: Rubin’s Classification
Diagnosing MCAR Variables
Diagnosing MAR Variables
Diagnosing MNAR Variables
Missingness as a Spectrum
Handling Missing Data
Introduction to Multiple Imputation (MI)
Default Imputation Method: Predictive Mean Matching
From PMM to Normal Imputation (R Only)
Adding Auxiliary Variables
Scaling Up the Number of Imputed Data Sets
Conclusion
Chapter 7. Measuring Uncertainty with the Bootstrap
Intro to the Bootstrap: “Polling” Oneself Up
Packages
The Business Problem: Small Data with an Outlier
Bootstrap Confidence Interval for the Sample Mean
Bootstrap Confidence Intervals for Ad Hoc Statistics
The Bootstrap for Regression Analysis
When to Use the Bootstrap
Conditions for the Traditional Central Estimate to Be Sufficient
Conditions for the Traditional CI to Be Sufficient
Determining the Number of Bootstrap Samples
Optimizing the Bootstrap in R and Python
R: The boot Package
Python Optimization
Conclusion
Part IV. Designing and Analyzing Experiments
Chapter 8. Experimental Design: The Basics
Planning the Experiment: Theory of Change
Business Goal and Target Metric
Intervention
Behavioral Logic
Data and Packages
Determining Random Assignment and Sample Size/Power
Random Assignment
Sample Size and Power Analysis
Analyzing and Interpreting Experimental Results
Conclusion
Chapter 9. Stratified Randomization
Planning the Experiment
Business Goal and Target Metric
Definition of the Intervention
Behavioral Logic
Data and Packages
Determining Random Assignment and Sample Size/Power
Random Assignment
Power Analysis with Bootstrap Simulations
Analyzing and Interpreting Experimental Results
Intention-to-Treat Estimate for Encouragement Intervention
Complier Average Causal Estimate for Mandatory Intervention
Conclusion
Chapter 10. Cluster Randomization and Hierarchical Modeling
Planning the Experiment
Business Goal and Target Metric
Definition of the Intervention
Behavioral Logic
Data and Packages
Introduction to Hierarchical Modeling
R Code
Python Code
Determining Random Assignment and Sample Size/Power
Random Assignment
Power Analysis
Analyzing the Experiment
Conclusion
Part V. Advanced Tools in Behavioral Data Analysis
Chapter 11. Introduction to Moderation
Data and Packages
Behavioral Varieties of Moderation
Segmentation
Interactions
Nonlinearities
How to Apply Moderation
When to Look for Moderation?
Multiple Moderators
Validating Moderation with Bootstrap
Interpreting Individual Coefficients
Conclusion
Chapter 12. Mediation and Instrumental Variables
Mediation
Understanding Causal Mechanisms
Causal Biases
Identifying Mediation
Measuring Mediation
Instrumental Variables
Data
Packages
Understanding and Applying IVs
Measurement
Applying IVs: Frequently Asked Questions
Conclusion
Bibliography
Index
About the Author
Colophon