Memuat
Memuat
Missing Data Imputation for Tourism and Hospitality
0 views
Compare imputation methods for missing data in occupancy rate, room rate, and online review score in urban three-star hotels by reconstruction error. 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.

Compare imputation methods for missing data in occupancy rate, room rate, and online review score in urban three-star hotels by reconstruction error.
| Role | Variable | Unit |
|---|---|---|
| Main | occupancy rate | % |
| Supporting 1 | room rate | Rp ribu |
| Supporting 2 | online review score | skor |
With 8.8% of occupancy rate missing, Iterative imputation gives the lowest RMSE (13.892) versus mean imputation (16.835).
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
room_rate = rng.normal(0, 1, n)
online_review_score = 0.7 * room_rate + rng.normal(0, 0.5, n)
occupancy_rate = room_rate + online_review_score + rng.normal(0, 0.5, n)
full = np.column_stack([room_rate, online_review_score, occupancy_rate])
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$19
excl. 11% VAT
Duration: 3 working days
Output: Python files + result figures
Deliverables
Package 2 · most chosen
US$50
excl. 11% VAT
Duration: 7 working days
Output: Code + analysis + interpretation notes
Includes all of Package 1, plus
Package 3
US$113
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 Tourism and Hospitality. 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$19, Package 2 (your data analysis and interpretation) US$50 and Package 3 (full guidance) US$113, 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