Sentiment Analysis

Sentiment in tweets is highly related to external events. In this section, I plotted sentiment in Ukraine with dates. We could find out which events were most impactful to Ukranians. Next, we visualized how other countries' sentiment changed over time and compared their distributions. Finally, I analyzed the relationship between each country's sentiment.

Sentiment in Ukraine

Click on circles to see what happend on a particular date.

MarchAprilMayJuneJulyAugustSeptemberOctober-0.8-0.7-0.6-0.5-0.4-0.3-0.2-0.10.00.1

What were the most impactful events?

Top 3 Positive Events

1. Aug 24th
Aug 24th is Ukraine's Indepence Day. Even though there were Russian missile strikes across Ukraine, the symbolic meaning of Independence Day overcame the negative incident.

2. Sep 08th
Ukraine made a huge progress in the war advancing in Kharkiv region and liberating 20 settlements.

3. Jun 23rd
Ukrainian President Volodymyr Zelensky has called the European Council decision to grant Ukraine candidate status a “victory."

Top 3 Negative Events

1. Jul 29th
EU foreign affairs official "appalled" by reports of Russia killing dozens of Ukrainian prisoners of war.

2. Jul 14th
Russian cruise missiles from Black Sea killed at least 23 people in attack on Vinnytsia.

3. Apr 03rd
Heavy fighting and airstrikes ongoing in Mariupol.

Sentiments in other countries

Below is a line chart of sentiments in Ukraine, USA, and Russia. One can antipate that countries with similar interests would have a similar pattern in their sentiments (e.g. Ukraine and USA). One efficient way to see if two countries have a positive/negative relationship is correlation coefficient.

Correlation Coefficients Heatmap

Key Observations