
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
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.Generate a histogram of the variable
LENGTHand describe the shape of the distribution.
Part 2: Transformations
Suppose I create a new variable
LENGTH_MINcalculated asLENGTH_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.Suppose I create a new variable
LENGTH_MIN_IIcalculated asLENGTH_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)
- 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 |