1 answer

Using R Studio, Generate a standard normal random. using rnorm() Check whether this number is >1.96...

Question:

Using R Studio,

Generate a standard normal random. using rnorm()

Check whether this number is >1.96 or <-1.96.

Replicate this 1000 times and count the number of observations that are greater than 1.96 or less than -1.96.

Calculate the ratio of this number to the the number of replications and see whether this is close to 0.05.

HINT:

num <- 0

for (i in 1 : 1000) {

a <-

}

num/1000


Answers

To generate standard normal variable

rnorm(1,0,1)

[1] -0.5811594

The number is not >1.96 or <-1.96

Replication

num <- 0

for (i in 1 : 1000) {

a=rnorm(1,0,1)

if(a>1.96||a<(-1.96))

{num=num+1}

}

num

[1] 53

There are 53 observations <-1.96 or

> 1.96

Required ratio

num/1000

[1] 0.053

The number is close to 0.05

.

Similar Solved Questions

1 answer
Week 5 CNOW Assignment Calculator provided below. Rydell's cost of capital is 8%. Project A Project...
Week 5 CNOW Assignment Calculator provided below. Rydell's cost of capital is 8%. Project A Project B This project requires an initial investment of $167,500. The project will have a life of 8 years. Annual revenues associated with the project will be $130,000 and expenses associated with the pr...
1 answer
I. USE THE INFORMATION BELOW TO ANSWER PROBLEMS A researcher wished to test a claim that...
I. USE THE INFORMATION BELOW TO ANSWER PROBLEMS A researcher wished to test a claim that the proportion of black drivers stopped by the police is higher than that of white drivers. The black drivers will be considered population 1 and the white drivers as population 2 1. Pick the most appropriate an...
1 answer
Assume that you have a population in Hardy-Weinberg equilibrium for a particular trait Within this population,...
Assume that you have a population in Hardy-Weinberg equilibrium for a particular trait Within this population, what will be the proportion of matings between homozygotes?...
1 answer
1. If Khas dimensions ML2/T 2, the α in K A. have the dimensions ML/T2, B....
1. If Khas dimensions ML2/T 2, the α in K A. have the dimensions ML/T2, B. have the dimensions M. C. have the dimensions L/T2 D. have the dimensions L2/T2 E. be dimensionless. mv 2 must...
1 answer
2. A motor with armature moment of inertia,Ja 0.02 kg-m2, is directly coupled to a m ass Jı = 0.0...
2. A motor with armature moment of inertia,Ja 0.02 kg-m2, is directly coupled to a m ass Jı = 0.06 kg-m2. The motor is also con nected to a massless gearbox with N1-15 teeth on the input side and N2 75 teeth on the output side. Coupled to the gearbox output shaft is a load, J 1 kg m2. Refer to ...
1 answer
A massless rigid rod is friction free at the left end. At the center of the...
A massless rigid rod is friction free at the left end. At the center of the pole are two linear springs Attach and on the right end of the rod is a point mass. Determine the eigenvalue frequency for the system! 2L...
1 answer
Suppose that the moment generating function of X is M(t) 1-2t . Find E[X]rounded to nearest...
Suppose that the moment generating function of X is M(t) 1-2t . Find E[X]rounded to nearest .xx....
1 answer
How do you solve #abs(2/3x-1/3)<=1/3#?
How do you solve #abs(2/3x-1/3)<=1/3#?...
1 answer
How would you carry out the following conversions? Multiple steps would be required. Separate the steps...
How would you carry out the following conversions? Multiple steps would be required. Separate the steps with numbers. Be specific with your reaction conditions as solvents and catalyst may be needed. CH Н В HC C CH(CH3)2 H3CC C CH(CH3)2 С Он Н2 C(CH3)2 Hа...
1 answer
1. Synthesize cyclohexene starting from a cyclohexane ring in 2 or 3 steps. 2. Synthesize 1-methoxy-1-methylcyclopentan-2-ol...
1. Synthesize cyclohexene starting from a cyclohexane ring in 2 or 3 steps. 2. Synthesize 1-methoxy-1-methylcyclopentan-2-ol (picture below) starting from any alkane in at least 2 steps Please show arrows and name compounds. Thank you :) esis of cach of the follo OH OCH...
1 answer
Watts and Lyon are forming a partnership. Watts invests $36,000 and Lyon invests $54,000. The partners...
Watts and Lyon are forming a partnership. Watts invests $36,000 and Lyon invests $54,000. The partners agree that Watts will work one-fourth of the total time devoted to the partnership and Lyon will work three-fourths. They have discussed the following alternative plans for sharing income and loss:...
2 answers
Two narrow paralle slits illuminated by tellow light with a wavelength of = 600 nm produce...
Two narrow paralle slits illuminated by tellow light with a wavelength of = 600 nm produce fringes with a separation of 0.50 mm on a screen 2m away, Waht is the distnce between the slits ?...
1 answer
Part E need help on Consider the following kinetic mechanism.: (a) Write the equation that describes...
Part E need help on Consider the following kinetic mechanism.: (a) Write the equation that describes the concentration of E as a function of time. (b) Write the equation that describes the concentration of ES as a function of time. (c) Write the equation that describes the concentration of EP as...
1 answer
Can someone please do this so i can double check my answer please :)
a) If 70.8% of Earth’s surface is covered in water then how much energy is required toheat the top 10 m of this water by 3 oC?b) Assuming the Sun delivers an average of 1 kW m-2 to the side of Earth facing the Sun and assuming no heat loss, how long will it take to for the heating in part a)to...
1 answer
Problem 5-19B Target pricing and target costing with ABC Klein Corporation manufactures two models of watches....
Problem 5-19B Target pricing and target costing with ABC Klein Corporation manufactures two models of watches. Model Wonder displays cartoon characters and has simple features designed for kids. Model Marvel has sophisticated features such as dual time zones and an attached calculator. Klein’s...
1 answer
Consider the following boundary value problem, r?y" + 19xy' + (81 +2) y = 0, y(1)...
Consider the following boundary value problem, r?y" + 19xy' + (81 +2) y = 0, y(1) = 0, y(e) = 0 (a) Find the eigenvalues. (b) Find the eigenfunctions. Take the arbitrary constant (either cı or c2) from the general solution to be 1....
1 answer
17. Explain how you found the linear correlation coefficient. Find the value of the linear correlation...
17. Explain how you found the linear correlation coefficient. Find the value of the linear correlation coefficient r. Points: 5 17) The paired data below consist of the test scores of 6 randomly selected students and the number of hours they studied for the test. Hours 5 10 4 6 10 9 Score 64 86 6...