Question

In: Statistics and Probability

Please ANSWER IN R CODE. Problem: Vital capacity is a measure of the amount of air...

Please ANSWER IN R CODE.

Problem:

Vital capacity is a measure of the amount of air that someone can exhale after taking a deep breath, Data was collected on brass players and a control group.

Brass Player Control Group
4.7 4.2
4.6 4.7
4.3 5.1
4.5 4.7
5.5 5.0
4.9
5.3
  1. Put the data into a "long format" data frame. That is one column for vital measure and second character or factor column with the label of "Brass" or "Control".
  2. Conduct a test using "t.test" to determine whether the population mean for brass is larger than that for control.
  3. Provide the equivalent 95% confidence interval for the difference of two population means means.
  4. A researcher claims that in theory the "spread/variance" in the two populations is the same. Repeat step 2 utilizing this assumption with the argument "var.equal"

Please provide all relevant work. That is your commands, the output and any interpretations/conclusions that are necessary.

Solutions

Expert Solution

The R output is:

The R code is:

Brass <- c(4.7,4.6,4.3,4.5,5.5,4.9,5.3)
Control <- c(4.2,4.7,5.1,4.7,5)
t.test(Brass, Control, alternative= "greater", conf.level = 0.95)
t.test(Brass, Control, alternative= "greater", conf.level = 0.95, var.equal = TRUE)

The hypothesis being tested is:

H0: µ1 = µ2

H1: µ1 > µ2

The p-value is 0.3525.

Since the p-value (0.3525) is greater than the significance level (0.05), we cannot reject the null hypothesis.

Therefore, we cannot conclude that the population mean for brass is larger than that for control.

The 95% confidence interval for the difference of two population means is between -0.3241937 and 0.

The hypothesis being tested is:

H0: µ1 = µ2

H1: µ1 > µ2

The p-value is 0.3577.

Since the p-value (0.3577) is greater than the significance level (0.05), we cannot reject the null hypothesis.

Therefore, we cannot conclude that the population mean for brass is larger than that for control.

The 95% confidence interval for the difference of two population means is between -0.3394088 and 0.

Please give me a thumbs-up if this helps you out. Thank you!


Related Solutions

***This problem must be done using R so please provide the R code used to find...
***This problem must be done using R so please provide the R code used to find the solution. I have provided the data in data-wtLoss.txt below the question. I will also give "thumbs-up for correct R code" Thanks in advance.*** The file “data-wtLoss.txt” contains data on weight loss and self esteem evaluation at three time points over a period of three months for 34 individuals who are randomly selected from a residential area. These individuals are randomly assigned to one...
***This problem must be done using R so please provide the R code used to find...
***This problem must be done using R so please provide the R code used to find the solution. I have provided the data in data-wtLoss.txt below the question. I will also give "thumbs-up for correct R code" Thanks in advance.*** The file “data-wtLoss.txt” contains data on weight loss and self esteem evaluation at three time points over a period of three months for 34 individuals who are randomly selected from a residential area. These individuals are randomly assigned to one...
The Book of R (Question 20.2) Please answer using R code. Continue using the survey data...
The Book of R (Question 20.2) Please answer using R code. Continue using the survey data frame from the package MASS for the next few exercises. The survey data set has a variable named Exer , a factor with k = 3 levels describing the amount of physical exercise time each student gets: none, some, or frequent. Obtain a count of the number of students in each category and produce side-by-side boxplots of student height split by exercise. Assuming independence...
Use R programming language to answer and please so show the code as well. A paper...
Use R programming language to answer and please so show the code as well. A paper manufacturer studied the effect of three vat pressures on the strength of one of its products. Three batches of cellulose were selected at random from the inventory. The company made two production runs for each pressure setting from each batch. As a result, each batch produced a total of six production runs. The data follow. Perform the appropriate analysis. Table is below Batch Pressure...
I need this in R code please: Use the dataset ’juul’ in package ’ISwR’ to answer...
I need this in R code please: Use the dataset ’juul’ in package ’ISwR’ to answer the question. (1) Conduct one-way ANOVA test to test if the mean of igf1 of each level of tanner are the same? (2) What is the mean of igf1 in each level of tanner? (3) If there is any difference, which ones appear to be different? (Use pairwise t test for each pair of level with bonferroni method)
Use R to answer the following question. Copy and paste the code and answer from R...
Use R to answer the following question. Copy and paste the code and answer from R into your paper. On the average,five cars arrive at a particular car wash every hour. Let X count the number of cars that arrive from 10 AM to 11 AM. Then X ∼pois(lambda = 5). Also, μ = σ2 = 5.  What is the probability that no car arrives during this period?  Suppose the car wash above is in operation from 8AM...
This is an intro to java question. Please answer with pseudocode and code. Problem 2: RSA...
This is an intro to java question. Please answer with pseudocode and code. Problem 2: RSA Public Key (10 points) (Cyber Security) RSA is an asymmetric encryption scheme, where a public key is used to encrypt data and a different, private key decrypts that data. RSA public/private keys are generated from two prime numbers, typically very large ones. The idea behind RSA is based on the fact that its difficult to factorize very large integers. RSA public key generation is...
Please answer everything in R programming language. Show the code to me as well. Thank You...
Please answer everything in R programming language. Show the code to me as well. Thank You 1. Problem Open dataset stat500. Package: faraway. Use R (a) Calculate the correlation matrix. 10. (b) Plot total vs hw, to see how strong the relationship. (c) Build a simple linear regression: total regressed against midterm. Print model output. (d) Calculate directly the coefficients as in (3) (e) Calculate the Residual standard error s, as in (4). (f) Calculate the standard error of beta_1,...
Answer IN R CODE please. Using the data below, Create a scatterplot of y vs x...
Answer IN R CODE please. Using the data below, Create a scatterplot of y vs x (show this) and fit it a simple linear regression model using y as the response and plot the regression line (with the data). Show this as well. Test whether x is a significant predictor and create a 95% CI around the slope coefficient. What does the coefficient of determinations represent? For x=20, create a CI for E(Y|X=20). Show this. For x=150, can you use...
Java Problem: Please answer both parts of the question fully: (a). Write Java code for a...
Java Problem: Please answer both parts of the question fully: (a). Write Java code for a method to test if a LinkedList<Long> has Long values that form a Fibonacci sequence from the beginning to the end and return true if it is and false otherwise. A sequence of values is Fibonnaci if every third value is equal to sum of the previous two. Eg., 3,4,7,11,18,29 is a Fibonacci sequence whereas 1,2,3,4 is not, because 2+3 is not equal to 4....
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT