logo Use SA10RAM to get 10%* Discount.
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Arbaaj KhanScience
(5/5)

730 Answers

Hire Me
expert
Lawrence BankheadMarketing
(5/5)

511 Answers

Hire Me
expert
Lakshay AggarwalEngineering
(5/5)

916 Answers

Hire Me
expert
Eugene BaranowskiMathematics
(5/5)

744 Answers

Hire Me
STATA
(5/5)

what would you expect the relationship between u1 and u2 to be? Why?

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

This assignment requires only simple steps, but this may take time if you have not imple- mented these in Stata before. Please start early to avoid last minute rushes.

1. using Stata:

(a) set seed 260722;

(b) generate N = 100 observations of two random variables, u1 and u2 uniformly dis- tributed in the [0, 1] interval;

2. what would you expect the relationship between u1 and u2 to be? Why?

3. using Stata, regress u1 on u2 (including a constant term). What is the probability that the coefficient on u2 is non-zero? Comment in light of your answer to the previous question.

4. rerun your previous code, this time generating k = 10, 100 and 1000 trial pairs of random u1 and u2. For each such pair, perform the regression above. Do this for each of N = 10, 100 and 1000. Fill in Table 1, indicating in each cell the number of significant coefficients (at the 5% level) you find for each trial. (To illustrate, one cell is already filled in.)

k

10 100 1000

10 0

N 100

1000

Table 1: Number of trials with regressor significantly different from zero at 5% level

 

5. do you notice anything unusual about the completed table? How do you make sense of this?

6. using Galton’s height data from the Harvard dataverse (click this link):

(a) generate the ‘midparent’ height, the average of the mother’s and father’s height;

(b) regress the child’s height on the midparent height;

(c) comment on the sign and significance of parental height as an explanatory variable for a child’s height.

The assignment is due on 10 August; it must not exceed 1000 words, including the Stata

.do file containing all your code.

Do not worry if some of these questions ‘stump’ you: while some questions are ‘mechanical’, others are designed to deepen your intuitions.

 

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme

Get Free Quote!

434 Experts Online