Question

*has to with R program, I need the code for R script*

I already have questions 1 through solved and posted a picture of them. I need help with questions 4-11 please!!! thank u


4 plots a histogram showing the distribution of your X. 5 generates a data series Y with a length equal to howmany 6 plots
Detailed code for all the question given Coveance betanenand
0 0
Add a comment Improve this question Transcribed image text
Answer #1

define how many howmany <- 182 Data series x with length equal to howmany and a non normal but random distribution. ### CreHistogram of X 100 80 60 Frequency 40 20 10 1 20 30 40 50 5. Data series Y with length equal to howmany ### creating chisqure6.Plot the distribution of Y hist (Y) Histogram of Y 60 50 40 Frequency 30 20 10 0 50 100 150 7 Assign X to new variable z z8 Calcuate the variance in Z cal_var <- function () { n <- length (v) ## length of v sum_v <- sum (v) *** sum of v mean_v <-0 20 40 60 80 100 140 IIIIIIII OP 00000 0008 oo 0 O oo 00 OO 0 0000 90 0 0 | 0 10 0° 800 08 0 0 20 Plot of Y against X O 30 4

Add a comment
Know the answer?
Add Answer to:
*has to with R program, I need the code for R script* I already have questions...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please I need the R program code: in part b How to find the table in...

    Please I need the R program code: in part b How to find the table in R program? pulaiuit nvesligaieu wItH Fespect to the estimate of 1 In the assumed model. B. A test is to be run on a given process for the purpose of determining the effect of an independent variable X (such as process emperature) on a certain characteristic property of the finished product Y (such as density). Four observations are to be taken at each of...

  • I need a function in R or just code in R that will solve this. (Thanks...

    I need a function in R or just code in R that will solve this. (Thanks in advance) 1. The probability density function for Exponentiated Weibull distribution is and its corresponding cdf is given by F(x) 1-exp(x) This distribution is a popular distribution in analyzing lifetime data. a) b) Find the mean and variance when-10, α 2 and β-4 Compute the probability when the random variable X is between two standard deviation of the sample mean, where λ-10, α-2 and...

  • Please answer this question in both mathematically and with R. I need R code also.. Its...

    Please answer this question in both mathematically and with R. I need R code also.. Its urgent... 3.14 For the variables in Table 3.4, define z 3y1 y2 2y3 (3,-1,2)y. Find z and sz in two ways: (a) Evaluate z for each row of Table 3.4 and find Z and s directly from 21,22,., 210 using (3.1) and (3.5). (b) Use za'y and s2- a'Sa, as in (3.54) and (3.55). The sample mean of a random sample of n observations...

  • Hi I need the R code of the the below problem from Introducing Monte Carlo Methods...

    Hi I need the R code of the the below problem from Introducing Monte Carlo Methods with R: Exercise 2.2 Two distributions that have explicit forms of the cdf are the logis- tic and Cauchy distributions. Thus, they are well-suited to the inverse transform method. For each of the following, verify the form of the cdf and then generate 10,000 random variables using the inverse transform. Compare your program with the built-in R functions rlogis and rcauchy, respectively e-(x-μ) /...

  • 3. Let Zt) be a Gaussian white noise, that is, a sequence of i.i.d. normal r.v.s...

    3. Let Zt) be a Gaussian white noise, that is, a sequence of i.i.d. normal r.v.s each with mean zero and variance 1. Let Y% (a) Using R generate 300 observations of the Gaussian white noise Z. Plot the series and its acf. (b) Using R, plot 300 observations of the series Y -Z. Plot its acf. c) Analyze graphs from (a) and (b). Can you see a difference between the plots of graphs of time series Z and Y?...

  • I am supposed to answer these questions using R software. However, I have little to no experience...

    I am supposed to answer these questions using R software. However, I have little to no experience with R or any other type of programming. Can someone please help me with the R code for these questions? Q1. Suppose you have a population of size 5 [ie. N= corresponding numbers are: You measure sorne quantity (X) and the 21,22,23, 24,25 a) Calculate the population mean () b) Calculate the population variance (ơ2) using the formula ơ2-41 -P Q2. Imagine you...

  • I need help with Binding my listbox to my entity in c#. w/ code if possible...

    I need help with Binding my listbox to my entity in c#. w/ code if possible I have using(var db = new database_name) { var r = sql statement; I need help with whats next. My entity has diff rows and i need to display them in my listbox.Thank you

  • This is the given code: /** * This program uses a Taylor Series to compute a...

    This is the given code: /** * This program uses a Taylor Series to compute a value * of sine. * */ #include<stdlib.h> #include<stdio.h> #include<math.h> /** * A function to compute the factorial function, n!. */ long factorial(int n) { long result = 1, i; for(i=2; i<=n; i++) { result *= i; } return result; } int main(int argc, char **argv) { if(argc != 3) { fprintf(stderr, "Usage: %s x n ", argv[0]); exit(1); } double x = atof(argv[1]); int...

  • I need to run each questions also with the outputs print 1. 3.1 Write an if...

    I need to run each questions also with the outputs print 1. 3.1 Write an if statement that assigns 0 to x when y is equal to 20. If (y == 20) X=0; 2. 3.2 Write an if statement that multiplies payRate by 1.5 if hours is greater than 40. If (hours > 40) payRate - payRate * 1.5; 3. 3.12 Write nested if statements that perform the following test: If amounti is greater than 10 and amount 2 is...

  • Please explain your work so I can replicate it and practice. Please also include R code,...

    Please explain your work so I can replicate it and practice. Please also include R code, not just R outputs. Thank you. 2, (3 points) Let X be a standard normal random variable. Let Y = X2. (Use R and give code.) (a) Find P(-1.5 < X < 2.5) (b) Find P(Y1 Notes: . You are not expected to and don't need to figure out the distribution of Y. Just convert the probability for Y to a probability involving X...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT