herd immunity, immunity that occurs when an entire group of people become immune to a particular infection, occurs from previous exposure to cold viruses. thus younger populations have greater rates of respiratory infections and older populations have lower rates of respiratory infections. poor immune function is also a risk factor for disease. lack of sleep and poor nutrition have also been associated with a greater risk of developing infection following rhinovirus exposure. this is believed to be due to their effects on immune function.