Question

In: Math

What is the formula using RStudio to plot these 3 columns of data? Y1 Y2 Y3...

What is the formula using RStudio to plot these 3 columns of data?

Y1 Y2 Y3
43595
43032
47474 27829
55141 35865
62946 40311
66920 47186
77191 56664
89661 68040
101373 64008
123904 79400
149453 96731
168672 100517
200977 89685
192985 105709
205667 120532
187450 127457
165613 117306
200871 106498
229394 79543
283229 106599
25092.23 289717 126328
24271.51 270585 160896
25828.99 279514 174346
27697.5 349768 176014
27956.23 339689 184417
29924.43 331610 174960
30216.83 351175 174960
32613.5 450569 104885
36053.17 421513 188069
38472.75 426166 236275
38420.89 265729 212260

Solutions

Expert Solution

y_2=c(43595,43032,47474,55141,62946, 66920,77191,89661,101373,123904, 149453,
168672,200977,192985,205667,187450, 165613,200871,229394,283229,289717,270585, 279514,349768,339689, 331610, 351175,
450569, 421513, 426166,265729)
y_1=c(0,0,0,0,0,0,
0,0,0,0, 0,
0,0,0,0, 0, 0, 0, 0, 0,
25092.23, 24271.51,25828.99, 27697.5, 27956.23, 29924.43, 30216.83, 32613.5, 36053.17, 38472.75, 38420.89)
y_3=c(0,0,27829,   35865,40311,47186,56664,68040,64008,79400,96731,100517,89685,105709,120532,127457,117306,106498,79543,106599,126328,160896,174346,176014,184417,174960,174960,104885,188069,236275,212260
)
i=1:31
plot(i,y_2)
lines(spline(i,y_2),col="red")
y_1
lines(i,y_1,col="blue")
lines(i,y_3,col="green")
  
  
red is y_2

blue is y_1

green is y_3  
  

The following code will plot the 3 columns of data in one plot . You can modify the plot by adding xlab ylab etc in the code
  
  
  


Related Solutions

Let Y1 < Y2 < Y3 < Y4 < Y5 be the order statistics of a...
Let Y1 < Y2 < Y3 < Y4 < Y5 be the order statistics of a random sample of size 5 from a continuous distribution with median m. What is P(Y2 < m < Y4)?
Suppose that a firm produces three outputs y1, y2 and y3 with 3 inputs z1, z2...
Suppose that a firm produces three outputs y1, y2 and y3 with 3 inputs z1, z2 and z3. The input-output requirements matrix is given by A below: A = (3 1 2) (2 5 1) (1 1 3) If the firm wants to produce 10 units of y1, 20 units of y2 and 10 units of y3, how much of z1, z2 and z3 will it require?
Let Y1 < Y2 < Y3 < Y4 be the order statistics of a random sample...
Let Y1 < Y2 < Y3 < Y4 be the order statistics of a random sample of size n = 4 from a distribution with pdf f(x) = 3X2, 0 < x < 1, zero elsewhere. (a) Find the joint pdf of Y3 and Y4. (b) Find the conditional pdf of Y3, given Y4 = y4. (c) Evaluate E(Y3|y4)
Let Y1 < Y2 < Y3 < Y4 < Y5 denote the order statistics of a...
Let Y1 < Y2 < Y3 < Y4 < Y5 denote the order statistics of a random sample of size 5 from a distribution having pdf f(x) = e−x, 0 < x < ∞, zero elsewhere. show that Y4 and Y5 – Y4 are independent. Hint: First find the joint pdf of Y4 and Y5.
Katie has 5 marbles in her book bag 3 Yellow (Y1, Y2, Y3) and 2 black...
Katie has 5 marbles in her book bag 3 Yellow (Y1, Y2, Y3) and 2 black marbles (B1 and B2). She is doing an experiment for her class where she picks one marble at a time randomly from her book bag. Katie stops picking marbles when she selects a black marble. 1. show the possible outcomes in a tree diagram 2. what are the possible values of the discrete random variable (x) that represent the total number of yellow marbles...
Year (Cash Flow) Y0 (−$8,400) Y1 (4,100) Y2 (4,600) Y3 (3,000) a. What is the profitability...
Year (Cash Flow) Y0 (−$8,400) Y1 (4,100) Y2 (4,600) Y3 (3,000) a. What is the profitability index for the cash flows if the relevant discount rate is 9 percent? b. What is the profitability index for the cash flows if the relevant discount rate is 14 percent? c. What is the profitability index for the cash flows if the relevant discount rate is 26 percent?
1.Suppose you are faced with the following spot rates: y1 = 9% y2 = 10% y3...
1.Suppose you are faced with the following spot rates: y1 = 9% y2 = 10% y3 = 11% Now consider a bond with a $100 face value maturing in 3 years. The bond pays annual coupon payments at a 6% coupon rate. What is the bond price? Select one: a. $92.63 b. $87.97 c. $80.86 d. $85.49 e. $100 2.A bond will sell at a discount when Select one: a. the coupon rate is greater than the current yield, and...
Let Y1, Y2, Y3, and Y4be independent, identically distributed random variables from a population with a...
Let Y1, Y2, Y3, and Y4be independent, identically distributed random variables from a population with a mean μ and a variance σ2.  Consider a different estimator of μ: W =  Y1+  Y2+ Y3+ Y4. Let Y1, Y2, Y3, and Y4be independent, identically distributed random variables from a population with a mean μ and a variance σ2.  Consider a different estimator of μ: W = 1/8 Y1+ 1/3 Y2+ 1/6 Y3+ 3/8 Y4. This is an example of a weighted average of the Yi. Show...
Anscombe's Data Observation x1 y1 x2 y2 x3 y3 x4 y4 1 10 8.04 10 9.14...
Anscombe's Data Observation x1 y1 x2 y2 x3 y3 x4 y4 1 10 8.04 10 9.14 10 7.46 8 6.58 2 8 6.95 8 8.14 8 6.77 8 5.76 3 13 7.58 13 8.74 13 12.74 8 7.71 4 9 8.81 9 8.77 9 7.11 8 8.84 5 11 8.33 11 9.26 11 7.81 8 8.47 6 14 9.96 14 8.1 14 8.84 8 7.04 7 6 7.24 6 6.13 6 6.08 8 5.25 8 4 4.26 4 3.1 4...
Use Euler's method with step size 0.5 to compute the approximate y-values y1, y2, y3 and...
Use Euler's method with step size 0.5 to compute the approximate y-values y1, y2, y3 and y4 of the solution of the initial-value problem. y' = y − 5x, y(3) = 1. y1 = ______ y2 =______ y3 =_______ y4=________ Please show all work, neatly, line by line and justify steps so that I can learn. Thank you!
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT