#code in R
wage <- c(16.20,12.36,14.4,12)
educ <- c(13,13,12,12)
t.test(wage,mu=15)
t.test(educ,mu = 12)
cor(wage,educ)
model <- lm(wage~educ)
summary(model)
predict(model,data.frame(educ=15))
#running the code
> wage <- c(16.20,12.36,14.4,12) > educ <- c(13,13,12,12) > t.test(wage,mu=15) One Sample t-test data: wage t = -1.2916, df = 3, p-value = 0.287 alternative hypothesis: true mean is not equal to 15 95 percent confidence interval: 10.63552 16.84448 sample estimates: mean of x 13.74 > t.test(educ,mu = 12) One Sample t-test data: educ t = 1.7321, df = 3, p-value = 0.1817 alternative hypothesis: true mean is not equal to 12 95 percent confidence interval: 11.58131 13.41869 sample estimates: mean of x 12.5 > cor(wage,educ) [1] 0.3195994 > model <- lm(wage~educ) > summary(model) Call: lm(formula = wage ~ educ) Residuals: 1 2 3 4 1.92 -1.92 1.20 -1.20 Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 0.240 28.325 0.008 0.994 educ 1.080 2.264 0.477 0.680 Residual standard error: 2.264 on 2 degrees of freedom Multiple R-squared: 0.1021, Adjusted R-squared: -0.3468 F-statistic: 0.2275 on 1 and 2 DF, p-value: 0.6804 > predict(model,data.frame(educ=15)) 1 16.44
i)
95% confidence interval for wage =
10.63552 16.84448
95% confidence interval for education =
11.58131 13.41869
ii)
correlation =
0.3195994
iii)
b0 = 0.24
b1 = 1.08
y^ = 0.240 + 1.08 x
iv)
16.44
v)
R^2 = 0.1021
Question 1 Question Type 1 The following data sets each contain 3 random observations of two variables. For each data set, answer the following questions: Question (a) The data below is a random samp...
Question 13 3 pts Consider three data series, each a random sample of seven observations (n = 7): Series 1: {1, 1, 1, 3, 5, 5, 5} Series 2: {1, 1, 3, 3, 3, 5, 5} Series 3: {1, 3, 3, 3, 3, 3, 5} The interquartile range of Series 3 is: 4 0 3 2 Question 14 3 pts Suppose that you estimate a multiple regression model, but that you inadvertently omit an explanatory variable that is correlated with...
Question 3 with all work please. This is an upper-sided confidence interval for slope of a regression line, not a two-sided confidence interval. Bonus Questions how that for a set of design points such as x| , x2, design points are different then Σ(x-x) >0 , en f at least two of the (3 points) Q2). Show that for the linear regression model y-A, +B x + ε, the point estimate β, s an unbiased estimator for Po (5 points)...
8. A regression of wage (log(wage) is run on a set of following variables: female (-1 if female), educ (years of education), exper (years of experience) and tenure (years with current employer). The regression results are listed as follows. Coefficients: Estimate Std. Error tvalue Pr(Itl) (Intercept) -1.56794 0.72455 -2.164 0.0309 female -1.81085 0.26483 -6.838 2.26e-11*** educ 0.57150 0.04934 11.584 <2e-16*** 0.02540 0.01157 2.195 0.0286 exper 0.14101 0.02116 6.663 6.83e-11*** tenure Signif. codes:0.0010.010.050.1'"1 Residual standard error: 2.958 on 521 degrees of...
8. A regression of wage (log(wage) is run on a set of following variables: female (-1 if female), educ (years of education), exper (years of experience) and tenure (years with current employer). The regression results are listed as follows. Coefficients: Estimate Std. Error tvalue Pr(Itl) (Intercept) -1.56794 0.72455 -2.164 0.0309 female -1.81085 0.26483 -6.838 2.26e-11*** educ 0.57150 0.04934 11.584 <2e-16*** 0.02540 0.01157 2.195 0.0286 exper 0.14101 0.02116 6.663 6.83e-11*** tenure Signif. codes:0.0010.010.050.1'"1 Residual standard error: 2.958 on 521 degrees of...
8. A regression of wage (log(wage) is run on a set of following variables: female (-1 if female), educ (years of education), exper (years of experience) and tenure (years with current employer). The regression results are listed as follows. Coefficients: Estimate Std. Error tvalue Pr(Itl) (Intercept) -1.56794 0.72455 -2.164 0.0309 female -1.81085 0.26483 -6.838 2.26e-11*** educ 0.57150 0.04934 11.584 <2e-16*** 0.02540 0.01157 2.195 0.0286 exper 0.14101 0.02116 6.663 6.83e-11*** tenure Signif. codes:0.0010.010.050.1'"1 Residual standard error: 2.958 on 521 degrees of...
1. Short answer questions. a) You collect data on a random sample of individuals' years of schooling and health. You regress health on schooling nd a positive coefficient. Can you conclude from this estimate that getting more education causes an increase in health (Yes or no)? Justify your answer. b) You have a cross-sectional dataset that includes individuals' education and wages. Explain what it means to have a "ceteris paribus" estimate of the effect of education on wages. c) You...
To examine the differences between salaries of male and female middle managers of a large bank, 90 individuals were randomly selected, and two models were created with the following variables considered Salary- the monthly salary (excluding fringe benefits and bonuses), Educ the number of years of education, Exper the number of months of experience, Train the number of weeks of training, Gender- the gender of an individual; 1 for males, and O for females. Excel partial outputs corresponding to these...
Consider a multiple regression model of the dependent variable y on independent variables x1, x2, and x3: Using data with n = 12 observations for each of the variables, a researcher obtains the following estimated regression equation for the above model y0.5216 + 1.2419x1 + 0.3049x2 - 0.0217x3 The standard error of estimate for this equation is s0.6489 The table below gives the values for the independent and dependent variables and their corresponding predicted values, residuals, and leverage Predicted Value...
QUESTION 1 Consider the following OLS regression line (or sample regression function): wage =-2.10+ 0.50 educ (1), where wage is hourly wage, measured in dollars, and educ years of formal education. According to (1), a person with no education has a predicted hourly wage of [wagehat] dollars. (NOTE: Write your answer in number format, with 2 decimal places of precision level; do not write your answer as a fraction. Add a leading minus sign symbol, a leading zero and trailing...
V. Hypothesis test and confidence intervals. 1. A sample (n) is taken at random from a population and produces (the sample) A = 1100, S = 200. Try the following hypothesis: If we assume the following size of sample n = 36 a, Is there evidence that the average μx is less than 1200? α = .10 H0: μx = 1200 H1: μx <1200 * For the previous test (item a) estimate the p-value * Determine the power of the...