Business Experiments with R. B. D. McCullough

Чтение книги онлайн.

Читать онлайн книгу Business Experiments with R - B. D. McCullough страница 10

Business Experiments with R - B. D. McCullough

Скачать книгу

      Bruce McCullough passed away in Fall 2020, just before this book was published. Bruce was an extraordinary scholar and friend, who will be greatly missed. He was fair, direct, true‐to‐his‐word, and expected the highest level of rigor and integrity from himself and those around him. He was also unusually protective of those he took into his care including junior colleagues like me, as well as his wife and children. I'm sure it troubles him greatly that he can't be here in‐person to see us all through.

      Based on many discussions we had about the book, I know he felt just as protective towards his readers. He devoted the last few years of his professional life to providing you with a book that would open up the potential of experimentation in business and prevent you from making mistakes when you design and analyze your own business experiments. I hope you enjoy learning from Bruce as much as I did.

      Elea McDonnell Feit

      Philadelphia, PA

      This book is accompanied by a companion website:

       www.wiley.com/go/mccullough/businessexperimentswithr

c02f001

      The website includes datasets.

      After reading this chapter, students should:

       Distinguish between observational and experimental data.

       Understand that observational data analysis identifies correlation, but cannot prove causality.

       Know why it is difficult to establish causality with observational data.

       Understand that an experiment is a systematic effort to collect exactly the data you need to inform a decision.

       Explain the four key steps in any experiment.

       State the “Big Three” criteria for causality.

       Identify the conditions that make experiments feasible and cost effective.

       Give examples of how experiments can be used to inform specific business decisions.

       Understand the difference between a tactical experiment designed to inform a business decision and an experiment designed to test a scientific theory.

Scatter plots depicting the average life expectancy for several countries versus the number of newspapers per 1000 persons in each country.

      Software Details

      Reproduce the above graphs using the data file WorldBankData.csv

      Below is code for the first graph. To create the next graph, you will have to create a new variable, the natural logarithm of newspapersper1000.

      df <- read.csv("WorldBankData.csv") # "df" is the data frame. plot(df$newspapersper1000,df$lifeexp,xlab="Newspapers per1000", ylab="Life Expectancy",pch=19,cex.axis=1.5,cex.lab=1.15) abline(lm(lifeexp∼newspapersper1000,data=df),lty=2) lines(lowess(df$newspapersper1000,df$lifeexp)) plot(log(df$newspapersper1000),df$lifeexp,xlab="log(Newspapers per1000)",ylab="Life Expectancy",pch=19,cex.axis=1.5, cex.lab=1.15) abline(lm(lifeexp∼log(newspapersper1000),data=df),lty=2) lines(lowess(log(df$newspapersper1000),df$lifeexp))

      (1.1)equation

      where standard errors are in parentheses, so both the coefficients have very high images‐statistics and are significant. This means that there is a relationship between life expectancy and the number of newspapers per 1000 people. But does this show that a country having more newspapers leads to longer lives for its citizens? Common sense says probably not. The natural logarithm of the number of newspapers is probably a proxy for other variables that drive life expectancy; countries that can afford newspapers can probably also afford better food, housing, and medical services. What we are observing is most likely a mere correlation, and, unfortunately, this sort of observational analysis should not be interpreted as causal.

      Try it!

      Run the above simple regression. You should get the same coefficients and standard errors.

      A better analysis would add more variables to the regression to “control” for other factors. So, let's try adding other variables that we expect to drive life expectancy: LHB (natural logarithm of the number of hospital beds per 1000 in the country), LP (natural logarithm of the number of physicians per 1000 in the country), IS (an index of improvements in sanitation), and IW (an index of improvements in water supply). Since

Скачать книгу