Statistics Assignment

docx

School

Seneca College *

*We aren’t endorsed by this school

Course

130

Subject

Statistics

Date

Feb 20, 2024

Type

docx

Pages

4

Uploaded by DoctorBravery103687

Report
Statistics Assignment /* 1. Performing a One-Sample t-Test */ libname DATALIB '/home/u63731080/DATALIB' ; data DATALIB.normtemp ; set '/home/u63731080/DATALIB/normtemp.sas7bdat' ; run ; /* 1.a. Look at the distribution of the continuous variables in the data set using PROC UNIVARIATE, including producing histograms and insets with means, standard deviations and sample size. */ TITLE 'Distribution Analysis Using PROC UNIVARIATE' ; ods select histogram ; proc univariate data = DATALIB.normtemp noprint ; Var BodyTemp HeartRate ; histogram BodyTemp HeartRate / normal kernel ; inset N MEAN STD / position = ne ; run ;
/* 1.b. Perform a one-sample t-test to determine whether the mean of body temperatures (the variable BodyTemp in DATALIB.NormTemp) is 98.6. USING PROC TTEST*/ Title 'One-Sample t-test using PROC TTEST to test whether Mean BodyTemp=98.6' ; proc ttest data = DATALIB.normtemp h0 = 98.6 plots ( only shownull )= interval ; var BodyTemp ; run ; /* Questions- */ /* 1) What is the value of the t statistic and the corresponding p-value? (2 points) Answer- The t value is -5.45, and the p- value is <.0001. 2) Do you reject or fail to reject the null hypothesis at the 0.05 level that the average temperature is 98.6 degrees? (2 points) Answer- We reject the null hypothesis at the 0.05 level. */
/* 2. Using PROC TTEST for Comparing */ /* Analyze the data using PROC TTEST. Assess whether the treatment group improved more than the control group */ libname DATALIB '/home/u63731080/DATALIB' ; data DATALIB.german ; set '/home/u63731080/DATALIB/german.sas7bdat' ( k eep = Change Group ); run ; TITLE 'Comparing Two groups: Treatment and Control' ; proc ttest data = datalib.german plots = ( interval qq ) ; class Group ; Var Change ; run ; /* Questions a. Do the two groups appear to be approximately normally distributed? (2 points)
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Answer- Yes, the plots show evidence that supports approximate normality in both groups. b. Do the two groups have approximately equal variances? (2 points) Answer- The p-value for the equality of variances test is greater than 0.05 so, we do not reject null hypothesis which supports the assumption that the two graphs have approximately equal variances. c. Does the new teaching technique seem to result in significantly different change scores compared with the standard technique? (2 points) Answer- The p-value for the Pooled (Equal Variance) test for the difference between the two means has value greater than 0.05 which shows that the two groups are not statistically different. so, there is not enough evidence to say that the new teaching technique is significantly different from the old technique. */