Question

In: Physics

To complete this exercise you need a software package that allows you to generate data from...

To complete this exercise you need a software package that allows you to generate data from the uniform and normal distributions.

(i) Start by generating 500 observations xi - the explanatory variable - from the uniform distribution with range [0,10]. (Most statistical packages have a command for the Uniform[0,1] distribution; just multiply those observations by 10.) What are the sample mean and sample standard deviation of the xi?

(ii) Randomly generate 500 errors, ui, from the Normal[0,36] distribution. (If you generate a Normal[0,1], as is commonly available, simply multiply the outcomes by six.) Is the sample average of the ui exactly zero? Why or why not? What is the sample standard deviation of the ui?

(iii) Now, generate the yi as

??=1+2??+??≡?0+?1??+??

that is, the population intercept is one and the population slope is two. Use the data to run the regression of yi on xi. What are your estimates of the intercept and slope? Are they equal to the population values in the above equation? Explain.

(iv) Repeat parts (i), (ii), and (iii) with a new sample of data, starting with generating the xi

??=0.5×??

Now what do you obtain for b0 and b1? Why are these different from what you obtained in part (iii)? Explain why in detail.

Solutions

Expert Solution


Related Solutions

Copy class CirclesViewer from Codecheck and complete it. You need to import the graphics package. After...
Copy class CirclesViewer from Codecheck and complete it. You need to import the graphics package. After completed, the program will ask the user to enter an integer between 1 and 10 then draw the specified number of circles. The radius starts at 10 and increments by 10 for each next one. They all touch the line x = 5 at the left and the line y = 10 at the top. Another way to look at this is that the...
For this exercise, you will need to use the package `mosaic` to find numerical and graphical...
For this exercise, you will need to use the package `mosaic` to find numerical and graphical summaries. ```{r warning=FALSE, message=FALSE} # install packages if necessary if (!require(mosaic)) install.packages(`mosaic`) if (!require(dplyr)) install.packages(`dplyr`) if (!require(gapminder)) install.packages(`gapminder`) # load the package in R library(mosaic) # load the package mosaic to use its functions library(dplyr) # load the package dplyr to use its functions library(gapminder) # load the package gapminder for question 1 ``` 1. Using the gapminder data in the lesson, do the...
Using the package “wooldridge’, and the data ‘hprice1’ (in R-Software) to estimate the model price =...
Using the package “wooldridge’, and the data ‘hprice1’ (in R-Software) to estimate the model price = β0 + β1sqrft + β2bdrms + u , where is the house price measured in thousands of dollars. 1. Write out the results in equation form. 2.  What is the estimated increase in price for a house with one more bedroom, holding square footage constant? 3. What is the estimated increase in price for a house with an additional bedroom that is 140 square feet...
By using MATLAB software: Exercise 2: Generate radiation pattern for a dipole as its length varies....
By using MATLAB software: Exercise 2: Generate radiation pattern for a dipole as its length varies. % M-File: ML0803 % % Dipole antenna movie shows radiation % pattern as dipole length grows from 0.1 % lambda to 2.1 lambda. % % Variables % L dipole length (in wavelengths) % bL2 phase constant * length/2 % N number of theta points % th,thr angle theta in degrees,radians % num,den temporary variables % F un-normalized power function clc %clears the command window...
Select a software system and / or a device that you are familiar with that either allows or requires the system’s software to be updated.
"Software and System Updates" Please respond to the following:Select a software system and / or a device that you are familiar with that either allows or requires the system’s software to be updated. This system could be specific software that sets on top of an operating system, the operating system itself, a mobile device, or video game consoles. Discuss how the update was applied to the system and describe the changes that the system / software update provided. In addition,...
Height vs Weight - Erroneous Data: You will need to use software to answer these questions....
Height vs Weight - Erroneous Data: You will need to use software to answer these questions. Below is the scatterplot and corresponding data for the height and weight of 11 randomly selected adults. You should notice something odd about the last entry.           index height (x) weight (y) inches pounds 1 60 120 2 72 200 3 65 130 4 71 205 5 67 180 6 70 180 7 69 193 8 71 195 9 63 115 10 62 140...
Height vs Weight - Erroneous Data: You will need to use software to answer these questions....
Height vs Weight - Erroneous Data: You will need to use software to answer these questions. Below is the scatterplot, regression line, and corresponding data for the height and weight of 11 randomly selected adults. You should notice something odd about the last entry.           index height (x) weight (y) inches pounds 1 60 120 2 72 200 3 65 130 4 71 205 5 69 180 6 68 180 7 69 193 8 69 195 9 63 115 10...
You are developing a software package for an online shopping site that requires users to enter...
You are developing a software package for an online shopping site that requires users to enter their own passwords. Your software requires that users' passwords meet the following criteria: ● The password should be at least six characters long. ● The password should contain at least one uppercase and at least one lowercase letter. ● The password should have at least one digit. Write a method that verifies that a password meets the stated criteria. Use this method in a...
Imagine you are developing a software package for an online shopping site that requires users to...
Imagine you are developing a software package for an online shopping site that requires users to enter their own passwords. Your software requires that users' passwords meet the following criteria: The password should be at least six characters long. The password should contain at least one uppercase and at least one lowercase letter. The password should have at least one digit. Write a class that verifies that a password meets the stated criteria. Demonstrate the class in a program that...
Install the `babynames` package with `install.packages()`. This package includes data from the Social Security Administration about...
Install the `babynames` package with `install.packages()`. This package includes data from the Social Security Administration about American baby names over a wide range of years. Generate a plot of the reported proportion of babies born with the name Angelica over time. Do you notice anything odd about the plotted data? (Hint: you should) If so, describe the issue and generate a new plot that adjusts for this problem. Make sure you show both plots along with all code that was...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT