The book gathers the lecture notes of the Les Houches Summer School that was held in October 2013 for an audience of advanced graduate students and post-doctoral fellows in statistical physics, theoretical physics, machine learning and computer science.