Question

In: Statistics and Probability

Download the file data.csv (comma separated text file) and read the data into R using the...

Download the file data.csv (comma separated text file) and read the data into R using the function read.csv(). Your data set consists of 100 measurements in Celsius of body temperatures from women and men. Use the function t.test() to answer the following questions. Do not assume that the variances are equal.

Denote the mean body temperature of females and males by μFμF and μMμMrespectively.

(a) Find the p-value for the test H0:μF=μMH0:μF=μM versus HA:μF≠μM.HA:μF≠μM. Answer

(b) Are the body temperatures for men and women significantly different? Use significance level α=0.1.α=0.1.Answeryesno

(c) Denote the sample mean of the females by x¯Fx¯F and the sample mean of the males by x¯M.x¯M. Then x¯F=x¯F= Answer and x¯M=x¯M= Answer .

(d) The 90% two-sided confidence interval for the difference μF−μMμF−μM ranges from Answer to Answer .

35.94," M"
36.06," M"
36.17," M"
36.17," M"
36.17," M"
36.22," M"
36.28," M"
36.33," M"
36.33," M"
36.44," M"
36.44," M"
36.5," M"
36.56," M"
36.56," M"
36.56," M"
36.56," M"
36.61," M"
36.61," M"
36.67," M"
36.67," M"
36.67," M"
36.67," M"
36.67," M"
36.72," M"
36.72," M"
36.78," M"
36.78," M"
36.78," M"
36.78," M"
36.83," M"
36.83," M"
36.89," M"
36.89," M"
36.89," M"
36.89," M"
36.94," M"
37," M"
37," M"
37," M"
37," M"
37.06," M"
37.06," M"
37.11," M"
37.11," M"
37.11," M"
37.17," M"
37.22," M"
37.22," M"
37.22," M"
37.39," M"
37.44," M"
37.5," M"
35.78," F"
36," F"
36.22," F"
36.22," F"
36.5," F"
36.5," F"
36.56," F"
36.61," F"
36.67," F"
36.67," F"
36.67," F"
36.78," F"
36.78," F"
36.78," F"
36.78," F"
36.78," F"
36.83," F"
36.83," F"
36.89," F"
36.89," F"
36.89," F"
36.89," F"
36.89," F"
36.94," F"
37," F"
37," F"
37," F"
37.06," F"
37.06," F"
37.06," F"
37.06," F"
37.06," F"
37.11," F"
37.11," F"
37.11," F"
37.11," F"
37.11," F"
37.17," F"
37.22," F"
37.22," F"
37.28," F"
37.28," F"
37.33," F"
37.33," F"
37.39," F"
37.72," F"
37.78," F"
38.22," F"

Solutions

Expert Solution

a)

R Output:-

p-value = 0.02038

b) Since p-value is greater than 0.01 we accept H0 and conclude that the body temperatures of men and women are not significantly different.

c) Mean of females,x-F = 36.94

Mean of males,x-M = 36.75

d) The 90% Confidence interval is (0.0553,0.3183).


Related Solutions

Data Analysis & Visualization Topic R vector and save the r code in a text file...
Data Analysis & Visualization Topic R vector and save the r code in a text file Problem 1. Create two vectors named v and w with the following contents:      v : 21,10,32,2,-3,4,5,6,7,4,-22      w : -18,72,11,-9,10,2,34,-5,18,9,2 A) Print the length of the vectors B) Print all elements of the vectors C) Print elements at indices 3 through 7. D) Print the sum of the elements in each vector. E) Find the mean of each vector. (Use R's mean() function)...
Download the AddValueNewArray.java file, and open it in jGrasp (or a text editor of your choice)....
Download the AddValueNewArray.java file, and open it in jGrasp (or a text editor of your choice). This program behaves similarly to the AddValueToArray program from before. However, instead of modifying the array in-place, it will return a new array holding the modification. The original array does not change. For simplicity, the array used is “hard-coded” in main, though the method you write should work with any array. Example output with the command-line argument 3 is shown below: Original array: 3...
Download the SwapMultidimensional.java file, and open it in jGrasp (or a text editor of your choice)....
Download the SwapMultidimensional.java file, and open it in jGrasp (or a text editor of your choice). This program contains two methods which you will need to write: swapRows: Swaps the contents of two rows, given a two-dimensional array and the indices of the rows to swap. swapCols: Swaps the contents of two columns, given a two-dimensional array and the indices of the columns to swap. main contains some code which will call swapRows and swapCols, for the purpose of informal...
Download the Take.java file, and open it in jGrasp (or a text editor of your choice)....
Download the Take.java file, and open it in jGrasp (or a text editor of your choice). This program will “take” a given number of elements from a given array, using the command-line arguments as an array, and the hard-coded value of 3 elements to take. Example output of this program with the command-line arguments foo bar baz is shown below: foo bar baz In the above example, three elements were taken. However, it's possible that we may request to take...
Download the AllEqual.java file, and open it in jGrasp (or a text editor of your choice)....
Download the AllEqual.java file, and open it in jGrasp (or a text editor of your choice). This program takes a number of command line arguments, converts them to integers, and then determines if they all have the same value. An example run of the program is below, using the command-line arguments 1 2 3: Are equal: false A further example is shown below, with the command-line arguments 2 2: Are equal: true In the event that the program is given...
Download the Compass.java file, and open it in jGrasp (or a text editor of your choice)....
Download the Compass.java file, and open it in jGrasp (or a text editor of your choice). This program will randomly print out a compass direction, given a seed value for produce a random number with java.util.Random. Compass directions are mapped to integers according to the following table: Compass Direction Integer ID North 0 Northeast 1 East 2 Southeast 3 South 4 Southwest 5 West 6 Northwest 7 Further details are in the comments of Compass.java. import java.util.Random; import java.util.Scanner; public...
how to read, write and append a text file using a switch case in java.I need...
how to read, write and append a text file using a switch case in java.I need help with the code.
Python class Select a free ebook on gutenberg . org and download the plain text file...
Python class Select a free ebook on gutenberg . org and download the plain text file (utf8). the ebook is (The Devil's Dictionary by Ambrose Bierce) Write a program that does the following: Read in your ebook (any book, any language) Break the book into words (look at .split() for strings) Make a dictionary of all words and how often they occur: for instance if the word'the'happened 2000 time and the word'a' happened 1940 times word_dict= {'the' : 2000, 'a'...
HW_6b - Read and write a text file. Include the following in the main.cpp file. Add...
HW_6b - Read and write a text file. Include the following in the main.cpp file. Add code so that the numbers that are read from the data.txt file are written to an output           file named:   results.txt After the numbers are written to the file, the following message should be displayed:    The data has been written to the file. Open the results.txt file and verify that the file was written successfully. Please make the code based on C++,...
Python class Select a free ebook and download the plain text file (utf8). Write a program...
Python class Select a free ebook and download the plain text file (utf8). Write a program that does the following: Read in your ebook (any book, any language) Break the book into words (look at .split() for strings) Make a dictionary of all words and how often they occur: for instance if the word'the' happened 2000 time and the word'a' happened 1940 times word_dict= {'the' : 2000, 'a' :1940} Print the dictionary of word frequencies to a file (freqs.txt) with...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT