Assignment 3: Song Length Transformation

Using the Combined Class Song Data dataset

This assignment will guide you through a practice question from Chapter 4 using Combined Class Song Data. Download the dataset and open it in Jamovi. Submit your answers on Moodle by Thursday’s class.

Part 1: Describe the distribution of LENGTH

  1. Write down summary statistics for the variable LENGTH (length of the song in seconds) that would measure the Location, Spread, and Skewness of the distribution.

  2. Generate a histogram of the variable LENGTH and describe the shape of the distribution.

Part 2: Transformations

  1. Suppose I create a new variable LENGTH_MIN calculated as LENGTH_MIN = LENGTH/60 (i.e., length of song in minutes). Calculate the values of the statistics you wrote down in Part I after the transformation.

  2. Suppose I create a new variable LENGTH_MIN_II calculated as LENGTH_MIN_II = LENGTH/60 + 2. Calculate the values of the statistics you wrote down in Part I after the transformation.

Show solution

Part 1

    • Location: mean = 233 seconds and median = 231 seconds
    • Spread: standard deviation = 52.1 seconds, IQR = 47 seconds, and range = 418 seconds
    • Skewness ratio: 2.89 / 0.223 = 12.96 (severe right skew)
  1. The histogram is right-skewed: most songs are concentrated at shorter lengths, with a smaller number of substantially longer songs extending the right tail.

Part 2

Statistic LENGTH LENGTH_MIN = LENGTH / 60 LENGTH_MIN_II = LENGTH / 60 + 2
Mean 233 sec 3.88 min 5.88 min
Median 231 sec 3.84 min 5.84 min
Standard deviation 52.1 sec 0.87 min 0.87 min
IQR 47 sec 0.78 min 0.78 min
Range 418 sec 6.97 min 6.97 min
Skewness ratio 12.96 12.96 12.96