0% found this document useful (0 votes)
2 views7 pages

Scatter Plot Analysis Using Python

The document discusses scatter plots, which illustrate the relationship between two variables, and outlines different types of correlations: positive, negative, and zero. It includes Python code for creating a scatter plot of relative humidity versus rainfall, demonstrating a weak positive correlation where increased humidity suggests a higher chance of rainfall. The conclusion emphasizes that while humidity is important, it is not the sole factor in predicting rainfall.

Uploaded by

Alhiba
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)
2 views7 pages

Scatter Plot Analysis Using Python

The document discusses scatter plots, which illustrate the relationship between two variables, and outlines different types of correlations: positive, negative, and zero. It includes Python code for creating a scatter plot of relative humidity versus rainfall, demonstrating a weak positive correlation where increased humidity suggests a higher chance of rainfall. The conclusion emphasizes that while humidity is important, it is not the sole factor in predicting rainfall.

Uploaded by

Alhiba
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

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

You might also like