Errata

Behavioral Data Analysis with R and Python

Errata for Behavioral Data Analysis with R and Python

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
Page N/A
https://learning.oreilly.com/library/view/behavioral-data-analysis/9781492061366/ch04.html

`> dat %>% group_by(CustTyp) %>% summarize(ADR = mean(ADR))`

This returns an error. The column in the dataset is CustomerType.

Note from the Author or Editor:
Chapter 4 > Validate Observable Variables to Include Based on Data > Relationships Between Categorical Variables,

"Figure 4-15 shows the corresponding correlation matrix"

should be replaced with

"Figure 4-15 shows the corresponding correlation matrix, after renaming the variables for readability
<code-font>
## R
dat <- dat %>%
rename(CustTyp= CustomerType) %>%
rename(DistCh = DistributionChannel) %>%
rename(RepGst = IsRepeatedGuest) %>%
rename(MktSgmt = MarketSegment) %>%
rename(IsCanc = IsCanceled) %>%
rename(PrevCan = PreviousCancellations) %>%
rename(NRDep = NRDeposit)

## Python
dat_df.rename(columns=
{"CustomerType": "CustTyp",
"DistributionChannel": "DistCh",
"IsRepeatedGuest": "RepGst",
"MarketSegment": "MktSgmt",
"IsCanceled": "IsCanc",
"PreviousCancellations": "PrevCan",
"NRDeposit": "NRDep"},
inplace=True)
</code-font>"

Anonymous  Jul 26, 2021  May 12, 2023
Page n/a
https://learning.oreilly.com/library/view/behavioral-data-analysis/9781492061366/ch10.html#cluster_randomization_and_hierarchical

I can't find the file chap10-experimental_data.csv. I don't see it in the GH folder for this chapter (github.com/FlorentBuissonOReilly/BehavioralDataAnalysis/tree/master/Chapter%2010%20-%20Cluster%20Randomization%20and%20Hierarchical%20Modeling)

Note from the Author or Editor:
The missing file has now been uploaded to Github, no need to do anything else.

Anonymous  Jul 26, 2021  May 12, 2023
ch2 > How to Connect Behaviors and Data > Identify the Category
Second paragraph

CHANGE:
Along with them, he offered some excellent advice if we got stumped: in his words, we should figure out, in his words, “what book this is a chapter of.”
TO:
Along with them, he offered some excellent advice if we got stumped: we should figure out, in his words, “what book this is a chapter of.”

Florent Buisson
 
Sep 12, 2021  May 12, 2023
chapter 5
Figure 5-8

In the diagram on the right (right panel), the arrow from "Intermediary variable #1" to "..." should go the other way around

Florent Buisson
 
Apr 04, 2023  May 12, 2023
Chapter 10
Section Data and Packages

Chapter 10 > Data and Packages:
In the code box for Python, remove the quotation marks

Florent Buisson
 
Jun 23, 2021  May 12, 2023
Page 49
1st paragraph after title "Expanding chains"

in equation DonutSales = βTTemperature
Shouldn't "beta" be with tilde, like on page before?

Note from the Author or Editor:
Chapter 3 > Fundamental Structures of Causal Diagrams > Expanding chains:
In the sentence "This causal relationship translates into the equation DonutSales = βTTemperature.", there should be a tilde over βT.

Marek Włodarz  Dec 03, 2021  May 12, 2023
Page 102
3rd paragraph

The phrase "backdoor criterion less robust to errorsbut" seems like it might be a copy paste error in addition to a typographical error. Even if the "errorsbut" was separated by a space, the sentence would not sound clear.

Note from the Author or Editor:
The first sentence of paragraph 3 on page 102 should read "The backdoor criterion is more precise than the disjunctive cause criterion, but it’s also less robust to errors in our CD"

Tim Stewart  Jun 10, 2023  Sep 15, 2023