Homework 1
Homework 1
Me
Introduction
The airquality dataset is a built-in R dataset that contains ‘daily measurements of air quality
in New York’ from ‘May to September 1973’. In this analysis, we examine how temperature
influences ozone levels—a critical factor for public health and environmental monitoring.
This relationship is especially relevant in the context of climate change, where rising global
temperatures could lead to more frequent air quality alerts and health advisories.
Descriptive Statistics
We compute summary statistics for the two variables of interest: Ozone and Tempera-
ture.
Clean dataset
Variable Missing_Values
Ozone Ozone 37
Solar.R Solar.R 7
Wind Wind 0
Temp Temp 0
Month Month 0
Day Day 0
1
Table 2: Table 1: Summary Statistics for Ozone and Temperature
150
Ozone (ppb)
100
50
60 70 80 90
Temperature (°F)
Interpretation
The plot reveals a positive correlation between temperature and ozone levels. As temper-
ature increases, ozone concentration also tends to rise. This trend suggests that hotter days
are associated with poorer air quality, likely due to photochemical reactions that increase
ozone formation. This has significant implications for public health, especially during summer
months.
2
Conclusion
• Analyzed the relationship between temperature and ozone levels in New York City
• Found a clear positive trend between the two variables
• Highlighted how environmental conditions can influence air pollution levels
The airquality dataset provides valuable historical insight into the impact of temperature
on urban air quality.