Memuat
Memuat
Hierarchical Clustering for Tourism and Hospitality
0 views
Build a dendrogram of ecotourism zones in national park ecotourism areas from trail length and environmental cleanliness and determine a suitable number of clusters. Hierarchical clustering builds a merge tree (dendrogram) of data points based on similarity. It suits small to medium data when the number of clusters is unknown and a nested structure is of interest.

Build a dendrogram of ecotourism zones in national park ecotourism areas from trail length and environmental cleanliness and determine a suitable number of clusters.
| Role | Variable | Unit |
|---|---|---|
| Main | ecotourism zones | - |
| Supporting 1 | trail length | km |
| Supporting 2 | environmental cleanliness | skor |
Ward hierarchical clustering forms 4 clusters on ecotourism zones, trail length and environmental cleanliness with a silhouette of 0.680.
Computed from illustrative synthetic data, not from a real study.
Hierarchical clustering builds a merge tree (dendrogram) of data points based on similarity. It suits small to medium data when the number of clusters is unknown and a nested structure is of interest.
Show the dendrogram and explain the cut height chosen with its rationale. Report the cophenetic coefficient and silhouette as quality measures.
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 matplotlib.pyplot as plt
from scipy.cluster.hierarchy import linkage, dendrogram, fcluster, cophenet
from scipy.spatial.distance import pdist
from sklearn.datasets import make_blobs
from sklearn.preprocessing import StandardScaler
from sklearn.metrics import silhouette_score
X, _ = make_blobs(n_samples=80, centers=3, cluster_std=1.2, random_state=16)
X = StandardScaler().fit_transform(X)
trail_length = X[:, 0]
environmental_cleanliness = X[:, 1]
Z = linkage(X, method="ward")
coph, _ = cophenet(Z, pdist(X))
print("Cophenetic correlation:", round(coph, 3))
ecotourism_zones = fcluster(Z, t=3, criterion="maxclust")
print("Cluster sizes:", np.bincount(ecotourism_zones)[1:])
print("Silhouette:", round(silhouette_score(X, ecotourism_zones), 3))
fig, ax = plt.subplots(1, 2, figsize=(11, 4))
dendrogram(Z, ax=ax[0], no_labels=True)
ax[0].set_title("Dendrogram (Ward)")
ax[1].scatter(trail_length, environmental_cleanliness, c=ecotourism_zones, s=20)
ax[1].set_title("3 clusters")
plt.tight_layout()
plt.show()Choose how much help you need. Each higher package includes everything in the lower ones. Prices exclude 11% VAT.
Package 1
US$22
excl. 11% VAT
Duration: 5 working days
Output: Python files + result figures
Deliverables
Package 2 · most chosen
US$66
excl. 11% VAT
Duration: 9 working days
Output: Code + analysis + interpretation notes
Includes all of Package 1, plus
Package 3
US$147
excl. 11% VAT
Duration: 14-17 working days
Output: Code + analysis + guidance until ready to present
Includes all of Packages 1 & 2, plus
Yes. Hierarchical Clustering 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$22, Package 2 (your data analysis and interpretation) US$66 and Package 3 (full guidance) US$147, 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