Mathematics AI SL's Sample Internal Assessment

Mathematics AI SL's Sample Internal Assessment

To investigate the correlation between songs’ rank in the charts and their number of beats per minute.

5/7
5/7
10 mins read
10 mins read
Candidate Name: N/A
Candidate Number: N/A
Session: N/A
Word count: 1,910

Table of content

Introduction

Background Information

This internal assessment is about the correlation between songs' positions in the charts and their beats per minute (BPM). Listening to music is one of my favourite activities, and I have always had a musical ear. I thought that this would be an excellent topic to investigate, as I am curious if these two things have any relationship.

Aim and Methodology

I have decided to use charts lists from the United Kingdom (2012) and Colombia (2021) to allow for more representative and generalisable sample, in case it varies by region or has changed through time. To do this, I had to search online charts lists from the specified year and country, then find the BPM of each song online. Please refer to the References section for details on which online resources were consulted for data collection. I used UK-Charts for the list of the top 100 songs in the United Kingdom (2012), Top Charts for the list of the top 100 songs in Colombia (2021). To get the BPMs of each song, I used Spotify's API. Microsoft Excel was used a lot for keeping track, storing, and formatting the data. After collecting the data, the aim was to perform a selection of mathematical calculations to investigate any potential correlations there may be.

Hypotheses

I have two hypotheses for this investigation: the Null Hypothesis (\(H_0\)) (there is no significant correlation between a song's position in the charts and its number of beats per minute), and the two-tailed Alternative Hypothesis (\(H_1\)), that the more highly ranked a song is in the charts, the more or fewer beats per minute it has.

Data

Raw

United Kingdom (2012)

PositionArtistSongBPM
1GotyeSomebody That I Used To Know129.062
2David GuettaTitanium126.06
3Nicki MinajStarships125.006
4Carly Rae JepsenCall Me Maybe120.021
5FunWe Are Young184.086
6Jay-Z & Kanye WestNiggas In Paris140
7LmfaoSexy And I Know It130.043
8Jessie JDomino126.974
9Rizzle KicksMama Do The Hump97.987
10Flo RidaWild Ones127.075
11Alex ClareToo Close126.043
12Azealia Banks212125.998
13RudimentalFeel The Love179.948
14Maroon 5Moves Like Jagger128.047
15Emeli SandeNext To Me94.999
16TrainDrive By122.028
17Jason MrazI Won't Give Up133.406
18RihannaWe Found Love127.975
19ColdplayParadise139.631
20DrakeTake Care121.845
21Maroon 5Payphone110.028
22LabrinthEarthquake153.071
23SkrillexBangarang110.026
24Kelly ClarksonStronger116.044
25Florence & The MachineSpectrum126.092
26One DirectionWhat Makes You Beautiful124.99
27David GuettaTurn Me On127.961
28Coldplay & RihannaPrincess Of China85.014
29Flo RidaWhistle103.976
30AviciiLevels126.04
31Taylor SwiftWe Are Never Ever Getting Back Together172.014
32Swedish House MafiaGreyhound124.976
33StoosheBlack Heart109.898
34Rita OraR.I.P.71.987
35PSYGangnam Style132.067
36RihannaWhere Have You Been127.96
37Nicki MinajPound The Alarm125.055
38Olly MursDance With Me Tonight163.984
39ScriptHall of Fame84.786
40Flo RidaGood Feeling128.011
41Emeli SandeRead All About It, Pt. III98.085
42Dj FreshHot Right Now175.017
43Ed SheeranLego House159.701
44Lady AntebellumNeed You Now107.942
45FunSome Nights107.938
46Paloma FaithPicking Up The Pieces135.97
47Little MixWings114.965
48Ed SheeranDrunk99.998
49Flo RidaI Cry126.035
50Katy PerryWide Awake160.04
51Owl City / Carly Rae JepsenGood Time126.05
52Sean PaulShe Doesn't Mind120.015
53RihannaDiamonds91.958
54Emeli SandeMy Kind of Love86.779
55Jessie JLaser Light128
56Sam & The WompBom Bom125.06
57Lana Del ReyVideo Games122.053
58PitbullInternational Love120.05
59AdeleSkyfall75.881
60Chris BrownDon't Wake Me Up127.008
61Otto KnowsMillion Voices125.946
62LabrinthExpress Yourself93.878
63Of Monsters & MenLittle Talks102.961
64Ne-YoLet Me Love You (Until You Learn To Love Yourself)124.904
65UsherScream127.992
66LloydDedication To My Ex (Miss That)119.037
67Swedish House MafiaDon't You Worry Child129.041
68Calvin HarrisLet's Go128
69Will I AmThis Is Love128.951
70Christina PerriJar Of Hearts74.541
71WileyHeatwave129.275
72LMFAOParty Rock Anthem129.992
73Justin BieberBoyfriend96.976
74Katy PerryPart Of Me130.007
75Maroon 5One More Night92.998
76Rita OraHow We Do (Party)116.024
77Mumford & SonsI Will Wait131.109
78TulisaYoung125.984
79LabrinthBeneath Your Beautiful83.962
80The WantedChasing The Sun128.108
81Lana Del ReyBorn To Die85.767
82David GuettaShe Wolf (Falling to Pieces)129.971
83CherylCall My Name128.005
84Ellie GouldingAnything Could Happen102.997
85DisclosureLatch121.985
86PinkBlow Me (One Last Kiss)114
87Calvin Harris / Florence WelchSweet Nothing127.934
88LumineersHo Hey79.936
89AdeleSomeone Like You135.187
90Alyssa ReidAlone Again85.972
91AngelWonderful164.959
92D'BanjOliver Twist125
93Ed SheeranThe A Team84.996
94Calvin HarrisWe'll Be Coming Back128
95One DirectionLive While We're Young126.039
96Conor MaynardTurn Around125.03
97Will I AmT.H.E (The Hardest Ever)105.979
98Conor MaynardCan't Say No94
99AviciiSilhouettes128.074
100Katy PerryThe One That Got Away132.968

Colombia (2021)

PositionArtistSongBPM
1Flow La Movie, Nio GarcíaAM136.175
2KAROL GEL MAKINON88.863
3Myke Towers, Sebastián YatraPareja Del Año80
4Totoy El Frío, Natan & Shander, CrissinPoblado93.036
5Kenny KoradeBlacktop Rock144.989
6Jhay Cortez, Los Legendarios, WisinFiel98.005
7Myke Towers, JuhnBandido168.021
8Sech91193.02
9Jhay Cortez, Bad BunnyDakiti109.928
10Mr. Naisgai, Rauw Alejandro2/Catorce112.084
11ROSALÍA, Bad BunnyLA NOCHE DE ANOCHE81.993
12Espinoza PazSoltero Feliz167.059
13J Balvin, KAROL G, Anuel AALocation115.977
14KAROL GEL BARCO143.975
15Richard Mc Culley, Joey PetersGet Up and Go130.007
16Beele, Rauw Alejandro, MalumaAloha (feat. Darell, Mambo Kingz & DJ Luian)100.004
17Rauw Alejandro, Anuel AAReloj175.965
18Silvestre DangondLas Locuras Mías155.925
19Calle 13Calma Pueblo (feat. Omar Rodríguez)90.024
20Todd Rosenberg, Joey PetersSteal of a Deal125.022
21Myke Towers, Micro TdhEL TREN88.004
22KAROL GBICHOTA163.922
23Arcángel, Miky Woodz, Jay WheelerSi Te Veo168.024
24Feid, Sky RompiendoCHIMBITA185.938
25Myke TowersExplícito95.007
26Isaac LarsonNetwork Protocol123.989
27J Balvin, Chencho Corleone, OzunaUna Locura168.022
28CamiloMillones190.087
29Los Dos Carnales, El FantasmaC****n y Vago173.22
30Kali Uchistelepatía83.97
31Joseph El De La Urba, Eix, Jamby el FavoPersia (Remix)176.021
32Ethan SloanCode Blue134.981
33Christian NodalAquí Abajo147.88
34Justin BieberPeaches (feat. Daniel Caesar & GIVĒON)90.03
35J Balvin7 De Mayo93.027
36Icon, FeidPURRITO APA110.781
37Kevin Roldán, Ryan Castro, Andy RiveraLejanía (Remix) [feat. Mackie & Ben3detti]110
38DJ Suede The Remix GodO'reilly (Remix)139.981
39Conjunto AzabacheBotella Tras Botella150.276
40MalumaHawái180.067
41Kevin Roldán, Lyanno, Bryant MyersHasta Abajo169.727
42El Imperio de CartagenaEl Poquitico (feat. Prix 06) [with Jean Carlos El Yaki] [En Vivo]110
43Corte FinalEl Hombre de Mis Sueños99.277
44Gera MX, Christian NodalBotella Tras Botella106.891
45NestyLa Curiosidad100.029
46Manuel Turizo, MalumaAmor en Coma180.05
47Pipe BuenoGuaro100.012
48Carin Leon166.446
49SechSal y Perrea90.025
50Lucho BermudezColombia Tierra Querida (feat. Matilde Diaz)96
51Joaquin GuillerUsted No Me Olvida103.543
52Rochy RD, NICKI NICOLE, Myke TowersElla No Es Tuya (Remix)97.041
53Jimmy Zambrano, Jorge CeledónEsta Vída159.892
54Eduardo OchoaPor Nombre Lleva Padre79.976
55Blessed, MalumaIMPOSIBLE (REMIX)83.971
56D'angelicpoetessI Can Produce142.138
57Network Music EnsembleQuantum Energy (Trailer Music)142.821
58Kallde "El Rey Del Placer"La Llevo Al Cielo (feat. Chencho Corleone)80
59Jose Ramon Encinar, Madrid Community OrchestraLa Corte de Granada, Fantasia Morisca: IV. Final134.065
60Dua LipaLevitating (feat. DaBaby)102.977
61SeatbeltsTank!137.363
62Manuel Turizo, Myke Towers, Rauw AlejandroLa Nota92.03
63Yeison Jimenez, AlzateMi Venganza84.966
64CamiloMachu Picchu167.897
65Frank SinatraTheme From New York, New York108.297
66Be Still the EarthFrom Our Youth172.033
67Bad BunnyTE MUDASTE92.025
68Infraction MusicSport Cars Rock150.159
69Jackson 5ABC188.119
70Los Ángeles AzulesNunca Es Suficiente (feat. Natalia Lafourcade)94
71Jose CarlosPa Curarte Tus Heridas84.984
72Christian NodalNo Te Contaron Mal81.409
73Myke TowersPIN PIN90.782
74JohandyHasta El Sol De Hoy135.959
75Bersuit VergarabatEl Baile de la Gambeta103.995
76DJ Nelson, Jay Wheeler, Myke TowersLa Curiosidad90.007
77Warner/Chappell ProductionsSweet Longing94.866
78BerlinTake My Breath Away (Love Theme From "Top Gun")95.769
79J BalvinTu Veneno175.826
80Dua LipaLevitating102.977
81Los CalzonesTe Sigo154.367
82ElevnAmanecer90.082
83J Balvin, KhalidOtra Noche Sin Ti94.036
84Momo!Mosca Muerta128.028
85Carlos Vives, Ricky MartinCanción Bonita91.945
86Milly, Farruko, Nio GarcíaNo Te Enamores (Remix) [feat. Jay Wheeler & Amenazzy]100
87The Weeknd, Ariana GrandeSave Your Tears (Remix)118.091
88Herbert the EntertainerBeto's Merengue130
89Warner/Chappell ProductionsNext Door114.04
90Ángela Aguilar, Christian NodalDime Cómo Quieres124.874
91Anderson .Paak, Silk Sonic, Bruno MarsLeave The Door Open148.088
92El Imperio de CartagenaCupido (feat. Ciclon) [with El Tonky] [En Vivo]140
93Los Dos CarnalesEl Envidioso78.77
94Pet Shop BoysNew York City Boy (Radio Edit)130.967
95Paulo LondraQuerido Amigo123.963
96Dalas, W.A.VRoast Yourself110.866
97KAROL G200 COPAS91.246
98Romeo Santos, Nicky JamFan de Tus Fotos170.089
99Jesús Adrián RomeroSumérgeme90.306
100Jhay Cortez, Mora51287.961

Graphed

Graph showing correlation between songs' positions in the Colombia Top 100 charts (2021) and their number of beats per minute (BPM)

Graph showing correlation between songs' positions in the United Kingdom Top 100 charts (2012) and their number of beats per minute (BPM)

Exploration

The tools I used to analyse the data were all specialised online statistics calculators from https://www.socscistatistics.com/. I used this because of its high accuracy, speed, and overall convenience when compared to doing it by hand. For all of the undermentioned inferential statistics tests (except T-Test which used both together), I calculated twice: one for each data series.

 

Henceforth, the calculation using values from the UK 2012 data set shall be referred to as "Test A", and the calculations using data from the Colombia 2021 data set shall be referred to as "Test B".

Linear Regression

The first test I performed on the data was a linear regression test.

Test A

X Values: Integers 1 to 100.
Y Values: BPMs of the UK data series (in the same order they appear in the table).
Results:
\(\hat{y}=-0.16865X+129.37903\)
Sum of X = 5050
Sum of Y = 12086.244
Mean X = 50.5
Mean Y = 120.8624
Sum of squares (SSX) = 83325
Sum of products (SP) = -14052.374
Regression Equation = \(\hat{y}=bX+a\)
b = SP/SSX = -14052.37/83325 = -0.16865
a = MY - bMX = 120.86 - (-0.17*50.5) = 129.37903
\(\hat{y}=-0.16865X+129.37903\)

Test B

X Values: Integers 1 to 100.
Y Values: BPMs of the Colombian data series (in the same order they appear in the table).
Results:
\(\hat{y}=-0.15638X+129.79066\)
Sum of X = 5050
Sum of Y = 12189.362
Mean X = 50.5
Mean Y = 121.8936
Sum of squares (SSX) = 83325
Sum of products (SP) = -13030.112
Regression Equation = \(\hat{y}=bX+a\)
b = SP/SSX = -13030.11/83325 = -0.15638
a = MY - bMX = 121.89 - (-0.16*50.5) = 129.79066
\(\hat{y}=-0.15638X+129.79066\)

PMCC

Then, I calculated the Pearson correlation coefficient.

Test A

X Values: Integers 1 to 100.
Y Values: BPMs of the UK data series (in the same order they appear in the table).
Results: R = -0.2194
X Values
Σ = 5050
Mean = 50.5
\(\sum(X-Mx)^2=SSx=83325\)
Y Values
Σ = 12086.244
Mean = 120.862
\(\sum(Y-My)^2=SSy=49250.301\)
X and Y Combined
N = 100
\(\sum(X-Mx)(Y-My)=-14052.374\)
R Calculation
\(r=\sum((X-My)(Y-Mx))/\sqrt{(SSx)(SSy)}\)
\(r=-14052.374/\sqrt{(83325)(49250.301)}=-0.2194\)
Meta Numerics (cross-check)
r = -0.2194

Test B

X Values: Integers 1 to 100.
Y Values: BPMs of the Colombian data series (in the same order they appear in the table).
Results:
X Values
Σ = 5050
Mean = 50.5
\(\sum(X-Mx)^2=SSx=83325\)
Y Values
Σ = 12189.362
Mean = 121.894
\(\sum(Y-My)^2=SSy=106251.226\)
X and Y Combined
N = 100
\(\sum(X-Mx)(Y-My)=-13030.112\)
R Calculation
\(r=\sum((X-My)(Y-Mx))/\sqrt{(SSx)(SSy)}\)
\(r=-13030.112/\sqrt{(83325)(106251.226)}=-0.1385\)
Meta Numerics (cross-check)
r = -0.1385

Spearman's Rho

I then used Spearman's Rho calculations to further analyse any correlation between the data.

Test A

X Values: Integers 1 to 100.
Y Values: BPMs of the UK data series (in the same order they appear in the table).
Results: \(r_s=-0.12515\), p(2-tailed) = 0.21474
X Ranks
Mean: 50.5
Standard Dev: 29.01
Y Ranks
Mean: 50.5
Standard Dev: 29.01
Combined
Covariance = -10428/99 = -105.33
R = -105.33/(29.01*29.01) = -0.125

Test B

X Values: Integers 1 to 100.
Y Values: BPMs of the Colombian data series (in the same order they appear in the table).
Results: \(r_s=-0.12515\), p(2-tailed) = 0.21474
X Ranks
Mean: 50.5
Standard Dev: 29.01
Y Ranks
Mean: 50.5
Standard Dev: 29.01
Combined
Covariance = -10428/99 = -105.33
R = -105.33/(29.01*29.01) = -0.125

T-Test

Finally, I ran a T-Test between the BPMs of the British and Colombian charts lists.

 

Treatment 1: BPMs of the UK data series (in the same order they appear in the table).
Treatment 2: BPMs of the Colombian data series (in the same order they appear in the table).
Results: The t-value is -0.26019. The p-value is .79499. The result is not significant at p < .05

 

Treatment 1
\(N_1\): 100
\(df_1=N-1=100-1=99\)
\(M_1\): 120.86
\(SS_1\): 49250.3
\(s^2_1=SS_1/(N-1)=49250.3/(100-1)=497.48\)

 

Treatment 2
\(N_2\): 100
\(df_2=N-1=100-1=99\)
\(M_2\): 121.89
\(SS_2\): 106251.23
\(s^2_2=SS_2/(N-1)=106251.23/(100-1)=1073.24\)

 

T-value Calculation
\(s^2_p=((df_1/(df_1+df_2))*s^2_1)+((df_2/(df_2+df_2))*s^2_2)=((99/198)*497.48)+((99/198)*1073.24)=785.36\)
\(s^2_{M1}=s^2_p/N_1=785.36/100=7.85\)
\(s^2_{M2}=s^2_p/N_2=785.36/100=7.85\)
\(t=(M_1-M_2)/\sqrt{(s^2_{M1}+s^2_{M2})}=-1.03/\sqrt{15.71}=-0.26\)

Conclusion

I can conclude that the correlation between what I have been investigating in this IA is weak and negative. I therefore do not reject the null hypothesis. In all honesty, I was not expecting the results of this investigation to be particularly significant, due to the wide variety of musical styles with diverse tempos, all of which can be successful pieces in their own unique ways.

Bibliography

Top Charts. (2021, January 28). Colombia Top 100 Songs Chart | Top Charts. Retrieved from Top Charts: https://www.top-charts.com/songs/all-genres/colombia/total/2021-W19

 

UK-Charts. (n.d.). UK-Charts - Top 100 2012 (Full Year). Retrieved from UK-Charts: https://www.ukcharts.co.uk/index.php/charts/2010-s/154-2012/292-top-100-2012

AI Assist

Expand

AI Avatar
Hello there,
how can I help you today?