RPubs will retire in June 2027. Your existing documents will stay accessible through December 31, 2031
and Connect Cloud is the recommended home for new publishing. Read the blog post

Recently Published

Brazil_cities_with_popups
These are the Brazil cities with popups
Time Series Plot
Time Series Plots through basic R functions.
Brazil Cities
An interactive map showing the cities of Brazil
Bayesian Inference – Hypothesis Testing. Advanced A/B testing in Marketing using Bayesian Decision Theory: Profit maximization with Test & Roll algorithm. Case study: Estimating the Returns to Advertising / Campaign ROI evaluation.
In 2015, Lewis and Rao wrote a paper named “The Unfavorable Economics of Measuring the Returns to Advertising” tackling the problem that major U.S. retailers face: Most of them reach millions of customers and collectively represent $2.8 million in digital advertising expenditure, but measuring the returns to advertising is difficult. Test & Roll A/B testing is a statistical technique in experimental design based in Bayesian decision theory and its goal is to maximize combined profit for both the test and the rollout phases. In the test phase you send out for example two versions of emails (in statistical jargon, the treatments), and in the roll phase you choose one version to deploy. Test & Roll finds the profit maximizing sample size for each phase using a Bayesian hierarchical model fit to past experiments data, run the Markov Chain Monte Carlo algorithm, and informs you the highest posterior probabilities of the parameters of interest; you then select the best option. In business terminology, this procedure allows to achieve maximum ROI (return on investment) with both the minimum sample size and the maximum profit possible, while yielding the lowest possible error rates. In contrast to the traditional hypothesis testing framework, sample sizes suggested by T&R are typically much smaller, which makes this approach more feasible as populations are limited and hypothesis tests don’t recognize this. Also, when a hypothesis test is statistically insignificant, it doesn’t tell you what to do, while Test & Roll shows exactly what alternative to choose and how much profit you would get. Finally, T&R works well when the response takes a long time to measure (long purchase cycles) and when iterative allocation would be time-consuming (email, catalog and direct mail). Source: The University of Pennsylvania, The Wharton School, Wharton Customer Analytics Initiative
Report 2
Random Forest and Boosting
Publish Document
Final Report
PROBLEM SET 3
Document
Document