Calculate the cumulative incidence of an illness during an outbreak.
The Attack Rate is:
Understanding the Attack Rate
In epidemiology, the attack rate is a specific type of incidence rate used during short-term outbreaks, such as food poisoning episodes or localized viral transmissions. It measures the proportion of a population that becomes ill during a defined period among those who were exposed to the risk.
The Attack Rate Formula
To calculate the attack rate, use the following mathematical formula:
Attack Rate (%) = (Number of New Cases ÷ Total Population at Risk) × 100
Step-by-Step Calculation Example
Imagine a wedding where 200 guests attended. Within 24 hours of the reception, 50 guests reported symptoms of gastroenteritis. To find the attack rate:
New Cases: 50
Population at Risk: 200
Calculation: (50 / 200) = 0.25
Result: 0.25 × 100 = 25%
This means the attack rate for the wedding outbreak was 25%.
Why is the Attack Rate Important?
Public health officials use this metric for several critical reasons:
Identifying the Source: By comparing attack rates among different groups (e.g., those who ate the salad vs. those who didn't), investigators can pinpoint the source of an outbreak.
Resource Allocation: It helps hospitals and clinics predict the scale of the emergency and allocate personnel and medicine accordingly.
Evaluating Interventions: If a vaccine or safety measure is implemented, a decrease in the attack rate over time indicates the intervention is working.
Secondary Attack Rate
While the primary attack rate measures initial exposure, the Secondary Attack Rate measures the spread of the disease from infected individuals to their close contacts (like family members) who were not part of the original exposure. This helps determine how contagious a disease is within a household or community setting.
function calculateAttackRate() {
var cases = document.getElementById('newCases').value;
var population = document.getElementById('totalPopulation').value;
var resultBox = document.getElementById('resultBox');
var resultDisplay = document.getElementById('attackRateResult');
var interpretation = document.getElementById('interpretation');
// Validation
if (cases === "" || population === "") {
alert("Please enter values for both fields.");
return;
}
var casesNum = parseFloat(cases);
var popNum = parseFloat(population);
if (popNum popNum) {
alert("Number of cases cannot exceed the total population at risk.");
return;
}
// Calculation
var attackRate = (casesNum / popNum) * 100;
// Display Result
resultDisplay.innerHTML = attackRate.toFixed(2) + "%";
// Contextual Interpretation
var text = "";
if (attackRate < 5) {
text = "This represents a relatively low attack rate for the specified population.";
} else if (attackRate < 25) {
text = "This is a moderate attack rate, indicating significant spread within the group.";
} else {
text = "This is a high attack rate, suggesting a highly contagious agent or a concentrated exposure source.";
}
interpretation.innerHTML = text;
resultBox.style.display = "block";
}