Statistical Analysis and Design of Crowdsourcing Applications