Question

In: Statistics and Probability

solve using r and Consider the data birds.txt. A wildlife ecologist measured X1 = Tail length...

solve using r and

Consider the data birds.txt. A wildlife ecologist measured X1 = Tail length (in millimeters)

and X2 = Wing length (in millimeters) for a sample of n = 45 female hook-billed kites.

(a) Evaluate the sample mean vector x.

(b) Evaluate the sample variance-covariance matrix, S.

(c) Determine the eigenvalue and eigenvector pairs for S.

(d) Evaluate the sample correlation matrix R. Interpret the sample correlation, r12.

the data is

Tail  Wing 
  191  284
  197  285
  208  288
  180  273
  180  275
  188  280
  210  283
  196  288
  191  271
  179  257
  208  289
  202  285
  200  272
  192  282
  199  280
  186  266
  197  285
  201  295
  190  282
  209  305
  187  285
  207  297
  178  268
  202  271
  205  285
  190  280
  189  277
  211  310
  216  305
  189  274
  173  271
  194  280
  198  300
  180  272
  190  292
  191  286
  196  285
  207  286
  209  303
  179  261
  186  262
  174  245
  181  250
  189  262
  188  258

Solutions

Expert Solution

> Tail<-c(191,197,208,180,180,188,210,196,191,179,208,202,200,192,199,186,197,201,190,209,187,207,178,202,205,190,189,211,216,189,173,194,198,180,190,191,196,207,209,179,186,174,181,189,188)
> Wing<-c(284,285,288,273,275,280,283,288,271,257,289,285,272,282,280,266,285,295,282,305,285,297,268,271,285,280,277,310,305,274,271,280,300,272,292,286,285,286,303,261,262,245,250,262,258)
> A<-data.frame(Tail,Wing)

a.

> mean(Tail)
[1] 193.6222
> mean(Wing)
[1] 279.7778
b.

> var(Tail)
[1] 120.6949
> var(Wing)
[1] 208.5404
> cov(A)
Tail Wing
Tail 120.6949 122.3460
Wing 122.3460 208.5404
c.

> eigen(B)
eigen() decomposition
$values
[1] 294.60898 34.62637

$vectors
[,1]    [,2]
[1,] 0.5753739 -0.8178905
[2,] 0.8178905 0.5753739
d.

> cor(A)
Tail Wing
Tail 1.0000000 0.7711697
Wing 0.7711697 1.0000000
The correlation between Tail Length and Wing Length for the female Hook-billed Kites is 77.11697%, a Fairly Strong relation between the two variables


Related Solutions

solve using r and Consider the data birds.txt. A wildlife ecologist measured X1 = Tail length...
solve using r and Consider the data birds.txt. A wildlife ecologist measured X1 = Tail length (in millimeters) and X2 = Wing length (in millimeters) for a sample of n = 45 female hook-billed kites. (a) Construct both Q-Q plots and histograms from the marginal distributions of tail length (X1) and wing length (X2). Do these data appear to be normally distributed? Discuss. (b) Is the bivariate normal distribution a viable population model? Discuss. (c) Consider the variable, wing length...
For expert using R I try to solve this question((USING DATA FAITHFUL)) but each time I...
For expert using R I try to solve this question((USING DATA FAITHFUL)) but each time I solve it, I have error , I try it many times. So,everything you write will be helpful.. Modify the EM-algorithm functions to work for a general K component Gaussian mixtures. Please use this function to fit a K= 1;2;3;4 modelto the old faithful data available in R (You need to initialize the EM-algorithm First ).    Which modelseems to t the data better? (Hint:...
1. Solve linear system using Gaussian elimination a) x1 + 2x2 + x3 = 2 -x1...
1. Solve linear system using Gaussian elimination a) x1 + 2x2 + x3 = 2 -x1 − 3x2 + 2x3 = -3   x1 − 6x2 + 3x3 = -6 b) -2b + 2c = 10 3a + 12b -3c = -6 6a + 18b + 0c = 19 c) 4x - 1y + 4z + 3t = 5 1x - 4z + 6t = 7 5x - 5y + 1z + 2t = -5 4x + 1y + 3z +...
How can this problem be done WITHOUT using R? For the bird egg length data set,...
How can this problem be done WITHOUT using R? For the bird egg length data set, conduct an appropriate test to determine if bird egg length differs among species. Assume that before you conducted this test you hypothesized about 3 contrasts a priori. These were that (1) Meadow Pipits, Wagtails, and Robins would be different than the other 3 bird species, (2) Hedge Sparrows would differ from Wrens, and (3) Tree Pipits would be different than all other birds. Use...
Consider the following data between number of visitors x and the amount of wildlife seen in...
Consider the following data between number of visitors x and the amount of wildlife seen in Cheaha State Park y, visitors wildlife 500 25 450 35 475 30 420 32 555 28 600 22 375 19 (a) Find the mean of x and the mean of y. (b) Find the standard deviation of x and the standard deviation of y. Use Excel. (c) Find the correlation coefficient. Use Excel. (d) Find the slope and intercept of the linear regression line....
Consider the following constrained maximization problem. maxln(x1,x2) s.t.z-x1-x2=0 Solve for x1and x2using substation method Solve for...
Consider the following constrained maximization problem. maxln(x1,x2) s.t.z-x1-x2=0 Solve for x1and x2using substation method Solve for x1and x2using Lagrange’s method
Solve using matlab code!! Use the graphical method to solve 4x1 − 8x2 = −24 x1...
Solve using matlab code!! Use the graphical method to solve 4x1 − 8x2 = −24 x1 + 6x2 = 34 Check your results by substituting them back into the equations.(include this on the code)
solve using r if coding is required The data in air-pollution.txt are 42 measurements on air-pollution...
solve using r if coding is required The data in air-pollution.txt are 42 measurements on air-pollution variables recorded at noon in the Los Angeles area on different days. Variables: X1 = Wind, X2 = Solar radiation, X3 = Carbon monoxide, X4 = Nitric oxide, X5 = Nitrogen dioxide, X6 = Ozone, and X7 = Hydrocarbon content. (a) Evaluate the sample mean vector x. (b) Evaluate the sample variance-covariance matrix, S, and its inverse, S−1. (c) Evaluate the sample correlation matrix...
Using Matlab 1. Solve the following equations set f1 (x1,x2) = sin (sin (x1)) +x2 f2...
Using Matlab 1. Solve the following equations set f1 (x1,x2) = sin (sin (x1)) +x2 f2 (x1,x2) = x1+ e^(x2) a) Can this equation set be solved by the fixed - point method with the following expressions? And why? Show your analysis with a 2D graph. g1 (x1,x2) = -e^(x2) g2 (x1,x2) = -sin⁡(x1) b) Use Newton Raphson Method with initial values x1 = -2, x2 = 1.5. (8 significant figures. Please submit the code and results.)
Using R to solve these questions: 1.Consider the following dataset: fuel <- c(0.95, 0.52, 0.82, 0.89,...
Using R to solve these questions: 1.Consider the following dataset: fuel <- c(0.95, 0.52, 0.82, 0.89, 0.81) The numbers correspond to the amount of fuel burnt by a new type of high-efficiency engine under a randomised test load. A value of 1 corresponds to the same fuel efficiency as the old engine, values greater than one correspond to more fuel burned (hence lower efficiency) and values less than one correspond to greater efficiency. (a) One-sided or two-sided test? Justify. (b)...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT