The Origins of Music
Introduction
My project is about the origins of music. Different types of music were sampled based on their frequency and the latitude/longitude of the song. While I’m not interested in the frequencies of the songs, more so on where they are located around the world. From there we can research what types of music it might be, whether or not there is more music in more populous areas, and possibly if tehcnology plays a role in why there more music shown in areas.
Music Locations
LatLong <-
musicOrigins %>%
select(V117, V118)
colnames(LatLong)[colnames(LatLong)=="V117"] <- "Latitude"
colnames(LatLong)[colnames(LatLong)=="V118"] <- "Longitude"Here we pulled the last two columns, latitude and longitude, that is because it will help us pinpoint the each of the objects on a world map. I pulled these two columns out since they will be the only ones that we will be working with.
Analysis
From the Latitude and Longitude columns that we pulled earlier, we are now going to plot them on a map. This will help us see where these music objects originated from.
Mapping
set.seed(1059)
musicClusters <- LatLong %>%
kmeans(centers = 6) %>%
fitted("class") %>%
as.character()
LatLong <- LatLong%>%
mutate(cluster = musicClusters)
LatLong %>%
ggplot(aes(x = Longitude, y = Latitude)) +
geom_point(aes(color = cluster), alpha = 0.25)We have our map now and it looks fairly interesting. The dots represent a different region on the map. With that think more along the lines that region is a continent. There is a big cluster near the near Europe and Western Asia then spreads out from there. From there, the next biggest group is in Eastern Asia.
Conclusion
In conclusion there are many things we can speculate from some dots that have been pact into a map. One of the things we can try to do is to locate what country that those dots are in. From there, we can look up what kinds of music originated in those countries. For example the turquois dot at the bottom left; I took the latitude and longitude that is a rough estimate to get me to Brazil. Then I proceeded to further my recearch by seeing what music originated in Brazil. I came to find that the Samba had orginated there. The Samba was made for the biggest event that happens there, Carnival.
Through these points we can find loads of information just by the location it gives us. So, for future application of this project I would like to manipulate the data set to create a new column for country originated. From there I would like to create some linear models and or trees to help make predictions of origins when given some random variables. Being able to predict the origins of the music can help tell us what types of music that it might be. Which leads me to think about the app Shazam or any other music predicting apps. They take many different variables to predict the song. From what we have and what we can add, we could possibly create something similar to those kind of apps.