In-Class Exercise 1
Shih Chien University
2026-09-16
Addition
Evaluate 1 + 1 in R.
Multiplication
Evaluate 3 \times 4 in R.
Drawing a Random Sample
A class has 55 students, numbered 1 through 55. Use set.seed(2026) so that your result can be reproduced, draw a random sample of 10 students with sample(), and report the mean of the 10 student numbers with mean().
Classifying Variables
For each of the following variables, state whether it is qualitative or quantitative, and give its level of measurement (nominal, ordinal, interval, or ratio).
Elementary Statistics: A Step by Step Approach