Showing posts with label epidemiology. Show all posts
Showing posts with label epidemiology. Show all posts

Wednesday, October 28, 2009

How getting vaccinated protects others

In my last post I explored a possible model for the flu and how different levels of immunity had social impact. Here I want to drill down more on how getting vaccinated not only protects yourself, but even those who aren't immune.

Here I have a graph of the expected number of people to be infected for various immunization levels.

Here we see if no-one is immunized we have an expected infection level of 61 but if 30 people are immunized that number drops to 17.

Perhaps this isn't very illuminating. I mean of course the more people who are immunized the smaller an outbreak will be, since those who are immune won't get infected. But even more than that is happening. Let's look at the chances of a non-immune person getting infected given various immunization levels.

So here we see that an individual has a 61% chance of infection given no immunity in society. But as her neighbours get immunized her chances of getting infected drop, down to 9% when 50 other people are immunized. This is because each person who is immune (a) reduces the chances of an outbreak and (b) increases the chances that the outbreak will burn out sooner.

There's an even more powerful way to see this by looking at the multiplier effect of getting vaccinated. The multiplier is how much the expected number of people infected drops divided by the amount that the personal risk drops. For example wearing a seat belt has a constant multiplier effect of 1. If wearing a seat belt reduces my chance of harm from 1% to 0.5% then we expect the expected amount of people harmed to drop by 0.005. You wearing a seat belt protects no-one but yourself.

However, not drinking and driving has quite a high multiplier since the accident caused by a drunk driver is quite likely to harm more than just the drinker.

Here's the graph for the multiplier effect of getting vaccinated in the model.

For most of the graph the multiplier effect is somewhere between 2 and 4. So by this model, you getting vaccinated passes on the protection in at least equal levels. By making yourself safe you are protecting others in the process.

Lowering the transmission level also has a similar effect to raising immunization. Stuff like washing your hands helps in this regard (see the post from the spring).

Sunday, October 25, 2009

Why is h1n1 a big deal? (and why you should get the vaccine if you can)


First off, I need to get this out of the way
Bill Maher is an idiot.

I think it's appropriate for anyone writing about H1N1 and vaccines right now to also begin their post with that comment.

With that out of the way, it seems there is a lot of confusion out there about what make H1N1 special this year. Depending on where you read it seems that it is either more infectious, just as infectious, or less infectious than the regular flu. Same goes for the intensity of the infection. Adults in their 20s and 30s may be most susceptible, or it may be the regular group of immune deficient, elderly, children and pregnant who have the most to worry.

I can't answer any of these questions for you. But I can show you why you should care about this influenza virus, and if at all possible why you should get the vaccine (if you are in Canada you definitely can get the vaccine; there was enough preparation to make sure that there is enough vaccine for everyone).

The key difference about H1N1 is that virtually nobody is immune to it. With the regular seasonal flu mutation is small enough that year over year there is some immunity that carries over, and this is enough to get a herd immunity effect. I think that this is one of those points that seems so obvious to epidemiologists and infectious disease specialists that they forget to mention it most of the time. But the one time I did hear it mentioned I was reminded of a very simple epidemic model I had constructed a few years ago.

The model attempts to mimic the behavior of a 100 person clique (100 people who are all equally connected to each other) after an infected patient 0 is introduced to the group. I assume that for every day a person is infected they have a 0.3% chance of infecting any other person in the clique; that is there is a 3/10ths of a percent chance that the infected individual will interact with someone else and that interaction results in a transmission of the infection. And I assume that an individual is infectious for 3 days.

Disclaimer: There is no reason to believe any of these assumptions estimate anything about reality. In fact most social networks aren't made up of cliques of this size - you actually have some people who are more connected and some who are less. And there's no reason to believe that your butcher goes to the same banker that you go to (which is necessary for a clique). Plus the 0.3% and 3 days numbers are completely made up numbers. This model has no predictive power.

However, I'm not trying to make a prediction of the intensity of an epidemic; I'm simply want to show some of the characteristics or rules of an epidemic. To make a somewhat opaque metaphor, I wish to show the shape, not the size, of an epidemic. Specifically I want to show that (a) herd immunity is real and (b) once an outbreak begins it is hard to stop.

To see this let's look at the cumulative distribution given for various numbers of vaccinations. These show the probability of how many people will get infected before the infection burns out (that is until no-one is left infected). These values were generated with fortran 95 code using 500,000 trials per vaccination level (pro tip: learning fortran is a stupid way to spend an afternoon).


What this cumulative distribution shows is the probability that an outbreak can be bounded by a particular size. So the chances that less than 45 people will be infected when 20 have been vaccinated is about 60%.

Notice that in the cumulative distribution, the more people vaccinated (or those who come in immune) the higher the graph starts on the left. This shows that the more people you vaccinate the higher the chance that patient 0 won't be able to infect anybody else. This is kind of obvious when you think about it. The more immune people out there the more likely the people patient 0 interacts with are immune. So if nobody is immune there is only a 14% chance of no further infection. But if you immunize 20 people that number jumps to 21% (again, these numbers aren't at all predictive as to the size of the effect).

Also notice the more people you immunize the quicker you get to 1 in the cumulative graph. This is herd immunity fully kicking in. So if no-one is immunized herd immunity will almost certainly mean no more than 90 people will get infected. But if you immunize 40 people it knocks down the maximum size of the epidemic to about 40 people.

Also note the flat line in the middle of the 0 vaccinated cumulative plot. What this shows is that once 8 or 9 people get infected it is very unlikely for the infection to burn out until it reaches at least 60 people. The more people who are vaccinated this line is shorter and more steep. This means that the more people who get vaccinated, the less capable an outbreak is of sustaining itself.

All this to say that introducing a new flu, where very few people are immune, has a big effect on the number of people infected. The less people who are immune the more likely an outbreak is to happen and the larger that outbreak is expected to be.

In the next post I will examine how much getting vaccinated assists those who don't get vaccinated.