Showing posts with label statistics. Show all posts
Showing posts with label statistics. Show all posts

Wednesday, 24 September 2014

Google Summer of Code 2014 by the numbers: Part three

In our third statistics post for Google Summer of Code (GSoC) 2014 we have a list of schools with the highest number of student participants. For the first time in seven years a new school has claimed the top spot—congratulations to International Institute of Information Technology - Hyderabad.

Rank
School
Country
# of Accepted Students 2014
# of Accepted Students 2013
1
India
69
29
2
Sri Lanka
44
39
3
India
26
19
4
India
25
16
5
Romania
17
25
6
India
15
9
7
Singapore
14
15
8
India
13
9
9
Hungary
12
7
9
India
12
17
10
India
11
10
10
India
11
0
10
Austria
11
13
10
Canada
11
2

Student majors in 2014 were predominantly in Computer Science and other technical fields (as expected).  But this year we also had students studying Anthropology, Cartography, Evolutionary Biology, Linguistics and even Metallurgy. GSoC certainly attracts a diverse set of students year after year! For more stats from 2014, check out the other posts in this series.

We’d like to thank the schools and professors that help spread the word about GSoC to their students. But don’t forget that students from any university are encouraged to participate! Reviewing statistics each year from GSoC is exciting, but being in “first place” is certainly not the most important part of the program. Our goal since the inception of GSoC is to get students involved in the creation of free and open source software, and to encourage contributions to projects that have the potential to make a difference worldwide — no matter what university the student attends.

By Mary Radomile, Open Source Programs


Wednesday, 10 September 2014

CausalImpact: A new open-source package for estimating causal effects in time series

How can we measure the number of additional clicks or sales that an AdWords campaign generated? How can we estimate the impact of a new feature on app downloads? How do we compare the effectiveness of publicity across countries?

In principle, all of these questions can be answered through causal inference.

In practice, estimating a causal effect accurately is hard, especially when a randomised experiment is not available. One approach we've been developing at Google is based on Bayesian structural time-series models. We use these models to construct a synthetic control — what would have happened to our outcome metric in the absence of the intervention. This approach makes it possible to estimate the causal effect that can be attributed to the intervention, as well as its evolution over time.

We've been testing and applying structural time-series models for some time at Google. For example, we've used them to better understand the effectiveness of advertising campaigns and work out their return on investment. We've also applied the models to settings where a randomised experiment was available, to check how similar our effect estimates would have been without an experimental control.

Today, we're excited to announce the release of CausalImpact, an open-source R package that makes causal analyses simple and fast. With its release, all of our advertisers and users will be able to use the same powerful methods for estimating causal effects that we've been using ourselves.

Our main motivation behind creating the package has been to find a better way of measuring the impact of ad campaigns on outcomes. However, the CausalImpact package could be used for many other applications involving causal inference. Examples include problems found in economics, epidemiology, or the political and social sciences.

How the package works
The CausalImpact R package implements a Bayesian approach to estimating the causal effect of a designed intervention on a time series. Given a response time series (e.g., clicks) and a set of control time series (e.g., clicks in non-affected markets, clicks on other sites, or Google Trends data), the package constructs a Bayesian structural time-series model with a built-in spike-and-slab prior for automatic variable selection. This model is then used to predict the counterfactual, i.e., how the response metric would have evolved after the intervention if the intervention had not occurred.

As with all methods in causal inference, valid conclusions require us to check for any given situation whether key model assumptions are fulfilled. In the case of CausalImpact, we are looking for a set of control time series which are predictive of the outcome time series in the pre-intervention period. In addition, the control time series must not themselves have been affected by the intervention. For details, see Brodersen et al. (2014).

A simple example
The figure below shows an application of the R package. Based on the observed data before the intervention (black) and a control time series (not shown), the model has computed what would have happened after the intervention at time point 70 in the absence of the intervention (blue).

The difference between the actual observed data and the prediction during the post-intervention period is an estimate of the causal effect of the intervention. The first panel shows the observed and predicted response on the original scale. The second panel shows the difference between the two, i.e., the causal effect for each point in time. The third panel shows the individual causal effects added up in time.
The script used to create the above figure is shown in the left part of the window below. Using package defaults means our analysis boils down to just a single line of code: a call to the function CausalImpact() in line 10. The right-hand side of the window shows the resulting numeric output. For details on how to customize the model, see the documentation.
How to get started
The best place to start is the package documentation. The package is hosted on Github and can be installed using:

install.packages("devtools")
library(devtools)
devtools::install_github("google/CausalImpact")
library(CausalImpact)

By Kay H. Brodersen, Google

Tuesday, 26 August 2014

10th Year of Google Summer of Code draws to a close

This has been a big year for Google Summer of Code, our program designed to introduce university students from around the world to open source development. In celebration of our 10th instance of the program we made a lot of changes.

In April, we accepted more students than we ever have before: 1,307 university students from 72 countries. We raised the stipend for them: the successful participants were paid $5,500 over the course of the program. These students wrote code for the largest number of open source organizations we’ve ever had participate: 190. And last but not least, we had 2491 mentors from 78 countries help them out. We are excited to announce that 89.7%* (1172) of the students passed their final evaluations. To see more about how that compares to previous years, check out our statistics from the last nine years of the program.

And we’re not done yet. This October we’ll be hosting a 10-year reunion in San Jose, California. We’ll welcome our alumni (students, mentors, and organization administrators) from all years of the program to meet and exchange ideas.

Now that this year’s program has concluded, students are busy preparing their code samples for all eyes to see. Soon you will be able to go to the program site where organizations will have links to the students’ code repositories.

Thank you to all of the students, mentors and organization administrators that have helped to make this 10th year of the Google Summer of Code a great success!

By Carol Smith, Open Source Programs

* This number could change slightly in the next few weeks



Wednesday, 18 June 2014

Google Summer of Code 2014 by the numbers: Part two

Our first “by the numbers” post was about what countries this year’s accepted Google Summer of Code students are from - all 73 countries - which made for a big list. This time we’re serving up a mix of interesting stats in smaller charts.

"How old are the students?"
Google Summer of Code is for students ages 18 and older - but note the lack of an upper limit. While most of the students are relatively young, we also welcome non-traditional students to participate. This year our oldest student is 57.

“Am I the only undergraduate in the program?”
Year after year the majority of GSoC students, more than 50%, are undergraduates, but Master and PhD programs are well represented also. 2014 is no exception.
"How many women are participating in GSoC 2014?"
We are very pleased to report that just over 10% of this year’s accepted students are women. The percentage of female students has been increasing year over year since 2006, but this is the first time we’ve broken the 10% barrier.  We are obviously still a very long way from gender parity, but we’re glad this number continues to trend upward.

We will be doing additional posts about the statistics for GSoC 2014 in the next few weeks. If you have questions, please drop us a comment and we’ll do what we can to answer in an upcoming post.

By Cat Allman, Open Source Programs

Thursday, 15 May 2014

Google Summer of Code 2014 by the numbers: Part one

Every year around this time — just after students are accepted into Google Summer of Code (GSoC) — we at the Open Source Programs Office get a ton of questions like, “How many students from my country were accepted?”, “Am I the only undergraduate?”, “How many women are participating in GSoC this year?” and so on. Once we have a chance to crunch the numbers, we can use the statistics to answer at least some of these questions for you. 

For this first post, we’ll start with “What countries are the accepted students from?” and “How many students were accepted from “X” country?”  In years past we’ve listed the 10+ countries with the largest number of accepted students, but this year we’re going to share the whole list.

Here we go! In alphabetical order:

Algeria1
Argentina9
Armenia1
Austria21
Azerbaijan1
Bangladesh1
Belarus2
Belgium7
Bosnia-Herzegovina1
Brazil21
Bulgaria6
Cameroon3
Canada37
Chile1
China48
Colombia2
Croatia3
Czech Republic8
Denmark1
Egypt6
Estonia2
Ethiopia1
Finland7
France28
Georgia1
Germany78
Greece13
Guatemala1
Honduras1
Hong Kong2
Hungary21
India401
Ireland4
Italy31
Japan6
Kazakhstan3
Kenya3
Latvia1
Lithuania3
Luxembourg2
Malawi1
Malaysia2
Mexico1
Moldavia3
Netherlands13
New Zealand2
Nigeria1
Norway1
Pakistan3
Paraguay1
Peru4
Philippines2
Poland40
Portugal9
Romania36
Russian Federation51
Saudi Arabia3
Serbia5
Singapore14
Slovak Republic4
Slovenia4
South Korea5
Spain32
Sri Lanka54
Sweden4
Switzerland5
Taiwan2
Turkey9
Uganda1
Ukraine13
United Kingdom29
United States161
Vietnam3
TOTAL 1307

As I’m sure you’ve noticed, five countries are highlighted in blue. This is the first year that students from Ethiopia, Honduras, Kenya, Malawi and Uganda have been accepted.  We are very pleased to welcome them to the GSoC family! 

We will be doing additional posts about the statistics for GSoC 2014 in the next few weeks. If you have questions, please drop us a comment and we’ll do what we can to answer in an upcoming post.

By Cat Allman, Open Source Programs


Thursday, 10 October 2013

RProtoBuf & HistogramTools: Statistical Analysis Tools for Large Data Sets

At Google, building, managing and safely securing some of the world’s largest storage systems requires complex analysis of filesystem metadata. This is an important part of making sure that the information stored within those systems is quickly accessible and always secure. We're always looking for ways to make our data storage systems more efficient, and often times, this requires understanding the age, size and access patterns of the data stored, the failure rates of servers and disks, and more. You can imagine how complex this becomes with each new data center added.

Given the number of files and servers that are relevant for this performance analysis, we bin the metadata into a compact histogram form. We use these output histograms for many purposes, such as (i) building Markov models of data availability, (ii) statistical forecasting of resource usage, and (iii) formulating and solving optimization problems to determine optimal allocation of flash devices.

We rely on several open source tools to make our work easier. The most common tool we use for statistical analysis of the performance, availability, and resource needs of our internal systems is the R programming language. We’ve released two package updates that make R particularly suitable for interacting with other distributed systems.
  • RProtoBuf is an R package for Google’s Protocol Buffer library that allows one to define simple data structures with intuitive getter and setter methods. These data structures can be serialized into an extremely compact format for sending to other distributed systems. Recent releases include improved support for 64-bit integers, protocol buffer extensions, and more.
  • HistogramTools is a new R package I have released that uses RProtoBuf to read in a compact protocol buffer representation of binned data and includes a number of helpful functions for manipulating, plotting, and measuring the statistical information loss due to the binning. In addition to protocol buffers, it also supports importing aggregate performance data directly from DTrace output.
Both packages are available on CRAN and include extensive documentation and examples.

If you're interested to learn more, we have shared some of our research findings at conferences such as OSDI, USENIX ATC, and JSM.

By Murray Stokely, Storage Analytics Team Lead