Memuat
Memuat
Missing Data Imputation for Agriculture and Plantations
0 views
Fill missing daily rubber production data by imputation using daily rainfall and air temperature and compare the methods. Imputation fills missing data with estimated values so analyses do not lose many observations. Common methods are mean or median imputation, k-NN, and regression-based iterative imputation.

Fill missing daily rubber production data by imputation using daily rainfall and air temperature and compare the methods.
| Role | Variable | Unit |
|---|---|---|
| Main | Daily rubber production | kg |
| Supporting 1 | Daily rainfall | mm |
| Supporting 2 | Air temperature | °C |
With 23.7% of Daily rubber production missing, Iterative imputation gives the lowest RMSE (9.923) versus mean imputation (10.768).
Computed from illustrative synthetic data, not from a real study.
Imputation fills missing data with estimated values so analyses do not lose many observations. Common methods are mean or median imputation, k-NN, and regression-based iterative imputation.
Report the missing percentage, the imputation method with its rationale, and its effect on results (for example imputation RMSE or coefficient change). Add a sensitivity analysis.
A short starting script with this project's variable names. The delivered version is adapted to your data and fully commented.
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.experimental import enable_iterative_imputer # noqa: F401
from sklearn.impute import SimpleImputer, KNNImputer, IterativeImputer
rng = np.random.default_rng(37)
n = 300
daily_rainfall = rng.normal(0, 1, n)
air_temperature = 0.7 * daily_rainfall + rng.normal(0, 0.5, n)
daily_rubber_production = daily_rainfall + air_temperature + rng.normal(0, 0.5, n)
full = np.column_stack([daily_rainfall, air_temperature, daily_rubber_production])
X = full.copy()
miss = rng.random(n) < 0.2
X[miss, 1] = np.nan
print("Missing in x2 (%):", round(100 * miss.mean(), 1))
methods = {
"Median": SimpleImputer(strategy="median"),
"KNN": KNNImputer(n_neighbors=5),
"Iterative": IterativeImputer(random_state=37),
}
rmse = {}
for name, imp in methods.items():
out = imp.fit_transform(X)
rmse[name] = np.sqrt(np.mean((out[miss, 1] - full[miss, 1]) ** 2))
print(name, "imputation RMSE:", round(rmse[name], 3))
plt.bar(list(rmse.keys()), list(rmse.values()))
plt.ylabel("Imputation RMSE")
plt.show()Choose how much help you need. Each higher package includes everything in the lower ones. Prices exclude 11% VAT.
Package 1
US$16
excl. 11% VAT
Duration: 3 working days
Output: Python files + result figures
Deliverables
Package 2 · most chosen
US$47
excl. 11% VAT
Duration: 7 working days
Output: Code + analysis + interpretation notes
Includes all of Package 1, plus
Package 3
US$100
excl. 11% VAT
Duration: 12-15 working days
Output: Code + analysis + guidance until ready to present
Includes all of Packages 1 & 2, plus
Yes. Missing Data Imputation is commonly used at this level in Agriculture and Plantations. We adapt the analysis to your research question, your own data and your supervisor's requirements.
No. The sheet is computed from illustrative synthetic data so you can see the kind of output Python gives. For your order we run the same method on your own data.
That is the point of the packages. Every script is commented, and Package 3 includes two coaching sessions plus practice questions so you can explain the method and the results at your seminar and defence.
Each project has three packages: Package 1 (code and explanation) US$16, Package 2 (your data analysis and interpretation) US$47 and Package 3 (full guidance) US$100, excluding 11% VAT. Larger datasets, extra methods or tight deadlines adjust the quote after a short consultation.
The result sheet uses illustrative synthetic data. Python is a trademark of the Python Software Foundation.
Back to Python portfolio