Question

Load the dataset faithful from R. (a) Assign eruption durations to another variable. (b) Find the...

Load the dataset faithful from R.

(a) Assign eruption durations to another variable.

(b) Find the sample proportion of eruptions that last more than 4 min.

(c) Construct a 90% CI for the proportion (p) of eruptions that will last more than 4 min.

Homework Answers

Answer #1

R codes:

d=faithful
View(d)
e=d$eruptions
a=length(which(e>4)) # it gives number of eruptions >4
p=a/length(e)
p #it gives sample propotion
q=1-p
z=qnorm(0.95,0,1) # since we want two tailed confidence interval of 90%.
n=length(e)
CI_L=p-(z*sqrt(p*q/n)) # it gives lower limit of confidence interval
CI_U=p+(z*sqrt(p*q/n)) # it gives upper limit of confidence interval

Answers are as follows:

b. sample proportion of eruptions that last more than 4 min is p=  0.4852941

c. 90% CI for the proportion (p) of eruptions that will last more than 4 min is

(0.4354487 , 0.5351395 )

Know the answer?
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
Similar Questions
6. The data show the time intervals after an eruption​ (to the next​ eruption) of a...
6. The data show the time intervals after an eruption​ (to the next​ eruption) of a certain geyser. Find the regression​ equation, letting the first variable be the independent​ (x) variable. Find the best predicted time of the interval after an eruption given that the current eruption has a height of 149 feet. Height​ (ft) 108 124 108 152 109 138 137 103 Interval after​ (min) 77 73 81 87 69 91 90 68 What is the regression​ equation? ​...
Suppose researchers wanted to know about the prevalence of Mountain Dew consumption A study conducted in...
Suppose researchers wanted to know about the prevalence of Mountain Dew consumption A study conducted in 2018 collected data on which soft drinks Americans aged 18 to 29 years consumed in the last 4 weeks In that year , 43.60\% of respondents aged 18 to 29 years stated that they drank Mountain Dew within 4 weeks 3.8 Suppose the 90%confidence interval calculate for these data was (0.406, 0.466). Which of the following would be possible 95%confidence intervals for these same...
Two movie theaters are across the street from one another, in direct competition! Theater A takes...
Two movie theaters are across the street from one another, in direct competition! Theater A takes a sample of 50 days, and finds that in that sample an average of 547 customers come through the theater each day, with a standard deviation of 42. They proudly display their results. Theater B takes a sample of 30 days and finds that in their sample, they have an average of 571 customers, with a standard deviation of 59. They claim this means...
Find an article that discusses percentage of an issue. Use the p-hat from the article and...
Find an article that discusses percentage of an issue. Use the p-hat from the article and my ‘n’ of 125 to find the 90% confidence interval for the population proportion. Attach the article. Gwendolyn’s is a very good actress and usually gets a call back after an audition 78% of the time. What is the probability distribution table for her getting her first callback on her 1st thru 6th audition? Auditions 1 2 3 4 5 6 P(x) For my...
*Answer all questions using R-Script* Question 1 Using the built in CO2 data frame, which contains...
*Answer all questions using R-Script* Question 1 Using the built in CO2 data frame, which contains data from an experiment on the cold tolerance of Echinochloa crus-galli; find the following. a) Assign the uptake column in the dataframe to an object called "x" b) Calculate the range of x c) Calculate the 28th percentile of x d) Calculate the sample median of x e) Calculate the sample mean of x and assign it to an object called "xbar" f) Calculate...
1. A sample size of n = 70 is drawn from a population with proportion p...
1. A sample size of n = 70 is drawn from a population with proportion p = 0.32. Let p̂ be the sample proportion. Find p̂m and p̂s . Round the standard deviation to four decimal places. Find )28.0p̂P ( > . Find )40.0p̂P ( < 2.  On a certain television channel, 20% of the commercials are local advertisers. A sample of 150 commercials is selected. Would it be unusual for more than 26% of the commercials to be local advertisers?...
1. The breaking strengths (measured in dynes) of nylon fibers are normally distributed with a mean...
1. The breaking strengths (measured in dynes) of nylon fibers are normally distributed with a mean of 12,500 and a variance of 202,500. a) What is the probability that a fiber strength is more than 13,175? b) What is the probability that a fiber strength is less than 11,600? c) What is the probability that a fiber strength is between 12,284 and 15,200? d) What is the 90 th percentile of the fiber breaking strength? 2. Suppose that X, Y...
A random sample of 15 adult male wolves from the Canadian Northwest Territories gave an average...
A random sample of 15 adult male wolves from the Canadian Northwest Territories gave an average weight x1 = 96.0 pounds with estimated sample standard deviation s1 = 7.5 pounds. Another sample of 27 adult male wolves from Alaska gave an average weight x2 = 89.0 pounds with estimated sample standard deviation s2 = 7.5 pounds. (a) Categorize the problem below according to parameter being estimated, proportion p, mean μ, difference of means μ1 – μ2, or difference of proportions...
1. If Z is a standard normal random variable, find the value z0 for the following...
1. If Z is a standard normal random variable, find the value z0 for the following probabilities. (Round your answers to two decimal places.) (a) P(Z > z0) = 0.5 z0 = (b) P(Z < z0) = 0.8686 z0 = (c) P(−z0 < Z < z0) = 0.90 z0 = (d) P(−z0 < Z < z0) = 0.99 z0 = 2. A company that manufactures and bottles apple juice uses a machine that automatically fills 64-ounce bottles. There is some...
1. __________ can cause genes to move from one linkage group to another A. Inversions B....
1. __________ can cause genes to move from one linkage group to another A. Inversions B. Deletions C. UV-light exposure D. Translocations E. Unequal crossing over 2. Transposons that use RNA as an intermediate differ from DNA-only transposons in that the activity of former requires? A. Indirect repeat at one end and direct repeat at the other B. A gene for transposase C. A gene for reverse transcriptase D. A gene for RNA polymerase E. A selectable marker such as...