Educational expectations and attainment