Assignment7_Quarto7

Assignment 7: Sentiment Analysis

Using Sentiment Analysis tools, I will perform a comparative analysis to evaluate 93 mountain reviews on [Peak Rankings](https://www.peakrankings.com/rankings). Using sentiment in these posts I will explore 3 questions.

Question #1: Is a mountain’s score correlated with it’s review sentiment?

The peak rankings website I use scores mountains on a variety of subjective categories such as mountain aesthetic and snow. What a beautiful mountain is to one person may look different for different people. Similarly, whether you’re a park skier or a slope runner, could affect your preferred snow conditions. While the author expands on why each resort was given a particular score in the review, I’m curious if the review sentiment is correlated with the mountain score the author assigned to it.

I intend to score words in the review posts using the NRC and Bing lexicons. I will then use these sentiments to calculate the proportion of sentiment that makes up the review for each mountain. I will then plot this proportion against the mountain score I scraped from these reviews in a scatter plot and add a linear model line of best fit. This will tell us whether or not a mountain’s score is correlated with its review sentiment.

NRC Scatter Plot

$x
[1] "Sentiment Proportion"

$y
[1] "Mountain Score"

$colour
[1] "Sentiment"

$title
[1] "Correlation between Mountain Score and Review Text Sentiment"

attr(,"class")
[1] "labels"

Bing Scatter Plot

$x
[1] "Sentiment Proportion"

$y
[1] "Mountain Score"

$colour
[1] "Sentiment"

$title
[1] "Correlation between Mountain Score and Review Text Sentiment (using Bing lexicon)"

attr(,"class")
[1] "labels"

As we can see from these graphs, there is no clear correlation between review sentiment and mountain score, at least not that we can conclude from these lexicons. In the context of a ski resort “challenging” or “isolated” could be good things despite them having negative sentiment. Similarly, the words “top” and “worth” have positive sentiments, but could actually have negative or neutral connotations depending on the context they’re used in. For example, “top of the mountain” or “not worth a visit” don’t have positive connotations. This makes sentiment a bit tricky to analyze and compare next to mountain score. Although, we cannot see a correlation between mountain score and sentiment, we do see some trends within these visualizations. For example, we can see that the majority of posts have a greater proportion of positively worded writing than negatively worded writing, and that the top three emotions or sentiments expressed in these posts are “positive,” “trust,” and “anticipation.”

Question #2: How do ski resorts in the United States VS Canada compare to one another?

I’m interested in seeing the most commonly used words when reviewing Ski-Resorts in Canada and the United States. I would expect that their descriptions differ. I wonder if one country is better known for having advanced mountains, expensive ticket prices, etc. I’m curious to see what the country’s respective mountains are known for and how their sentiment compares.

I intend to answer this question by grouping location (state/province) by country and inner-joining the words from their respective reviews to the Bing lexicon in order to pull their sentiments. I will then identify the most commonly used words and graph the number of times they’re used as a contribution to sentiment in a horizontal bar chart for each country. This will allow me to compare the most commonly used words in Canadian ski resort reviews and American ski resort reviews.

Sentiment contribution doesn’t seem to differ too much between the two countries. What is perhaps more interesting is how the most commonly used words differ. Some of the top-used words in American ski resort reviews (that don’t appear for their Canadian counterparts) are expensive, free, and magic. This implies that United States ski resorts are far more consumerist in nature - often catering to the tourist business their resorts yield. They hone in on this “vacation experience” adding magic factors and fun freebies to ensure their visitors come back. At the same time, they are known for charging the most expensive ticket prices in North America.

On the other hand, some of the most common words that appear for Canadian resorts that aren’t used to describe U.S. mountains are cold, consistently, friendly, and isolated. The fact that isolated is used in Canadian mountain reviews, further asserts that Canadian ski resorts are less consumerist in nature. Additionally, due to Canada’s geographic location, it is known for its cold conditions and isolated peaks. One leg up that Canadian resorts have, asside from the natural setting of the resorts, are their friendly staff and locals. Additionally, they are known for consistency, which isn’t always the case for United States resorts that may differ drastically depending on where you visit.

Question #3: How does a review’s valence (positivity/negativity) differ by month?

I’m curious to see if the author gets more critical as the season goes on or if his reviews are positively skewed in particular months of the year. Perhaps the conditions are better in certain months or there’s more excitement going into the season that may affect the reviews’ sentiment.

In order to explore this question, I will calculate valence or sentiment by taking the count of positive words - negative words. I will them graph this valence by month in a column chart to investigate how sentiment changes based on the time of year.

As we can see by this graph, review sentiment ratio remains consistent between the months with the majority of reviews containing slightly more positive sentiment than negative sentiment. However the distribution of this valence differs drastically by the months. We can see a wider distribution of valence in October and November. This is typically the start of ski season, and there’s likely more anticipation to get out on the slopes at this time. This may contribute to the increased positivity and negativity in the authors reviews. We can also see that Summer months have a smaller valence distribution. This is likely because many resorts close during Summer months - meaning the author is likely visiting less mountains and writing less reviews around this time.

Bonus Question: What are the most commonly used words in mountain reviews?