The following table contains the age of car x1 (in years) and their selling price x2 (in thousands of dollars). x1 3 5 5 7 7 7 8 9 10 11 x2 2.3 1.9 1 0.7 0.3 1 1.05 0.45 0.7 0.4 (a) Compute the generalized distance for each data point. (b) Construct the histogram for marginal variables x1 and x2. Are they normally distributed individually? (c) Construct the appropriate Q-Q plot for the distance data obtained in (a), does (x1, x2) follow a normal distribution jointly? (d) Determine the power transformation for x1 and x2 such that they are marginally normal. (Note: You need to construct the relevant Q-Q plots to demonstrate that the transformed x1 and x2 are normal.)
(a)
x1=c(3, 5, 5, 7, 7, 7, 8, 9, 10, 11)
d1=abs(x1-mean(x1))
4.2 2.2 2.2 0.2 0.2 0.2 0.8 1.8 2.8 3.8
x2=c(2.3, 1.9, 1, 0.7, 0.3, 1, 1.05, 0.45, 0.7, 0.4)
d2=abs(x2-mean(x2))
1.32 0.92 0.02 0.28 0.68 0.02 0.07 0.53 0.28 0.58
(b) We use R command to solve question.
x1=c(3, 5, 5, 7, 7, 7, 8, 9, 10, 11)
x2=c(2.3, 1.9, 1, 0.7, 0.3, 1, 1.05, 0.45, 0.7, 0.4)
par(mfrow=c(1,2))
hist(x1)
hist(x2)

Here, we see from histogram that x1 are normally distributed but x2 is not.
(c)
x1=c(3, 5, 5, 7, 7, 7, 8, 9, 10, 11)
x2=c(2.3, 1.9, 1, 0.7, 0.3, 1, 1.05, 0.45, 0.7, 0.4)
par(mfrow=c(1,2))
qqnorm(x1)
qqline(x1)
qqnorm(x2)
qqline(x2)

As all the points of x1 fall approximately along this reference line, we can assume normality.
But higher values of x2 is far from the line. So, it is not normal.
(d)
If we taken exponential transformation in x2 variable, then it may be approximate to normal
The following table contains the age of car x1 (in years) and their selling price x2...
please answer the following using the r code provided
. The data set below contains information about the gasoline mileage performance for 32 au- tomobiles. We are interested in developing a model to predict the miles per gallon () using related predictor variables. The variables in the study are Dependent variable: Miles per gallon (v) Independent variables: ri horsepower (ft-lb) ra: torque (ft-lb) r: horsepower+torque (ft-lb) rs: carburetor (barrels) (a) We first start by fitting a model using y and...
The data shown below represent the age in weeks) at which babies first crawl, based on a survey of 12 mothers. Complete parts (a) through (c) below. 52 30 44 350 47 37 56 20 32 26 37 35 Click here to view the table ortical comelation coefficient les for normal robability to Click here to view.cage 1 of the standard normal distribution table. Click here to view page 2 of the standard romal distribution , Click here to view...