Question

You are given a vector of test scores (tests = [56, 75, 90, 45, 76, 21,...

You are given a vector of test scores (tests = [56, 75, 90, 45, 76, 21, 86, 95, 81, 84, 79, 67, 76, 72, 89, 85, 55] ) and you wish to normalize these scores by computing a new vector, normTests, which will contain the test scores on a linear scale from 0 to 100. A zero still corresponds to a zero and the highest test score will correspond to 100. (i.e. curve the tests - the maximum test score should correspond to 100). Also determine the average score after the tests have been normalized and the number of students that passed and failed (fail is any normalized score below 60).

Please answer in MATLAB code

0 0
Add a comment Improve this question Transcribed image text
Answer #1

tests = [56, 75, 90, 45, 76, 21, 86, 95, 81, 84, 79, 67, 76, 72, 89, 85, 55];
maxi = max(tests);
normTests = tests.*100/maxi;
avg = sum(normTests)/numel(normTests);

passed = 0;
failed = 0;

for i = 1:numel(normTests)
if normTests(i) < 60
failed += 1;
else
passed += 1;
end
end

normTests
avg
passed
failed

%{
normTests =

Columns 1 through 8:

58.947 78.947 94.737 47.368 80.000 22.105 90.526 100.000

Columns 9 through 16:

85.263 88.421 83.158 70.526 80.000 75.789 93.684 89.474

Column 17:

57.895

avg = 76.285
passed = 13
failed = 4
}%

% Hit the thumbs up if you are fine with the answer. Happy Learning!

Add a comment
Know the answer?
Add Answer to:
You are given a vector of test scores (tests = [56, 75, 90, 45, 76, 21,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Consider the below matrixA, which you can copy and paste directly into Matlab.

    Problem #1: Consider the below matrix A, which you can copy and paste directly into Matlab. The matrix contains 3 columns. The first column consists of Test #1 marks, the second column is Test # 2 marks, and the third column is final exam marks for a large linear algebra course. Each row represents a particular student.A = [36 45 75 81 59 73 77 73 73 65 72 78 65 55 83 73 57 78 84 31 60 83...

  • 8. The following data are scores from a Physics final administered to 34 students. 81 76...

    8. The following data are scores from a Physics final administered to 34 students. 81 76 93 99 47 67 69 72 83 88 56 62 91 94 98 63 77 84 98 75 79 67 73 65 89 86 91 85 97 73 56 92 88 83 Use the Chart below to construct a Frequency Distribution with 5 classes (15 pts) Class Tally (This column is optional.) Frequency

  • Use the Grouped Distribution method for the following exercise (see Self-Test 2-4 for detailed instructions), rounding...

    Use the Grouped Distribution method for the following exercise (see Self-Test 2-4 for detailed instructions), rounding each answer to the nearest whole number. Using the frequency distribution below (scores on a statistics exam taken by 80 students), determine:ion 1 of the preliminary test (scores on a statistics exam taken by 80 students), determine: 68 84 75 82 68 90 62 88 76 93 73 79 88 73 60 93 71 59 85 75 61 65 75 87 74 62 95...

  • Use the Grouped Distribution method for the following exercise (see Self-Test 2-4 for detailed instructions), rounding...

    Use the Grouped Distribution method for the following exercise (see Self-Test 2-4 for detailed instructions), rounding each answer to the nearest whole number. Using the frequency distribution below (scores on a statistics exam taken by 80 students), determine:ion 1 of the preliminary test (scores on a statistics exam taken by 80 students), determine: 68 84 75 82 68 90 62 88 76 93 73 79 88 73 60 93 71 59 85 75 61 65 75 87 74 62 95...

  • 3.3 Table 3.10 shows the scores in the final examination F and the scores in two preliminary exam...

    3.3 Table 3.10 shows the scores in the final examination F and the scores in two preliminary examinations P1 and P2 for 22 students in a statistics course. The data can be found in the book's Web site. (a) Fit each of the following models to the data: Model 1 F Bo BiP Model 2 F- Model 3 : F-k) + AP,+AP, + ε Table 3.10 Examination Data: Scores in the Final (F), First Preliminary (Pi), and Second Preliminary (P2)...

  • Use the following collection of 30 test scores: 100, 65, 67, 61, 62, 70, 75, 73,...

    Use the following collection of 30 test scores: 100, 65, 67, 61, 62, 70, 75, 73, 88, 77, 83, 79,95, 79, 8102, 86, 87, 87, 91, 87, 89, 92, 90, 99, 87, 72, 93, 79, 52 a. Construct a frequency distribution table using 6 classes: include classes, frequencies, class marks, class boundaries, relative frequencies, and relative percentages. b. Find the mean to the nearest tenth and sample standard deviation to the nearest tenth. c. Use the results from part b...

  • 7. Use the following collection of 30 test scores: 100, 65, 67, 61, 62, 70, 75,...

    7. Use the following collection of 30 test scores: 100, 65, 67, 61, 62, 70, 75, 73, 88, 77, 83, 79, 95, 79, 80, 102, 86, 87, 87, 91, 87, 89, 92, 90, 99, 87, 72, 93, 79,52 a. Construct a frequency distribution table using 6 classes: include classes, frequencies, class marks, class boundaries, relative frequencies and relative percentages. b. Find the mean to the nearest tenth and sample standard deviation to the nearest tenth. c. Use the results from...

  • 7. Use the following collection of 30 test scores: 100, 65, 67, 61, 62, 70, 75,...

    7. Use the following collection of 30 test scores: 100, 65, 67, 61, 62, 70, 75, 73, 88, 77, 83, 79, 95, 79, 80, 102, 86, 87, 87, 91, 87, 89, 92, 90, 99, 87, 72, 93, 79,52 a. Construct a frequency distribution table using 6 classes: include classes, frequencies, class marks, class boundaries, relative frequencies and relative percentages. b. Find the mean to the nearest tenth and sample standard deviation to the nearest tenth. c. Use the results from...

  • 89 67 84 74 58 51 63 68 84 65 57 76 58 75 72 67...

    89 67 84 74 58 51 63 68 84 65 57 76 58 75 72 67 64 74 95 53 77 86 90 80 70 67 76 62 91 70 63 78 49 61 77 57 83 67 107 67 80 73 94 80 73 74 67 72 68 79 73 121 63 77 70 61 75 66 79 54 76 86 84 72 65 75 63 91 72 64 99 81 58 70 58 58 90 66 64 80...

  • 1. On the following page are the exam scores on the first Statistics test for all...

    1. On the following page are the exam scores on the first Statistics test for all my classes. Using everything we covered in the first three chapters of our textbook, describe the data. I recommend going through your notes and textbook, chapter by chapter. Include as much as you can – type of data, frequency distribution, histogram, numerical methods, etc. The standard deviation for the data is 16.7. Exam Scores on the First Statistics Test 100 88 100 86 100...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT