Who Wrote the Gospels? - Jan 30 - Colaboratory
The Christian Bible consists of 66 books. Four of these books (Matthew, Mark, Luke, John) tell the life of Jesus; these 4 books are collectively known as the Gospels. In this activity, you will use data science to rediscover a fact about the Gospels that have long been known to religion scholars, without reading the text! The text of the four gospels are stored on the web in four files: Read in the four texts into a list called corpus. Construct the term-frequency matrix for this corpus, and calculate the Euclidean distances between all pairs of gospels. Which two gospels are most similar? Most different? Matthew and Luke are the closest, Luke and John are the furthest In the vector space model, we treat the documents as vectors instead of points. To measure the distance between two vectors, we use cosine distance. Calculate the cosine distances between all pairs of gospels. What do you notice now? How does your conclusion compare with the one you obtained above? The distances are pret
Explore this link on the map →