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...
C++ Parse text (with delimiter) read from file. If a Text file has input formatted such...
C++ Parse text (with delimiter) read from file. If a Text file has input formatted such as: "name,23" on every line where a comma is the delimiter, how would I separate the string "name" and integer "23" and set them to separate variables for every input of the text file? I am trying to set a name and age to an object and insert it into a vector. #include <iostream> #include <vector> #include <fstream> using namespace std; class Student{    ...
Step 1: Edit SumMinMaxArgs.java Download the SumMinMaxArgs.java file, and open it in jGrasp (or a text...
Step 1: Edit SumMinMaxArgs.java Download the SumMinMaxArgs.java file, and open it in jGrasp (or a text editor of your choice). This program takes a number of command line arguments, parses them as ints, and then displays: The arithmetic sum of the arguments The smallest argument The largest argument If you're unsure how to pass command-line arguments to a program with jGrasp, see this tutorial. Example output of this program with the command-line arguments 1 2 3 4 5 is shown...
Step 3: Edit MultiSplit.java Download the MultiSplit.java file, and open it in jGrasp (or a text...
Step 3: Edit MultiSplit.java Download the MultiSplit.java file, and open it in jGrasp (or a text editor of your choice). You will need to write a method that will take an array of Strings (String[]) along with a regular expression, and will call split() on each one of those Strings with the given regular expression. The result of this method should be a two-dimensional array of String (String[][]). You will also need to write a method to print out this...
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.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT