# Comparing WikiProject Women Scientists to the rest of Wikipedia¶

In this notebook, we'll be exploring the article quality trends of the entirity of Wikipedia with those articles that fall under the perview of WikiProject Women Scientists.

This notebook proceeds in 3 main stages.

2. Comparing "weighted_sum" scores overall
3. Comparing quality predictions

In this step, we'll ensure that we have a ggplot2 and data.table libraries installed and loaded. Then we'll move on to loading in the aggregate monthly statistics for Wikipedia and WikiProject Women Scientists. This section concludes with small snippet of data from the datasets.

## 2: Comparing "weighted_sum" scores overall¶

OK. Now we'll compare the aggregated "weighted_sum" measures for all articles in the different sets. Here's how the weighted sum is calculated:

CLASS_WEIGHTS = {
'Stub': 0,
'Start': 1,
'C': 2,
'B': 3,
'GA': 4,
'FA': 5
}
def weighted_sum(probabilities):
return sum(CLASS_WEIGHTS[cls] * proba
for cls, proba in probabilities.items())


In our previous analysis, we generated a simple arithmetic mean as a centrality measure for article quality predictions for each month.

Here, we can see a clear trend in the expected "weighted_sum" quality of articles in each set. While overall, Wikipedia shows a linear growth since 2005, WikiProject Women Scientists articles shows a sudden shift around mid-2013. After this point, it seems that the quality level of articles about women scientists grows much more quickly than the rest of the encyclopedia.

## 3: Comparing quality predictions¶

The arithmetic mean provides a nice way to look at overall quality, but where were the quality changes happening? Where Stubs being converted to Start? Are GAs becoming FAs? In this section, we'll compare the proportion of articles that fall into each quality class prediction over time.

In the plot above, we can see some clear differences between Wikipedia overall and articles about Women Scientists. The "Empty" cell shows the proportion of articles that exist at the end of our observations ("possible_n") that were not yet created. Here, we can see that the rate of creation of articles for all of Wikipedia is much faster than the rate of creation of Women Scientist articles until mid-2013.

Surprisingly, the "Stub" cell show that Wikipedia generally saw a steady growth of Stubs whereas Women Scientists saw period growth. Between 2004 and 2009, Women Scientist Stubs grew steadily, but then stopped until mid-2013 when there was a sudden up-tick that continues until the end of our data (Aug 2016).

The creation (or promotion) of Women Scientist articles to Start class runs much more in-step with the rest of Wikipedia for most of its history, but it shows a suddent growth around beginning of 2013. A similar trend plays out in "C" class articles.

The proportion of articles falling to "B" class shows a dramatically different trend for all Wikipedia (exponential growth with an abrupt stop in 2007) and articles about women scientists (eponential growth until 2007, followed by a sharp decline to a valley between 2011 and 2014 and recovery). The proportion of GA articles largely tracks overall Wikipedia, though there's a smaller proportion of GA class women scientist articles between 2007 and 2013 followed by a dramatically higher proportion from 2013 forward. The FA class cell shows the proportion of FA (Wikipedia's highest quality class) articles about women scientists has been consistently lower than the rest of the encyclopedia.