Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

read in a text file of paired data values. The program will then test the values

ID: 651079 • Letter: R

Question

read in a text file of paired data values. The program will then test the values for a correlation, following the structure of a Hypothesis test as set out in this module and based on information supplied from your knowledge of the correlation as a statistical test. Two parallel lists of values are written in a text file 'inputl.txt', which takes the following format, with all numerical values separated by tab characters or return characters. N (an integer value) (N values of the first variable in a row) (N values of the second variable also in a row) Purpose of the program Your program should do the following: Read the two lists of values from the text file. Ask the user for an appropriate level of significance p, and other information required for the structure of the test. State the Null and alternative Hypotheses that the statistical test will address for the user. State appropriate critical value(s) for the user. Your program must be able to deal with the possibility that the number of values N is too low to allow a proper test on the correlation coefficient. Calculate the value of the sample correlation coefficient r, state it to the user and then state the result of the test.

Explanation / Answer

Typing the name of any object will display a printed
representation. Alternatively, the print() function can be
used to display the entire object.