R Programming Exercise Book
Problem 57 (Difficulty: Easy)
A normal distribution has a standard deviation of 35 and mean of 15. From this generate 2 to 400 samples. After generating the samples utilize the plot command to plot the mean of the generated sample (x-axis) against the number of samples. Create a second plot of the density of the 400 samples that you generated.
This code can be solved in 4 to 8 lines.
For this problem use the following variables:
For the mean use: Mean_of_graph
For Standard Deviation use: Standard_deviation_of_data
R Programming Exercise Book Problem 57 (Difficulty: Easy) A normal distribution has a standard deviation of...
Now let's try a normal distribution. The first plot will be easy, but the second will be more difficult to do, so follow the instructions carefully. First we'll plot a standard normal, then we'll see what happens if you change the parameters. x <- seq (-3.291, 3.291, length.out=100) gives us 100 equally spaced values of x between -3.291 and 3.291. “seq” let's us generate a sequence of numbers, and “length.out” tells us how many numbers we want in the sequence....
PLEASE USE R CODE!! Continue to generate standard normal random variables until you have generated n of them, where n≥100 is such that S/sqrt(n) <0.1, where S is the sample standard deviation of the n data value. (a)How many normals do you think will be generated? (b)What is the sample mean of all the normals generated? (c)What is the sample variance?
Assume the grades has Normal distribution with the mean of 70, and the standard deviation of 15. Answer the following questions 1. Calculate 10t 25t* 50 75t and 90* percentiles once by converting to the standard Normal distribution, and again directly (using the non-standard Normal distribution) 2. What percentage of students score between 80 and 90 in the exam? 3. What percentage of students fail? 4. What percentage of students pass with A? 5. Generate a sample of size 16...
Problem 2. Assume that random variable X has normal distribution with mean 2 and standard deviation of 5 (1) Find the density of random variable Y = X3. (2) Find the mean and variance of random variable Y defined above in (1)
1. A normal distribution has a mean of μ = 60 and a standard deviation of σ = 12. For each of the following samples, compute the z-score for the sample mean and determine whether the sample mean is a typical, representative value or an extreme value for a sample of this size. a. M = 53 for n = 4 scores σ/ √n= 12/√4 =6 z=(53-60)/6 = -1.17 b. M = 53 for n = 9 scores σ/ √n=...
R studio #Exercise : Calculate the following probabilities : #1. Probability that a normal random variable with mean 22 and variance 25 #(i)lies between 16.2 and 27.5 #(ii) is greater than 29 #(iii) is less than 17 #(iv)is less than 15 or greater than 25 #2.Probability that in 60 tosses of a fair coin the head comes up #(i) 20,25 or 30 times #(ii) less than 20 times #(iii) between 20 and 30 times #3.A random variable X has Poisson...
Use Microsoft Excel to solve the problem, and either show a
screenshot of how you solved it, and or explain each command that
you used.
Use Excel function int (rand()/(1-p)) for generating random numbers of value 0 and 1 with probability P(-1) p. 2, Make in Excel three tables size 50 x 100, 250 × 100, 1000 × 100 with Bernoulli distributed random numbers for p(1) 3/13. Use the generated tables for calculating new column of random numbers equal to...
Nay
programming languge is fine (MatLab, Octave, etc.)
This is the whole document this last picture i sent is the
first page
5. Write and save a function Sphere Area that accepts Radius as input argument, and returns SurfaceArea (4 tt r) as output argument. Paste the function code below. Paste code here 6. Validate your Sphere Area function from the command line, checking the results against hand calculations. Paste the command line code and results below. 7. Design an...
Someone plz plz help with this Statistics Intro to R programming
question!!!
Here are the examples and follow by my question!!
Thank you so much!! I appreciate it
!!!!My question!!!!
Question Type 1: If possible, calculate the 90% confidence intervals for the temperature it takes for crickets to chirp 15 chirps per second. Code (you must copy and paste your code like below in blue color): # Reading in the data Crickets-read.table(C:/Desktop/CricketChirpsvsTemperature.csv', header TRUE, #View Data View Crickets) #Data analysis...