Homework 1 - 436R(1)

.pdf

School

University of Rochester *

*We aren’t endorsed by this school

Course

414

Subject

Industrial Engineering

Date

Dec 6, 2023

Type

pdf

Pages

4

Uploaded by PresidentCrab3541

Report
Causal and Predictive Analytics Homework 1 Individual Assignment This assignment will have you work directly with real-world experimental data. In this assignment, you will be working with a dataset from a landmark study on the effectiveness of online search advertising. eBay conducted an experimental study to determine the return of its advertising on search engines including Google, Bing, and Yahoo. You will be graded both on your code, and the written answers you provide. When evaluating the code, the grader will take on the role of an eBay co-worker. Code will be evaluated both in terms of how correct and how clear it is. By correctness, I mean that the code fulfills the requirements of the question. By clarity, I mean that the grader should be able to understand what your code does within 30 seconds of reading it. As discussed in class, this is aided by clear comments, good variable names, proper indentation, and short lines. The written portions will be evaluated based on the strength of the arguments presented, the use of data to support your statements, and the quality of the writing. Do not copy, share, or otherwise communicate your written answers to other students. All answers should be submitted using the posted Rmarkdown template. Open the .rmd file in R-Studio, and follow the directions listed there. Assignment Materials for Download: 1. An Rmarkdown template titled ‘Homework1Template.Rmd’ 2. A data file in .csv format titled ‘ Homework 1 Data - 436R .csv’ Submission Checklist: To help us grade the assignments efficiently and correctly, we ask that you submit your assignments in a specific format. A complete submission for this assignment will submit the following via blackboard: o A .rmd Rmarkdown file, based on the template for this assignment. o A .html file, generated by knitting the .rmd file in RStudio. o If you choose to use Generative AI, please use a single session of ChatGPT, and get a link to the chat through the Share Link to Chat button. Submit this on blackboard while submitting your assignment o o Make sure your files have the appropriate extensions
o Zip all files into a single archive before submission. Do not use app o Put your written answers in the textboxes in the submission link Data Dictionary: - date : Date of advertising - DMA : Designated Market Area Code. Basically a city - isTreatmentPeriod , isTreatmentGroup : Dummy variables denoting whether date belonged to the treatment period, and DMA belonged to the treatment group - revenue : Revenue for the DMA in dollars Part 1: Analysis (16 marks) The study was conducted as follows. Users were categorized by their designated market area (DMA), which is given as a categorical variable in Column 1 of the dataset. DMAs were randomly selected to be in the treatment or the control group. The variable isTreatmentGroup indicates that the DMA was placed in the treatment group. After a certain date, the treatment period started, and the treatment group was no longer shown search ads from eBay. The variable isTreatmentPeriod indicates whether the treatment period had started. This analysis follows part of the study. Please do these questions in order. Download the Homework 1 dataset and save it to your computer. You can complete this section using Boolean variables, and the read.csv , lm , summary , log, subset, as.Date , and sort functions. As a reference, you can consult the ‘Interview Case’ presented in class. a) Load the dataset in R. Hint: Use the read.csv function. b) Write code that will display the first 10 rows of the dataset in the console. 2 marks . c) Determine the date that started the treatment period. That is, write code to determine the earliest date in the treatment period. Hint: Use the subset and sort functions . 2 marks. d) The data contains a control group, which was shown search ads throughout the data, and a treatment group, which was only shown search ads before the treatment period. 4 marks
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help