Some basic theory for statistical inference