TV program ratings analysis