The statistical study of elections and trends in voting