LoslegenKostenlos loslegen

Shapiro-Wilk test

In this exercise, you will check the normality of data.

Normal data is an underlying assumption for many statistical tests. You need to know how to assess the normality of the data before you run these statistical tests during the interview.

The Shapiro-Wilk test is a popular test for testing normality.

Recall that the log transformation can be used to transform skewed data to approximately conform to normality.

The cats dataset from the MASS package has been preloaded for this exercise. As you may remember, the Hwt variable from this dataset contains data on heart weight in grams.

Diese Übung ist Teil des Kurses

Practicing Statistics Interview Questions in R

Kurs anzeigen

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# Plot the distribution of Hwt
___(___)

# Assess the normality of Hwt numerically
___(___)
Code bearbeiten und ausführen