Question

In: Statistics and Probability

Given the following data set. Name Homework Midterm Final Frank 97 95 92 Emily 93 92...

Given the following data set.

Name Homework Midterm Final

Frank 97 95 92

Emily 93 92 96

William 95 90 88

Janet 88 83 75

Betty 86 79 84

Joe 85 82 86

Bob 72 63 72

(a) Import the data into SAS and print it.

(b) Use SAS to create a new variable Total which is the weighted average of all grades (the homework counts for 30% of the total score, the midterm 25% and the final 45%). Add the variable to the data frame.

(c) Use SAS to compute the mean and standard deviation of the variables Homework, Midterm, Final and Total.

(d) Use SAS to make a scatterplot of the midterm scores against final scores.

Solutions

Expert Solution

Solution_A:

use data step to create table

input statement to describe variables

SAS CODE:

data exams;
infile cards;
input Name $ Homework Midterm Final;
cards;
Frank 97 95 92
Emily 93 92 96
William 95 90 88
Janet 88 83 75
Betty 86 79 84
Joe 85 82 86
Bob 72 63 72
;
run;
proc print data=exams;
run;

Output:

Solution-b:

SAS CODE:

data exams;
set exams;
Total=0.30*Homework+0.25*Midterm+0.45*final;
run;

proc print data=exams;

run;

Output:

Solution-c:

use proc means to print the mean and sd of variables

SAS Code:

proc means data=exams mean std;
var Homework Midterm Final Total;
run;

Output:

Solution-d:

use proc sgplot to get the scatterplot

SAS Code:


PROC SGPLOT DATA = exams;
scatter x=Midterm y=Final;
run;


Related Solutions

Given the following data set. Name Homework Midterm Final Frank 97 95 92 Emily 93 92...
Given the following data set. Name Homework Midterm Final Frank 97 95 92 Emily 93 92 96 William 95 90 88 Janet 88 83 75 Betty 86 79 84 Joe 85 82 86 Bob 72 63 72 1 (a) Calculate the mean and standard deviation of all final scores. (b) Construct a 95% confidence interval for the mean homework score. (c) Given α = .05, determine whether the mean of Midterm is more than 85. Set up appropriate hypotheses, calculate...
1. Given the following set of grades from a recent statistics exam: 92 88 93 95...
1. Given the following set of grades from a recent statistics exam: 92 88 93 95 94 89 88 78 77 76 77 74 72 68 54 99 94 91 85 84 88 34 56 87 82 a) (5 points) Sketch the histogram of the data.  You may either sketch it by hand or give a screenshot of Statkey. b) (6 points) Describe the shape of the data. Describe the modality, symmetry, and any unusual features, e.g., outliers. c) (5 points)...
Use the following set of Data Management final examination scores to answer the questions below: 92,...
Use the following set of Data Management final examination scores to answer the questions below: 92, 48, 83, 62, 76, 64, 81, 98, 70, 70, 55, 83, 46, 79, 70, 97, 91, 53, 86, 89 a. Determine the mean, median, mode, range, and standard deviation. b. Find Q1 and Q3 and state the IQR. Determine if there are any outliers. c. Construct a box and whisker plot (by hand or using technology). d. Construct a histogram. Describe the shape of...
Determine the 95% confidence interval for the following scores: 83, 92, 81, 87, 79, 93, 88,...
Determine the 95% confidence interval for the following scores: 83, 92, 81, 87, 79, 93, 88, 87, 83. Hint: You will need to determine the sample mean and standard deviation and then construct your confidence interval around these.
check data set for outliers 1. 82, 100, 97, 93, 89, 90, 65, 94, 101 2....
check data set for outliers 1. 82, 100, 97, 93, 89, 90, 65, 94, 101 2. 527, 1007, 489, 371, 175
The following data are drawn from a normal population: (92, 93, 54, 58,74, 53, 63, 83,...
The following data are drawn from a normal population: (92, 93, 54, 58,74, 53, 63, 83, 64, 51). At the 1% significant level, test whether there isenough evidence to conclude that the population variance is less than 480.b. rhe another sample is also drawn from a normal population which is independent of the first one, and data are: (78, 65, 35, 67,55, 71). At 10 %significance level, test whether or not two populations have equal variance.
The following data set is obtained by a randomly selected sample of 93 employees working at...
The following data set is obtained by a randomly selected sample of 93 employees working at a bank. SALARY EDUC EXPER TIME 39000 12 0 1 40200 10 44 7 42900 12 5 30 43800 8 6 7 43800 8 8 6 43800 12 0 7 43800 12 0 10 43800 12 5 6 44400 15 75 2 45000 8 52 3 45000 12 8 19 46200 12 52 3 48000 8 70 20 48000 12 6 23 48000 12...
Given the following students' test scores (95, 92, 90, 90, 83, 83, 83, 74, 60, and...
Given the following students' test scores (95, 92, 90, 90, 83, 83, 83, 74, 60, and 50), identify the mean, median, mode, range, variance, and standard deviation for the sample. Write a 500-750-word summary and analysis discussing the results of your calculations. State your results for the sample: the mean, median, mode, range, variance, and standard deviation Explain which method is best for this data set. Why? Conduct a one sample T-test and interpret the results (use a population mean...
Given the following students' test scores (95, 92, 90, 90, 83, 83, 83, 74, 60, and...
Given the following students' test scores (95, 92, 90, 90, 83, 83, 83, 74, 60, and 50), identify the mean, median, mode, range, variance, and standard deviation for the sample. Write a 500-750-word summary and analysis discussing the results of your calculations. State your results for the sample: the mean, median, mode, range, variance, and standard deviation Explain which method is best for this data set. Why? Conduct a one sample T-test and interpret the results (use a population mean...
Given the following students' test scores (95, 92, 90, 90, 83, 83, 83, 74, 60, and...
Given the following students' test scores (95, 92, 90, 90, 83, 83, 83, 74, 60, and 50), identify the mean, median, mode, range, variance, and standard deviation for the sample. Write a 500-750-word summary and analysis discussing the results of your calculations. State your results for the sample: the mean, median, mode, range, variance, and standard deviation Explain which method is best for this data set. Why? Conduct a one sample T-test and interpret the results (use a population mean...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT