Questions tagged [spatial-statistics]

The field of study concerning statistical methods that use space and spatial relationships (such as distance, area, volume, length, height, orientation, centrality and/or other spatial characteristics of data) directly in their mathematical computations.

Filter by
Sorted by
Tagged with
2 votes
2 answers
57 views

Getting different Moran indexes?

I'm struggling to evaluate the spatial autocorrelation of several databases. These databases consist of coordinates and different environmental information associated with those coordinates. Strangely,...
  • 103
1 vote
1 answer
73 views

Percentage of point features within polygon boundaries R

I am trying to create a histogram with the percentage of a concentration of points in a specific area. My data is someting like this: setwd("C:\\Users\\HP\\Desktop\\myrtos") getwd() library(...
  • 29
-1 votes
0 answers
12 views

On simultaneous autoregressive spatial model [closed]

Is it possible to fit a simultaneous autoregressive spatial model with both quantitative and qualitative variables? Which package (preferably R) would you recommend to do that?
0 votes
0 answers
13 views

Get derived output of grouping analysis in ArcPy using ArcMap

I try write a Python script to run Grouping Analysis a large number of times on different input files. After the first run (apply evaluate the best group between 2-15) I would like to get the derived ...
  • 79
0 votes
0 answers
16 views

GWR R^2 metric decreases when adding more regressors

I'm using the fastGWR implementation of geographically weighted regression (https://github.com/Ziqi-Li/FastGWR). I fit a model with 3 variables and achieve an R^2 score in line with what I'm expecting....
0 votes
1 answer
34 views

Correlation Chart Series Error in Google Earth Engine?

I'm going to get correlation series between LAI and FAPAR using NOAA AVHRR data by the below code in Google Earth Engine but returns error. Does anyone has idea? Error message: Error generating chart: ...
1 vote
0 answers
37 views

Approximate value of properties based on sold properties in the area

I have a polygon layer in QGIS containing the parcel data for a city and surroundings, and a point layer with information about properties that have been sold recently. Since there are far fewer ...
  • 121
0 votes
1 answer
44 views

Treat NA as 0 in custom function for lapp in {terra} R library

I am trying to use the lapp function from the terra rstats library to do some raster-math. But when cells have NA in them, it is giving me the 'wrong' result. Here is my current function and result. a ...
1 vote
0 answers
39 views

Moran's I in panel data using contiguity matrix

I have some data in a panel format and want to run some spatial panel regression. In a cross-sectional framework, I would run a simple regression and test the spatial autocorrelation from the ...
0 votes
0 answers
27 views

Interpreting mean squared error (MSE) of Forest-based Classification and Regression Model of ArcGIS Pro

In the Forest-based Classification and Regression Model of ArcGIS Pro 2.8.4, how do I interpret the Model Out of Bag Errors and its mean squared error (MSE)?
0 votes
0 answers
9 views

Is there a way to more accurately calculate average nearest neighbor on a point dataset arranged along roads?

I recently used the Average Nearest Neighbors tool in ArcGIS Pro to get a calculation of the average distance between points in a roadkill dataset. The tool assumes that points are not spatially ...
0 votes
0 answers
15 views

Calculate new aggregated data using given aggregated data for different geographical unit

I have data aggregated (mean) on the neighbor level. And the same region is clustered using some criteria, and the relation is a new geographical unit. Are there approaches to calculating the ...
0 votes
0 answers
28 views

Wrong raster values

I generated a local relief file from DEM using MATLAB TopoToolbox. Automatically the file set the max value 3621 m (which is not true because there is not that difference between max and min altitude ...
2 votes
1 answer
47 views

Calculating max and min pixel values for numerous overlaying rasters in QGIS

I have over 1000 interpolated raster layers. I'm trying to use QGIS 3.16 to create a confidence interval map by finding the difference between the highest and lowest values at each pixel and creating ...
  • 149
1 vote
1 answer
113 views

GeoPandas Spatial Join with random samples

I have a geopandas DataFrame with Polygon geometry and another one with POINT geometry. I'd like to do a spatial join between them and randomly select a set of points that are within certain distance ...
  • 365
0 votes
0 answers
14 views

How do I tell if a higher rate of (whatever) is due to higher population, or if its actually significant?

I hope that makes sense-- it's a bit difficult to word. We all know that more stuff happens in the places with more people, and less stuff happens in places with less people. What are some strategies ...
  • 21
0 votes
1 answer
61 views

Rasterise a point pattern in R

I have a set of georeferenced points within an area for which I want to know the spatial distribution (sparse/clustered) according to a regular grid. I thought to describe the pattern using the Clark-...
  • 153
0 votes
1 answer
65 views

Google Earth Engine: Calculating image statistics for multiple study regions simultaneously

I am trying to calculate burned area for the districts of Punjab state. I have used following code var admin2 = ee.FeatureCollection("FAO/GAUL_SIMPLIFIED_500m/2015/level2"); var state = ...
  • 111
0 votes
0 answers
15 views

Modeling spatial relationships between two feature classes in ArcMap

I am using ArcMap 10.8. I am working on a project that involves a polygon feature class that represents mean income and a polygon feature class that represents the parks within a city. I want to model ...
  • 1
4 votes
2 answers
302 views

Calculating mean value for points within polygon in QGIS

I have square polygons that follow the route of a boat. There is also a point layer with different measurements like salinity, temperature etc. Sometimes there is only 1 point inside the polygon, but ...
  • 121
4 votes
1 answer
206 views

KNN for spatial data and two sets of coordinates

I'm trying to estimate an average value of distances to K nearest neighbors. I have two sets of coordinates and I'm trying to estimate the average distance from each point in one set of coordinates to ...
  • 43
0 votes
1 answer
160 views

Google Earth Engine: Get summary statistics of an image for the whole globe (not for a region)

Is it possible to get descriptive stats for an image for the entire globe? I've been trying to google this but I generally find two types of answers: Sats over a region using image.reduceRegion(..) ...
0 votes
0 answers
25 views

Storing movement vectors in DB

I'm not sure if this question is applicable to here or the stats exchange. Maybe some GIS folk have taken a good look at GIS stats? I've got a postgres+postgis+timescaledb database that has billions ...
  • 1,256
0 votes
0 answers
10 views

QGIS - Randomisation and multiplication of a polygon with CLC files

I am using QGIS 3.22 and the Corine CLC vector files for years 2006, 2012 and 2018. I Want to generate a polygon with a random shape, which would be exactly the same size of the polygon circled in red....
  • 399
1 vote
0 answers
33 views

Nearest Neighbour Index (NNI): how to compare values & in depth explanation of how to calculate expected mean distance

I have two questions regarding the ‘Nearest Neighbour Index (NNI)’, sometimes also referred to as ‘Nearest Neighbour Analysis (NNA)’: I have calculated the ‘Nearest Neighbour Index’ for 4 different ...
  • 542
0 votes
0 answers
54 views

Spatial similarity measure with continuous data using Python

My question is similar to an unanswered one at Quantifying similarity between two independent areas using R. I'm doing a machine learning project with PyTorch and am looking for a way to compute ...
0 votes
1 answer
33 views

What is the "block" argument in Automap R package?

Sorry for not providing a code. I am asking a question that do not need a written chunk of code. I am performing climate interpolation using the automatic semivariogram fitting offered by Automap R ...
  • 199
2 votes
1 answer
430 views

Error with function argument when using extract function in R

I am using the script described here to try to extract a count of raster cells within polygons in a shapefile. This code worked for me yesterday but today I am getting the following error: Error in ...
  • 61
0 votes
1 answer
98 views

Do you need to factor in projection into area calculation in Google Earth Engine (GEE)?

I'm interested in calculating the area I have classified of a certain class. Do you need to account for projection to assess class area or can you run the following code and it will be accurate? I'm ...
0 votes
0 answers
8 views

STARS toolbox segment PI returning nulls

I am working to create an isoscape using the STARS toolbox in ArcGIS, and have come back to it to rerun a few things. I had previously run the segment PI (proportional influence) using watershed area ...
1 vote
1 answer
91 views

Using weight component in Moran I calculation

I'm trying to understand the Moran I calculation, and there is something I don't understand. In this tutorial, Moran I described as the slope value of the correlation between one polygon to the ...
  • 1,819
1 vote
0 answers
32 views

Discrepancies in size of area for Brownian bridge model

I want to get the size of some animal tracks using a Brownian bridge movement model. However, I've noticed that when I combine my data into a single object the size of the area differs compared to ...
  • 61
1 vote
0 answers
33 views

Is it possible to segment data in QGIS by adding shapefiles and then exporting both as one (csv) dataset?

I have this global temperature data set https://1drv.ms/u/s!ArVyXA5cSMj2h6h0GCSsNGKCsAYpSg?e=bZUaxx (sorry it's almost 1GB, but this light data set is much smaller and is very similar, if you just ...
2 votes
0 answers
30 views

Comparing Heatmaps over time

We have a huge dataset of mobile users (tourists) and want to see how the density in a city has changed (from one spot to another) before during Covid. Of course we can create a heatmap for different ...
1 vote
1 answer
307 views

Creating formatted chart for Confusion Matrix using Google Earth Engine

I was curious how to create a formatted Confusion Matrix: (https://developers.google.com/earth-engine/apidocs/ee-confusionmatrix) I've completed my Supervised Classification, and I've created a ...
2 votes
1 answer
65 views

Getting percentage of string values for point layer within polygons of another one

I have two layers. One with polygons of areas of a city. Another one - with points corresponding to buildings. In point layer there is a field with the names of management companies of that buildings. ...
  • 515
0 votes
0 answers
57 views

What tools/methods are there for spatial autocorrelation with raster data in ArcMap?

I'm using high resolution LiDAR data to find patterns in canebrakes. My hypothesis is that cover (represented by point density per cell) will be more homogeneous between height strata in canebrakes ...
0 votes
0 answers
25 views

Getting raster statistics without clipping in ArcGIS Pro

I am using the ESRI 2020 landcover dataset in ArcGIS Pro. I also have a shapefile layer with the countries of the world. What I am trying to do is to report the landcover per country, but without ...
  • 335
0 votes
0 answers
66 views

Can the Getis-Ord Statistic really be considered a measure of spatial autocorrelation?

The Getis-Ord statisic G_i(*)= \Sigma_j w_{ij} x_j / \Sigma_j x_j basically calculates a geographically weighted average at some point. Is it fair to say that it is rather a measure of spatial ...
0 votes
0 answers
71 views

Stein's parameterization matern model kriging SAGA in QGIS

I performed autovariogram in R. It gave me the output seen below. It suggest using a matern model-Steins parameterization (indicated by the "Ste"). I would like to try the kriging tools by ...
0 votes
1 answer
112 views

Counting points in polygon using separate attribute values in ArcGIS Pro

I am trying to determine the different land surface types within a set of polygons. To do this I converted my land surface type raster layer to points. So now I have a polygon layer (hexbins across my ...
  • 23
0 votes
0 answers
52 views

Null standard errors in multiscale geographically weighted regression

I'm currently conducting an multiscale georgraphically weighted regression using the official python based package by Oshan et al.*. However, i ran into a slight problem. Whenever an explantory ...
0 votes
0 answers
67 views

Want to calculate percent cover of land use categories within buffer areas?

I have point data and a land use map. I created 100m buffers around each point, I now want to calculate the percentage of cover represented by each land use category detected within the buffers. Would ...
4 votes
1 answer
305 views

How to assign a neighbour status to unlinked polygons

This question is, in part, a follow up to: https://stackoverflow.com/questions/57269254/how-to-impute-missing-neighbours-of-a-spatial-weight-matrix-queen-contiguity I have a .shp similar in structure ...
0 votes
1 answer
60 views

Calculating percentage of points per raster band (elevation, slope, aspect...) in QGIS

I have a series of rasters expressing environmental variables, for example, elevation. I have used the tool 'add raster values to points' to classify the sites according to the bands (10) I have ...
2 votes
1 answer
214 views

Rendering three-composition raster map with ternary colormap using R

Say there are three raster maps, representing percentages of sand, silt and clay respectively. The three values for each cell are hence summed up to 1. I want to use one raster map to characterize the ...
1 vote
1 answer
121 views

Fitting a variogram for Kriging in R

I want to fit a variogram of my data for kriging. Here is what I have so far: library(sp) library(rgdal) require(gstat) setwd("C:/Users/49151/Desktop") #import data data <- read.csv(&...
0 votes
1 answer
81 views

IDW plot miscalculation

I want to perform IDW in R and plot it with ggplot. Here is my code so far: library(tidyverse) kerpensample_df <- read.csv("C:\\Users\\49151\\Desktop\\kerpentest0909x.csv", ...
0 votes
0 answers
33 views

GRASS QGIS v.vect.stats returns NULL for all polygons

I'm running v.vect.stats from Grass using the processing toolbox in QGIS to take an average of a point layer attribute for points falling within a set of polygons. After running the algorithm a ...
  • 133
3 votes
1 answer
41 views

Field name for stats to be calculated not appearing using v.vect.stats

I'm trying to calculate the average value for an attribute of a set of points that fall within a set of polygons using v.vect.stats from GRASS. I've checked the attribute table of the point layer ...
  • 133

1
2 3 4 5
13