Practice a Create-Performance-Task-style written response about extracting information from data, compression, and correlation. Write your response, then reveal the model answer to see exactly what earns each point.
Note: The AP CSP exam is all multiple-choice; extended writing appears in the Create Performance Task. This question gives you practice with that style of written response.
A student has a dataset of songs. Each record includes the song's title, artist, genre, duration (in seconds), and number of plays. The audio for each song is also stored as a separate file. The student writes a program to analyze the dataset.
The program could answer a question such as "Which genre is the most popular?" by filtering and aggregating the data — for example, grouping records by genre and adding up the number of plays in each group, then finding the largest total. This turns the raw data into information (the most-played genre). A piece of metadata in the records is the song's genre (or duration/artist) — descriptive data about each song rather than the audio itself.
Lossless compression reduces file size without losing any data, so the original can be reconstructed exactly; lossy compression discards some data permanently to achieve a much smaller size. For the large audio files, lossy compression (such as MP3) is usually more appropriate, because it greatly reduces the storage needed and a small loss of audio quality is generally acceptable to listeners — an important benefit when storing many songs.
The conclusion is not justified because correlation does not imply causation: longer duration and more plays are associated in the data, but that does not prove that length causes the plays. A third factor — such as the songs being by more popular artists, or in a genre people replay — could explain both. A responsible way to present the finding is to report it as an association, not a cause ("longer songs in this dataset tended to have more plays"), and to note the limitation and the need for further investigation before making any claim of causation.