SCATTER PLOT ANALYSIS
USING PYTHON
SCATTER PLOT
A scatterplot is a type of graph used to show the relationship between
two variables. Each point on the graph represents one pair of values .
Scatterplot shows:
• Relationship between variables (e.g., rainfall vs runoff)
• Trend (increasing, decreasing, or no pattern)
TYPES OF SCATTER PLOT
POSITIVE NEGATIVE ZERO
CORRELATION 01 CORRELATION 02 CORRELATION 03
As one variable increases, the other also As one variable increases, the other decreases No clear relationship between variables
increases Points move downward from left to right Points are randomly scattered
Points move upward from left to right
Example: Humidity vs Wind direction
Example: Rainfall ↑ → Runoff ↑ Example: Temperature ↑ → Soil moisture ↓
PERFECT NON-LINEAR
CORRELATION 04 05
All points lie exactly on a straight line Data forms a curve instead of a straight line
Can be:
Perfect positive Example: Evaporation vs temperature (curved
Perfect negative trend)
Python code for scatter plot - Relative Humidity
and Rainfall
import pandas as pd
import [Link] as plt
path=(r"C:\Users\Lenovo T460\OneDrive\Desktop\RAFEENA\PYTHON\Rain [Link]")
data = pd.read_csv(path)
[Link](data['Relative Humidity'],data['Rainfall mm'],color='blue',s=50,marker='x')
[Link]("Relative Humidity (%)", fontsize=10)
[Link]("Rainfall (mm)", fontsize=10)
[Link]("SCATTER PLOT\n Relative Humidity Vs Rainfall ",color='green', fontsize=12)
[Link](True)
[Link]()
SCATTER PLOT
Hydrological Interpretation
The plot shows a positive correlation.
As Humidity increases, chance of rainfall increases.
High humidity is necessary but not sufficient for rainfall
Conclusion:
The scatter plot shows a weak but positive relationship, indicating that
humidity alone cannot explain rainfall, highlighting the complexity of
hydrological processes.
THANK YOU