--- title: Spatial Cluster Analyzer emoji: 📈 colorFrom: green colorTo: indigo sdk: gradio app_file: app.py pinned: false --- # Spatial Pattern & Cluster Analyzer An interactive computational tool designed for spatial social science, sociology, public health, and criminology to analyze spatial clustering, calculate Global Moran's I, and identify spatial hotspots (Getis-Ord Gi*). ### Features 1. **Global Moran's I**: Computes Global Moran's I to test whether values are clustered, dispersed, or random, accompanied by analytical Z-scores and two-tailed p-values. 2. **Getis-Ord Gi\* Hot Spot Mapping**: Calculates localized spatial clustering to identify significant High-High hotspots and Low-Low coldspots. 3. **Interactive Leaflet Maps**: Visualizes hotspots in a responsive, beautifully styled CartoDB Dark Matter map containing coordinates and z-scores. 4. **Pedagogical Report**: Automatically translates statistical math into jargon-free, educational sociological descriptions for students.