Mozart’s Emotions and Creativity: Statistical Analysis of Composers’ Letters and Output.

[This article was first published on Economics and R - R posts, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

How did changes in life and emotional states affect the creativity and output of the great composers Mozart, Beethoven and Liszt? (Yeah, 3 composers are studied but Mozart seems to sell best, so he is in the title.) In his great article How Are You, My Dearest Mozart? Well-Being and Creativity of Three Famous Composers Based on Their Letters (ReStat 2017) Karol Jan Borowiecki studies this question using a unique database of works, bibliographic data and most importantly 1400 letters of the three composers.

As part of her Bachelor Thesis at Ulm University, Daniel Klinke has created a very nice RTutor problem set that allows you to replicate key findings of this analysis in an interactive fashion. In chapter 4 you will dig into the statistical text analysis of the composers’ letters using the modern R package quanteda to extract their emotional states during different periods of their lives.

Before, you get a descriptive overview of the emotional states and output over the composers’ live, as in the following screenshot:

Then it is also explained in detail how to establish the causal impact of emotions on creativity, and how to address potential pitfalls, e.g. by using an instrumental variables approach.

You can test the problem set online on

or locally install the problem set, by following the installation guide at the problem set’s Github repository:

If you want to learn more about RTutor, try out other problem sets, or create a problem set yourself, take a look at the Github page

or at the documentation

To leave a comment for the author, please follow the link and comment on their blog: Economics and R - R posts. offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)