Diophantine analysis : course notes from a summer school