0% found this document useful (0 votes)
3 views3 pages

Homework 1

This document analyzes the relationship between temperature and ozone levels using the airquality dataset from New York (1973). It finds a positive correlation, indicating that higher temperatures are associated with increased ozone concentrations, which has implications for public health. The analysis includes descriptive statistics and visualizations to support the findings.

Uploaded by

pandey.vyom1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

Homework 1

This document analyzes the relationship between temperature and ozone levels using the airquality dataset from New York (1973). It finds a positive correlation, indicating that higher temperatures are associated with increased ozone concentrations, which has implications for public health. The analysis includes descriptive statistics and visualizations to support the findings.

Uploaded by

pandey.vyom1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

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

Table 1: Table 2: Missing Value Count Before Cleaning

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

Count Mean_Ozone SD_Ozone Mean_Temp SD_Temp


111 42.0991 33.27597 77.79279 9.529969

Plot: Ozone vs Temperature

`geom_smooth()` using formula = 'y ~ x'

Ozone Concentration vs Temperature in New York (1973)

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

In this report, we:

• 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.

You might also like