# Suppose x1 and x2 are predictor variables for a response variable y. a. The distribution of all possible values of the response variable corresponding to particular values of the two predictor variables is called a distribution of the response variable. b. State the four assumptions for multiple linear regression inferences

Question
Scatterplots
Suppose x1 and x2 are predictor variables for a response variable y.
a. The distribution of all possible values of the response variable corresponding to particular values of the two predictor variables is called a distribution of the response variable.
b. State the four assumptions for multiple linear regression inferences

2021-02-11
Step 1
a.
Yes, the distribution of the response or dependent variable is the distribution of all the possible values of the dependent variable corresponding to particular values of two predictor or independent variables.
Although, the assumptions are not actually about only the distribution of the dependent variable, it is about the distribution of y for given x1 and x2.
Step 2
b.
The four assumptions for multiple linear regression inferences are as follows:
Linearity: There must be linear relationship between the independent and the dependent variables which can be tested with the help of scatterplots.
Normality: The multiple linear regression assumes that the residuals are normally distributed, that is, the errors between the values of predictor and the response variables. It can be checked by looking at a histogram or a Q-Q-Plot.
Multicollinearity: It is assumed by the multiple regression that the predictor variables are not highly correlated with each other. It can be tested using correlation matrix or variance inflation factor (VIF). The data should be centered if multicollinearity is found in the data.
Homoscedasticity: According to this assumption, the variance of the error terms is similar across the values of the predictor variables. The cone shaped pattern observed by the scatterplot between residuals and predicted values shows the heteroscedasticity in the data.

### Relevant Questions

Answer true or false to the following statements and explain your answers.
a. In multiple linear regression, we can determine whether we are extrapolating in predicting the value of the response variable for a given set of predictor variable values by determining whether each predictor variable value falls in the range of observed values of that predictor.
b. Irregularly shaped regions of the values of predictor variables are easy to detect with two-dimensional scatterplots of pairs of predictor variables, and thus it is easy to determine whether we are extrapolating when predicting the response variable.
Case: Dr. Jung’s Diamonds Selection
With Christmas coming, Dr. Jung became interested in buying diamonds for his wife. After perusing the Web, he learned about the “4Cs” of diamonds: cut, color, clarity, and carat. He knew his wife wanted round-cut earrings mounted in white gold settings, so he immediately narrowed his focus to evaluating color, clarity, and carat for that style earring.
After a bit of searching, Dr. Jung located a number of earring sets that he would consider purchasing. But he knew the pricing of diamonds varied considerably. To assist in his decision making, Dr. Jung decided to use regression analysis to develop a model to predict the retail price of different sets of round-cut earrings based on their color, clarity, and carat scores. He assembled the data in the file Diamonds.xls for this purpose. Use this data to answer the following questions for Dr. Jung.
1) Prepare scatter plots showing the relationship between the earring prices (Y) and each of the potential independent variables. What sort of relationship does each plot suggest?
2) Let X1, X2, and X3 represent diamond color, clarity, and carats, respectively. If Dr. Jung wanted to build a linear regression model to estimate earring prices using these variables, which variables would you recommend that he use? Why?
3) Suppose Dr. Jung decides to use clarity (X2) and carats (X3) as independent variables in a regression model to predict earring prices. What is the estimated regression equation? What is the value of the R2 and adjusted-R2 statistics?
4) Use the regression equation identified in the previous question to create estimated prices for each of the earring sets in Dr. Jung’s sample. Which sets of earrings appear to be overpriced and which appear to be bargains? Based on this analysis, which set of earrings would you suggest that Dr. Jung purchase?
5) Dr. Jung now remembers that it sometimes helps to perform a square root transformation on the dependent variable in a regression problem. Modify your spreadsheet to include a new dependent variable that is the square root on the earring prices (use Excel’s SQRT( ) function). If Dr. Jung wanted to build a linear regression model to estimate the square root of earring prices using the same independent variables as before, which variables would you recommend that he use? Why?
1
6) Suppose Dr. Jung decides to use clarity (X2) and carats (X3) as independent variables in a regression model to predict the square root of the earring prices. What is the estimated regression equation? What is the value of the R2 and adjusted-R2 statistics?
7) Use the regression equation identified in the previous question to create estimated prices for each of the earring sets in Dr. Jung’s sample. (Remember, your model estimates the square root of the earring prices. So you must actually square the model’s estimates to convert them to price estimates.) Which sets of earring appears to be overpriced and which appear to be bargains? Based on this analysis, which set of earrings would you suggest that Dr. Jung purchase?
8) Dr. Jung now also remembers that it sometimes helps to include interaction terms in a regression model—where you create a new independent variable as the product of two of the original variables. Modify your spreadsheet to include three new independent variables, X4, X5, and X6, representing interaction terms where: X4 = X1 × X2, X5 = X1 × X3, and X6 = X2 × X3. There are now six potential independent variables. If Dr. Jung wanted to build a linear regression model to estimate the square root of earring prices using the same independent variables as before, which variables would you recommend that he use? Why?
9) Suppose Dr. Jung decides to use color (X1), carats (X3) and the interaction terms X4 (color * clarity) and X5 (color * carats) as independent variables in a regression model to predict the square root of the earring prices. What is the estimated regression equation? What is the value of the R2 and adjusted-R2 statistics?
10) Use the regression equation identified in the previous question to create estimated prices for each of the earring sets in Dr. Jung’s sample. (Remember, your model estimates the square root of the earring prices. So you must square the model’s estimates to convert them to actual price estimates.) Which sets of earrings appear to be overpriced and which appear to be bargains? Based on this analysis, which set of earrings would you suggest that Dr. Jung purchase?
Regarding a scatterplot matrix:
a. Identify two of its uses.
b. What property should the scatterplots of the response versus each predictor variable have in order to proceed to obtain the regression plane for the data?
How to prove that a normally distributed assumption was fulfilled for the Two-Proportional z-test?
Select all relevant assumptions.
Residual graphs do not have a pattern
Scattered plots are linear
Scattered plots do not have a pattern
Normal sample distribution: npge5&n(1-p)ge5
Bell-shaped histograms
Histograms are uniform
Residual graphs are linear
Residual graphs are linear box plots have less than two outliers
Normal quantile plots do not have a pattern
Normal sample distribution: n,p,ge5,n,(1-p)ge5,n_2p_2ge5&91-p_2)ge5
Normal sample distribution: n'sge30 or populations usually are distributed
We will now add support for register-memory ALU operations to the classic five-stage RISC pipeline. To offset this increase in complexity, all memory addressing will be restricted to register indirect (i.e., all addresses are simply a value held in a register; no offset or displacement may be added to the register value). For example, the register-memory instruction add x4, x5, (x1) means add the contents of register x5 to the contents of the memory location with address equal to the value in register x1 and put the sum in register x4. Register-register ALU operations are unchanged. The following items apply to the integer RISC pipeline:
a. List a rearranged order of the five traditional stages of the RISC pipeline that will support register-memory operations implemented exclusively by register indirect addressing.
b. Describe what new forwarding paths are needed for the rearranged pipeline by stating the source, destination, and information transferred on each needed new path.
c. For the reordered stages of the RISC pipeline, what new data hazards are created by this addressing mode? Give an instruction sequence illustrating each new hazard.
d. List all of the ways that the RISC pipeline with register-memory ALU operations can have a different instruction count for a given program than the original RISC pipeline. Give a pair of specific instruction sequences, one for the original pipeline and one for the rearranged pipeline, to illustrate each way.
Hint for (d): Give a pair of instruction sequences where the RISC pipeline has “more” instructions than the reg-mem architecture. Also give a pair of instruction sequences where the RISC pipeline has “fewer” instructions than the reg-mem architecture.
The dominant form of drag experienced by vehicles (bikes, cars,planes, etc.) at operating speeds is called form drag. Itincreases quadratically with velocity (essentially because theamount of air you run into increase with v and so does the amount of force you must exert on each small volume of air). Thus
$$\displaystyle{F}_{{{d}{r}{u}{g}}}={C}_{{d}}{A}{v}^{{2}}$$
where A is the cross-sectional area of the vehicle and $$\displaystyle{C}_{{d}}$$ is called the coefficient of drag.
Part A:
Consider a vehicle moving with constant velocity $$\displaystyle\vec{{{v}}}$$. Find the power dissipated by form drag.
Express your answer in terms of $$\displaystyle{C}_{{d}},{A},$$ and speed v.
Part B:
A certain car has an engine that provides a maximum power $$\displaystyle{P}_{{0}}$$. Suppose that the maximum speed of thee car, $$\displaystyle{v}_{{0}}$$, is limited by a drag force proportional to the square of the speed (as in the previous part). The car engine is now modified, so that the new power $$\displaystyle{P}_{{1}}$$ is 10 percent greater than the original power ($$\displaystyle{P}_{{1}}={110}\%{P}_{{0}}$$).
Assume the following:
The top speed is limited by air drag.
The magnitude of the force of air drag at these speeds is proportional to the square of the speed.
By what percentage, $$\displaystyle{\frac{{{v}_{{1}}-{v}_{{0}}}}{{{v}_{{0}}}}}$$, is the top speed of the car increased?
Express the percent increase in top speed numerically to two significant figures.
What kind of plot is useful for deciding whether it is reasonable to find a regression to find a regression plane for a set of data points involving several predictor variables?
Two scatterplots are shown below.
Scatterplot 1
A scatterplot has 14 points.
The horizontal axis is labeled "x" and has values from 30 to 110.
The vertical axis is labeled "y" and has values from 30 to 110.
The points are plotted from approximately (55, 60) up and right to approximately (95, 85).
The points are somewhat scattered.
Scatterplot 2
A scatterplot has 10 points.
The horizontal axis is labeled "x" and has values from 30 to 110.
The vertical axis is labeled "y" and has values from 30 to 110.
The points are plotted from approximately (55, 55) steeply up and right to approximately (70, 90), and then steeply down and right to approximately (85, 60).
The points are somewhat scattered.
Explain why it makes sense to use the least-squares line to summarize the relationship between x and y for one of these data sets but not the other.
Scatterplot 1 seems to show a relationship between x and y, while Scatterplot 2 shows a relationship between the two variables. So it makes sense to use the least squares line to summarize the relationship between x and y for the data set in , but not for the data set in .
In this exercise, you will use the correlation and regression applet to create scatter plots with 10 points that have a correlation close to 0.7. The lesson here is that many models may have the same correlation. Always compile your data before trusting correlations. (a) Stop after adding the first two points. What is the value of correlation?
(Enter your answer, rounded to four decimal places).
r=?
Why does correlation matter? Two is the minimum number of data points required to calculate the correlation. This value is the default correlation.
Because two points define a line, correlation always matters.
The mean of these two values always has this value.
The table below shows the number of people for three different race groups who were shot by police that were either armed or unarmed. These values are very close to the exact numbers. They have been changed slightly for each student to get a unique problem.
Suspect was Armed:
Black - 543
White - 1176
Hispanic - 378
Total - 2097
Suspect was unarmed:
Black - 60
White - 67
Hispanic - 38
Total - 165
Total:
Black - 603
White - 1243
Hispanic - 416
Total - 2262
Give your answer as a decimal to at least three decimal places.
a) What percent are Black?
b) What percent are Unarmed?
c) In order for two variables to be Independent of each other, the P $$(A and B) = P(A) \cdot P(B) P(A and B) = P(A) \cdot P(B).$$
This just means that the percentage of times that both things happen equals the individual percentages multiplied together (Only if they are Independent of each other).
Therefore, if a person's race is independent of whether they were killed being unarmed then the percentage of black people that are killed while being unarmed should equal the percentage of blacks times the percentage of Unarmed. Let's check this. Multiply your answer to part a (percentage of blacks) by your answer to part b (percentage of unarmed).
Remember, the previous answer is only correct if the variables are Independent.
d) Now let's get the real percent that are Black and Unarmed by using the table?
If answer c is "significantly different" than answer d, then that means that there could be a different percentage of unarmed people being shot based on race. We will check this out later in the course.
Let's compare the percentage of unarmed shot for each race.
e) What percent are White and Unarmed?
f) What percent are Hispanic and Unarmed?
If you compare answers d, e and f it shows the highest percentage of unarmed people being shot is most likely white.
Why is that?
This is because there are more white people in the United States than any other race and therefore there are likely to be more white people in the table. Since there are more white people in the table, there most likely would be more white and unarmed people shot by police than any other race. This pulls the percentage of white and unarmed up. In addition, there most likely would be more white and armed shot by police. All the percentages for white people would be higher, because there are more white people. For example, the table contains very few Hispanic people, and the percentage of people in the table that were Hispanic and unarmed is the lowest percentage.
Think of it this way. If you went to a college that was 90% female and 10% male, then females would most likely have the highest percentage of A grades. They would also most likely have the highest percentage of B, C, D and F grades
The correct way to compare is "conditional probability". Conditional probability is getting the probability of something happening, given we are dealing with just the people in a particular group.
g) What percent of blacks shot and killed by police were unarmed?
h) What percent of whites shot and killed by police were unarmed?
i) What percent of Hispanics shot and killed by police were unarmed?
You can see by the answers to part g and h, that the percentage of blacks that were unarmed and killed by police is approximately twice that of whites that were unarmed and killed by police.
j) Why do you believe this is happening?
Do a search on the internet for reasons why blacks are more likely to be killed by police. Read a few articles on the topic. Write your response using the articles as references. Give the websites used in your response. Your answer should be several sentences long with at least one website listed. This part of this problem will be graded after the due date.
...