Question

In: Statistics and Probability

Use R studio to answer the following questions location 1 location 2 63.9 66.8 71.3 63.8...

Use R studio to answer the following questions

location 1

location 2

63.9

66.8

71.3

63.8

70.6

60.7

54.6

66.2

63.7

59.5

61

59.5

69.8

66.1

72.4

64.6

64.4

64.8

69.8

61.6

65.6

61.3

62.8

64.9

63.6

66.2

Temperatures are extremely variable in sections of the Colorado River near the Glen Canyon Dam.  Researchers measure temperature in two locations (1 and 2) with samples of size n1 = 10 and n2 = 16, and calculate variances of s12 = 20 °C 2and s22 = 15 °C 2.

  1. Construct a 98% confidence interval for the ratio s12/s22. (Hint: copy this data into a .csv file and read into R, or read in as vectors.)
  2. Interpret this interval.
  3. Test the hypothesis that the two variances are equal at a = 0.10. Be sure to list (i) your hypotheses, (ii) test statistic, (iii) decision, and (iv) conclusion.

Solutions

Expert Solution

using R we have

> location1=c(63.9,63.8,54.6,59.5,69.8,64.6,69.8,65.6,62.8,63.6)
> location2=c(66.8,70.6,66.2,61,66.1,64.4,61.6,61.3,64.9,66.2,71.3,60.7,63.7,59.5,72.4,64.8)
> var.test(location1, location2, ratio = 1, alternative = c("two.sided"),conf.level = 0.98)

   F test to compare two variances

data: location1 and location2
F = 1.3332, num df = 9, denom df = 15, p-value = 0.598
alternative hypothesis: true ratio of variances is not equal to 1
98 percent confidence interval:
0.342316 6.615682
sample estimates:
ratio of variances
1.333248

1) a 98% confidence interval for the ratio s12/s22 is  (0.342316 , 6.615682)

2 ) we are 98% confident that the the ratio of population variances of two locations lies in between  (0.342316 , 6.615682) .

3)the null and alternative hypotheses is

Ho:

Ha:

(ii) test statistic from R is 1.3332

p value is 0.598

(iii) decision: since p valjue is greater than 0.10 so we don not reject Ho

(iv) conclusion: we wil conclude that the population variances of two locations are equal


Related Solutions

please use R studio to answer the following questions 1. An eductional theorist collects behavioural data...
please use R studio to answer the following questions 1. An eductional theorist collects behavioural data from two groups of children in an early childhood center. She measures how much time the children are active (e.g. running or swinging on the monkey bars) in minutes. The first group of children are encouraged to run about and as such are expected to be active; the second group is encouraged to sit still and paint, and are expected to be less active....
Using R Studio: 1)Use the `mtcars` data (`data(mtcars)`) to answer these questions: a) Which rows of...
Using R Studio: 1)Use the `mtcars` data (`data(mtcars)`) to answer these questions: a) Which rows of the data frame contain cars that weigh more than 4000 pounds (the variable is `wt`, units are 1000 pounds). b) Which cars are these? (*Hint:* since rows are named by car name, use `row.names()`). c) What is the mean displacement (in inches^3^ ) for cars with at least 200 horsepower (`hp`). d) Which car has the highest fuel economy (`mpg`)? e) What was the...
Use R studio to answer the following. A study was carried out to investigate the variation...
Use R studio to answer the following. A study was carried out to investigate the variation of rainbow trout weights in a certain creek. The weights (in kilograms) of 10 randomly selected fish are listed below:       0.78, 0.45, 0.35, 0.76, 0.57, 0.42, 0.33, 0.68, 0.66, 0.42 Assume that the population is approximately normally distributed.  Hint: make a vector to enter the weight data into R, e.g.: > wt = c(0.78, ..., 0.42) Find the 90% confidence interval for the unknown population...
1. Basic use of R/R Studio. Solve the following problem in R and print out the...
1. Basic use of R/R Studio. Solve the following problem in R and print out the commands and outputs. (a) Create a vector of the positive odd integers less than 100; Remove the values greater than 60 and less than 80; Find the variance of the remaining set of values (b) What’s the difference in output between the commands 2*1:5 and (2*1):5? Why is there a difference? (c) If you wanted to enter the odd numbers from 1 to 19...
Using R-Studio please answer the following questions and show your code. 1. Julie buys a take-out...
Using R-Studio please answer the following questions and show your code. 1. Julie buys a take-out coffee from one of two coffee shops on a random basis: Ultimo Coffee and Joe’s Place. This month, she measured the temperature of each cup immediately after purchase, using a cooking thermometer. Sample data is shown below, temperatures are in Fahrenheit. ultimo =  c(171,161,169,179, 171,166,169,178,171, 165,172,172) joes = c(168,165,172, 151,162,158,157,160, 158,160,158,164) State the null and alternative hypothesis in your own words. What type of statistical...
r studio answer to these questions What is the intercept parameter (2dp) for the regression equation...
r studio answer to these questions What is the intercept parameter (2dp) for the regression equation of height (y) versus age (x) using the pine_growth.csv data? What is the total amount of variation explained by the regression model (SSr) of height (y) versus age (x) using the pine_growth.csv data? What is the residual error sum of squares (SSe) of a regression model of height (y) versus age (x) using the pine_growth.csv data. Use your regression equation fitted to the pine_growth.csv...
            Use the following information to answer questions 1 and 2.             This is the shareholders’...
            Use the following information to answer questions 1 and 2.             This is the shareholders’ equity of Pinnacle on Dec 31, 2016. Common share (200,000 issued and outstanding)                                    $   800,000 7 percent, preferred shares (20,000 authorized, 18,000 issued)                    200,000 Retained earnings                                                                                          650,000 Total                                                                                                          $ 1,650,000 Notes: Preferred shares were issued on Jan 1, 2013. No dividends declared or paid since 2013 until Pinnacle declared and paid $400,000 dividends on Dec 31, 2016. Assuming preferred shares...
Please Use R studio to answer the question. This is the Statistics section of Comparing Groups....
Please Use R studio to answer the question. This is the Statistics section of Comparing Groups. One month before the election, a poll of 630 randomly selected votes showed 54% planning to vote for a certain candidate. A week later, it became known that he had had an extramarital affair, and a new poll showed only 51% of 1010 voters supporting him. Do these results indicate a decrease in voter support fo his candidacy? a) Test an appropriate hypothesis as...
Use the R script to answer the following questions: (write down your answers in the R...
Use the R script to answer the following questions: (write down your answers in the R script with ##) (1). Import FarmSize.csv to Rstudio. Use the correct function to build a linear regression model predicting the average size of a farm by the number of farms; Give the model a name (e.g. FarmSize_Model). Call the model name to inspect the intercept and slope of the regression model. Verify the answers in your manual calculation. (2). Use the correct function to...
Use the R script to answer the following questions: (write down your answers in the R...
Use the R script to answer the following questions: (write down your answers in the R script with ##) (1). Import FarmSize.csv to Rstudio. Use the correct function to build a linear regression model predicting the average size of a farm by the number of farms; Give the model a name (e.g. FarmSize_Model). Call the model name to inspect the intercept and slope of the regression model. Verify the answers in your manual calculation. (2). Use the correct function to...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT