First Midterm Examination Econ 103, Statistics for Economists February 19th, 2019

Similar documents
Mathematics Scoring Guide for Sample Test 2005

Cal s Dinner Card Deals

Probability and Statistics Curriculum Pacing Guide

AP Statistics Summer Assignment 17-18

Introduction to Causal Inference. Problem Set 1. Required Problems

Ryerson University Sociology SOC 483: Advanced Research and Statistics

Getting Started with TI-Nspire High School Science

Individual Differences & Item Effects: How to test them, & how to test them well

STT 231 Test 1. Fill in the Letter of Your Choice to Each Question in the Scantron. Each question is worth 2 point.

Introduction to the Practice of Statistics

OPTIMIZATINON OF TRAINING SETS FOR HEBBIAN-LEARNING- BASED CLASSIFIERS

Statewide Framework Document for:

STAT 220 Midterm Exam, Friday, Feb. 24

Business Analytics and Information Tech COURSE NUMBER: 33:136:494 COURSE TITLE: Data Mining and Business Intelligence

TIMSS ADVANCED 2015 USER GUIDE FOR THE INTERNATIONAL DATABASE. Pierre Foy

GCSE Mathematics B (Linear) Mark Scheme for November Component J567/04: Mathematics Paper 4 (Higher) General Certificate of Secondary Education

Chapters 1-5 Cumulative Assessment AP Statistics November 2008 Gillespie, Block 4

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

MINUTE TO WIN IT: NAMING THE PRESIDENTS OF THE UNITED STATES

Mathematics Session 1

Curriculum Design Project with Virtual Manipulatives. Gwenanne Salkind. George Mason University EDCI 856. Dr. Patricia Moyer-Packenham

The Evolution of Random Phenomena

Do students benefit from drawing productive diagrams themselves while solving introductory physics problems? The case of two electrostatic problems

ECON 6901 Research Methods for Economists I Spring 2017

Algebra 1, Quarter 3, Unit 3.1. Line of Best Fit. Overview

Teaching a Laboratory Section

Science Fair Project Handbook

Mathematics Success Level E

ECON 442: Economic Development Course Syllabus Second Semester 2009/2010

Statistical Studies: Analyzing Data III.B Student Activity Sheet 7: Using Technology

STA 225: Introductory Statistics (CT)

MGT 136 Advanced Accounting

TA Script of Student Test Directions

Grade 6: Correlated to AGS Basic Math Skills

Economics Coombe Sixth Form Compulsory Summer Work

Sapphire Elementary - Gradebook Setup

AP Calculus AB. Nevada Academic Standards that are assessable at the local level only.

Spinners at the School Carnival (Unequal Sections)

MAT 122 Intermediate Algebra Syllabus Summer 2016

Improving Conceptual Understanding of Physics with Technology

Case study Norway case 1

Mathematics. Mathematics

Are You Ready? Simplify Fractions

AGS THE GREAT REVIEW GAME FOR PRE-ALGEBRA (CD) CORRELATED TO CALIFORNIA CONTENT STANDARDS

Sociology 521: Social Statistics and Quantitative Methods I Spring 2013 Mondays 2 5pm Kap 305 Computer Lab. Course Website

THEORETICAL CONSIDERATIONS

The Federal Reserve Bank of New York

University of Waterloo Department of Economics Economics 102 (Section 006) Introduction to Macroeconomics Winter 2012

On-the-Fly Customization of Automated Essay Scoring

learning collegiate assessment]

Maximizing Learning Through Course Alignment and Experience with Different Types of Knowledge

WHAT ARE VIRTUAL MANIPULATIVES?

How we look into complaints What happens when we investigate

Algebra 2- Semester 2 Review

Unit: Human Impact Differentiated (Tiered) Task How Does Human Activity Impact Soil Erosion?

Lahore University of Management Sciences. FINN 321 Econometrics Fall Semester 2017

Visit us at:

Table of Contents. Internship Requirements 3 4. Internship Checklist 5. Description of Proposed Internship Request Form 6. Student Agreement Form 7

MTH 215: Introduction to Linear Algebra

Syllabus Foundations of Finance Summer 2014 FINC-UB

Introduction to Yearbook / Newspaper Course Syllabus

Mathematics Assessment Plan

Assignment 1: Predicting Amazon Review Ratings

Math 96: Intermediate Algebra in Context

12- A whirlwind tour of statistics

Centre for Evaluation & Monitoring SOSCA. Feedback Information


Evaluating Statements About Probability

How the Guppy Got its Spots:

CHALLENGES FACING DEVELOPMENT OF STRATEGIC PLANS IN PUBLIC SECONDARY SCHOOLS IN MWINGI CENTRAL DISTRICT, KENYA

Exemplar 6 th Grade Math Unit: Prime Factorization, Greatest Common Factor, and Least Common Multiple

Coimisiún na Scrúduithe Stáit State Examinations Commission LEAVING CERTIFICATE 2008 MARKING SCHEME GEOGRAPHY HIGHER LEVEL

Mathacle PSet Stats, Concepts in Statistics and Probability Level Number Name: Date:

CS Machine Learning

EDCI 699 Statistics: Content, Process, Application COURSE SYLLABUS: SPRING 2016

Evidence for Reliability, Validity and Learning Effectiveness

Instructor: Mario D. Garrett, Ph.D. Phone: Office: Hepner Hall (HH) 100

THE PENNSYLVANIA STATE UNIVERSITY SCHREYER HONORS COLLEGE DEPARTMENT OF MATHEMATICS ASSESSING THE EFFECTIVENESS OF MULTIPLE CHOICE MATH TESTS

ACTL5103 Stochastic Modelling For Actuaries. Course Outline Semester 2, 2014

Grade 2: Using a Number Line to Order and Compare Numbers Place Value Horizontal Content Strand

Creating a Test in Eduphoria! Aware

Association Between Categorical Variables

Introduction to Ensemble Learning Featuring Successes in the Netflix Prize Competition

British International School Istanbul Academic Honesty Policy

Me on the Map. Standards: Objectives: Learning Activities:

Preferences...3 Basic Calculator...5 Math/Graphing Tools...5 Help...6 Run System Check...6 Sign Out...8

Quantitative analysis with statistics (and ponies) (Some slides, pony-based examples from Blase Ur)

Functional Skills Mathematics Level 2 assessment

American Journal of Business Education October 2009 Volume 2, Number 7

Chapter 4 - Fractions

IS FINANCIAL LITERACY IMPROVED BY PARTICIPATING IN A STOCK MARKET GAME?

CALCULUS III MATH

AHS 105 INTRODUCTION TO ART HISTORY: PREHISTORY-MEDIEVAL

Financial aid: Degree-seeking undergraduates, FY15-16 CU-Boulder Office of Data Analytics, Institutional Research March 2017

UDW+ Student Data Dictionary Version 1.7 Program Services Office & Decision Support Group

Research Design & Analysis Made Easy! Brainstorming Worksheet

LESSON PLANS: AUSTRALIA Year 6: Patterns and Algebra Patterns 50 MINS 10 MINS. Introduction to Lesson. powered by

EDPS 859: Statistical Methods A Peer Review of Teaching Project Benchmark Portfolio

BUILDING CAPACITY FOR COLLEGE AND CAREER READINESS: LESSONS LEARNED FROM NAEP ITEM ANALYSES. Council of the Great City Schools

Transcription:

First Midterm Examination Econ 103, Statistics for Economists February 19th, 2019 You will have 70 minutes to complete this exam. Graphing calculators, notes, and textbooks are not permitted. I pledge that, in taking and preparing for this exam, I have abided by the University of Pennsylvania s Code of Academic Integrity. I am aware that any violations of the code will result in a failing grade for this course. Name: Signature: Student ID #: Recitation #: Question: 1 2 3 4 5 6 7 Total Points: 20 15 20 20 20 20 25 140 Score: Instructions: Answer all questions in the space provided, continuing on the back of the page if you run out of space. Show your work for full credit but be aware that writing down irrelevant information will not gain you points. Be sure to sign the academic integrity statement above and to write your name and student ID number on each page in the space provided. Make sure that you have all pages of the exam before starting. Warning: If you continue writing after we call time, even if this is only to fill in your name, twenty-five points will be deducted from your final score. In addition, a point will be deducted for each page on which you do not write your name and student ID.

Econ 103 Midterm I, Page 2 of 7 February 19th, 2019 1. Let m be a constant and x 1,..., x n be an observed dataset. 10 (a) Show that (x i m) 2 = x 2 i 2m x i + nm 2. 10 (b) Using the preceding part, show that (x i x) 2 = x 2 i n x 2. 15 2. Given observations x 1, x 2,..., x n, what value of a minimizes 1 n (x 2 i a) 2? Explain.

Econ 103 Midterm I, Page 3 of 7 February 19th, 2019 20 3. Suppose I flip a fair coin three times. Let A be the event that I get at least one head, and B be the event that I get exactly two heads. (a) Calculate P (B A). (b) Are the events A and B independent? Justify your answer. 20 4. Bob is a randomly chosen resident of Peoria, a city in which 3% of people use cocaine. Bob tests positive for cocaine in a drug test that correctly identifies users 95% of the time and correctly identifies non-users 90% of the time. Calculate the probability that Bob is a cocaine user. (In your calculations, let U be the event that Bob is a cocaine user and T be the event that he tests positive.)

Econ 103 Midterm I, Page 4 of 7 February 19th, 2019 5. Let X be a RV with support set { 1, 1} and p( 1) = 1/2. 2 (a) Write out the pmf of X. 3 (b) Calculate E[X]. 5 (c) Write out the CDF F (x 0 ) of X. 3 (d) Calculate E[X 2 ]. 2 (e) Calculate V ar(x). [ ] X 5 (f) Calculate E X 2 + 1

Econ 103 Midterm I, Page 5 of 7 February 19th, 2019 6. In each of the following parts, write down the result that would appear in the R console if you were to run the indicated lines of code. 5 (a) x <- c(-1, 5, 2, -4, 8) x[c(1,2)] 5 (b) w <- c(4, 5, 6) z <- c(3, 2, 1) rbind(z, w) 5 (c) M <- cbind(c(1, 2, 3), c(4, 5, 6)) M[2,] 5 (d) person <- c("alice", "Bob", "Cari", "Dan") year_of_birth <- c(1985, 1992, 1985, 1997) df <- data.frame(person, year_of_birth) subset(df, year_of_birth == 1985)

Econ 103 Midterm I, Page 6 of 7 February 19th, 2019 7. This question is based on a dataset called brexit.csv that is available on my website at http://ditraglia.com/econ103/brexit.csv. Here are the first few rows: Area Region Pct_Leave mean_hourly_pay2005 1 Hartlepool North East 69.57 10.89 2 Middlesbrough North East 65.48 10.02 3 Redcar and Cleveland North East 66.19 11.45 4 Stockton-on-Tees North East 61.73 12.15 5 Darlington North East 56.18 11.03 6 Halton North West 57.42 10.50 The dataset contains results from the 2016 UK Brexit referendum, in which British voters were asked whether they wished to leave or remain in the European Union. Each row contains information for a single voting area (effectively a precinct). The column Area is a character vector containing the name of the area, while Region is a factor indicating the region in which this area is located. The remaining columns are numeric vectors: Pct_Leave gives percentage of voters in an area who voted to leave the European Union (0 = 0% and 100 = 100%), while mean_hourly_pay2005 gives the mean hourly pay of the area in 2005 measured in pounds sterling (GBP). There are no missing values. 3 (a) Write R code to load brexit.csv from my website and store it as a dataframe called brexit. (b) Write R code to display the first six rows of the dataframe brexit. 3 (c) Write R code to make a histogram of mean hourly pay in 2005 across areas. You do not have to add a title or label the axes. 3 (d) Write R code to carry out the following steps: (i) run a regression using mean hourly pay in 2005 to predict the percentage voting leave, (ii) store the result in an object called reg, (iii) display the slope and intercept of reg.

Econ 103 Midterm I, Page 7 of 7 February 19th, 2019 5 (e) The results of the code you wrote in the preceding part are as follows: (Intercept) mean_hourly_pay2005 76.2-1.7 Suppose we consider two areas. In the first, mean hourly pay equals 20 GBP; in the second it equals 10. Based on the regression results, how would we predict that the percentage voting leave would differ between these areas? Your answer should not involve any R code. 5 (f) I ran the following line of R code: sd(brexit$pct_leave) / sd(brexit$mean_hourly_pay2005) and got a result of approximately 3.5. Based on this and the regression results from the preceding part, what is the approximate correlation between Pct_Leave and mean_hourly_pay2005? Your answer should not involve any R code. 3 (g) Write a line of R code that uses reg to predict the percentage of voters that we would expect to vote remain in four hypothetical areas with mean hourly pay equal to 5, 10, 15, and 20. 3 (h) Write a line of R code to make a side-by-side boxplots of the percentage voting leave, broken down by Region. You do not have to add a title or axis labels.