Crop Yield Prediction

Exploratory Data Analysis

Understanding patterns and relationships in 1,000,000 crop yield records

Yield Distribution

Distribution of target variable: Yield_tons_per_hectare

0.00
Min
9.96
Max
231
At Minimum
4.65
Mean
4.65
Median
1.70
Std. Dev
-0.0003
Skewness
2.46
IQR
0
Missing
Distribution of Yield_tons_per_hectare across 1,000,000 observations
012K25K37K50K025710Yield (tons / hectare)Count of observations

Variables Associated with Yield

Pearson correlation summary · Points show binned averages, not individual observations

Rainfall (mm) and Yield
Pearson r: 0.765N: 1,000,000
Each point is a bin midpoint and its average yield, not an individual observation.0.02.55.07.510.0122336550764978Rainfall (mm)Average yield (tons / hectare)
Temperature (°C) and Yield
Pearson r: 0.086N: 1,000,000
Each point is a bin midpoint and its average yield, not an individual observation.0.02.55.07.510.01622283339Temperature (°C)Average yield (tons / hectare)
Days to Harvest and Yield
Pearson r: -0.003N: 1,000,000
Each point is a bin midpoint and its average yield, not an individual observation.0.02.55.07.510.06283104126147Days to HarvestAverage yield (tons / hectare)

Agricultural Practices & Yield

Average yield by farming practice

Fertilizer Used
Not Used: 3.90 t/ha; Used: 5.40 t/ha0.02.55.07.510.0Not Used3.90Used5.40Average yield (t/ha)
Irrigation Used
Not Used: 4.05 t/ha; Used: 5.25 t/ha0.02.55.07.510.0Not Used4.05Used5.25Average yield (t/ha)

EDA Summary

  1. 1Rainfall shows the strongest positive continuous association with yield (r = 0.765).
  2. 2Fertilizer use is associated with higher average yield (5.40 vs 3.90 t/ha).
  3. 3Irrigation use is associated with higher average yield (5.25 vs 4.05 t/ha).
  4. 4Temperature shows only a weak positive relationship with yield (r = 0.086).
  5. 5Days to Harvest shows essentially no linear association with yield (r = -0.003).
  6. 6Crop, region, soil type, and weather condition show limited differences in average yield.
Interpretation and dataset limitations
  • The dataset contains no year, date, or season column. Yearly trend analysis, temporal splitting, and future-period prediction claims are therefore unavailable. Grouped comparisons across Crop, Region, Soil_Type, Weather_Condition, Irrigation_Used, and Fertilizer_Used are used in their place.
  • This dataset shows strong signals of synthetic generation. All findings, predictions, and recommendations are illustrative and validate the analysis workflow only. They are not evidence about real agricultural systems and must not inform agricultural policy.
  • All statistics here are descriptive. None establishes causation.