Computer Assignments and Tutorials

Overview

The course includes five computer assignments that progressively build your R skills and statistical analysis capabilities. Each assignment focuses on specific statistical techniques and is accompanied by a detailed tutorial. All assignments use the AppRating dataset as the primary data source, supplemented with additional datasets for practice and demonstration.

Important

Dataset Requirements:

Assignment Structure

Five separate assignments, each focusing on distinct statistical concepts:

  • Assignment 1: Data Exploration and Statistical Analysis

  • Assignment 2: Basic hypothesis testing

  • Assignment 3: Two-sample procedures

  • Assignment 4: One-way ANOVA

  • Assignment 5: Simple linear regression

Course Pipeline (At a Glance)

  1. Import: read.csv → inspect with head, str, summary.

  2. Validate & clean: missing data (is.na, complete.cases), types (as.numeric, factor), quick checks (length, nrow, unique).

  3. Explore: core summaries (mean, median, sd, quantile, IQR), plots (ggplot2 histograms/boxplots).

  4. Model: one/two-sample t; ANOVA; SLR via lm; compute p-values/intervals; diagnostics (residual plots, QQ).

  5. Report: figures/tables (ggplot2, knitr::kable + kableExtra), short text with context.

If you cannot see the plots

You can check the assumptions in these assignments with numbers instead of by eye. For normality of a sample, of each group, or of regression residuals, compare the proportions of values within one, two and three standard deviations of the mean with 0.68, 0.95 and 0.997, and compare the ratio \(IQR/s\) with 1.35 (see Numerical Assessments for Normality in Section 6.4). For equal variances, the ratio of the largest to the smallest sample standard deviation should be at most 2. The R package BrailleR describes a ggplot saved as p in text: VI(p) gives the median, quartiles, whisker ends and number of outliers of each box in a boxplot, and VI(p, threshold = 50) lists each bar of a histogram and each point of a scatterplot. Install it with install.packages("remotes") and then remotes::install_github("ajrgodfrey/BrailleR").

More Help and Reference Pages

If you need additional support while working through the computer assignments, use the following pages: