# Questions tagged [statistics]

Collecting and analyzing numerical data or making numerical summaries of data.

319 questions
Filter by
Sorted by
Tagged with
4k views

### Major bug in ArcGIS Zonal statistics?

Update: The bug has been fixed in the ArcGIS 10.4 release I am using ArcGIS 10.2.2 to determine zonal statistics for a number of zones. If there is any NoData in the value raster, I want the zone ...
9k views

### Get Raster Values from a Polygon Overlay in Opensource GIS Solutions

I have two layers. A polygon-shape-layer with many tiles and a raster-layer containing CORINE 2006 land cover with many categories in a colourmap. I want to obtain for each polygon in the shapelayer a ...
24k views

### How to calculate raster statistics for polygons?

how can I calculate sums, averages etc of raster-points (multi-band) per polygon of a vector-layer. I was told that this is called "zonal statistics". I tried that with QGIS first. There is a way to ...
5k views

### How to calculate average slope in a grid?

This is actually a two part question: Which methods are there to calculate average slope by unit (say km²) for a given area? Are there any special requirements on the data - like additional ...
1k views

### How is margin of error reported on a map?

When reporting estimates you should always include the margin of error. There are conventional ways of reporting margin of error in a table, text or graph. But, how do you report margin of error for ...
17k views

### Getting tabular statistics from table using QGIS?

Are there QGIS tools that will allow users to get tabular statistics from their table? I kind of expected I would be able to just open the table, select the field I was interested in, right-click on ...
8k views

### How to get GDAL to create statistics for GTiff in Python

I regularly create my own GeoTIFF rasters with GDAL in Python, e.g.: from osgeo import gdal from numpy import random data = random.uniform(0, 10, (300, 200)) driver = gdal.GetDriverByName('GTiff') ds ...
3k views

### Determining min and max values in an ASCII raster dataset using Python?

I have a raster dataset in ASCII format. Using Python, I need to determine the min and max values inside the dataset. I've been told that the header information is key, which contains things like ...
672 views

### Math and Stat for GIS and Computing

I am planning to do an advanced program in spatial science and engineering. It states as a requirement in the program, that the student should have a through understanding in math and statistics. So ...
4k views

### Calculating spatial correlation between features from two separate layers in QGIS

I am trying to determine whether the presence of large numbers of active duty military troops in an area is spatially correlated with higher/lower levels of violent crime. That is, are the areas ...
2k views

### Plotting bar charts on maps in R?

I'm using plotrix in R to plot a state level map of the US. It has an excellent function floating.pie to put pie charts on each state. I'm wondering if there are similar functions within the plotrix ...
8k views

### How to sum up pixel values in QGIS?

I need to know the value of the sum of all pixels in a raster. However, in the Statistics section of the Metadata tab in Properties, under Sum of All Cells it always indicates 0.00. I have tried with ...
16k views

### Calculate area of intersecting polygons in QGIS

I have two collections of shapefiles: 1 - postal codes, administrative and political areas 2 - various land use categories like parks & allotments, and points like trees I want to produce ...
1k views

### How can I find the median column in a database?

I have data on period of construction for dwellings in dissemination areas. I have transferred this data to my study areas and would like to determine the median period of construction for each study ...
5k views

### Calculating area weighted average of attribute in one layer by shape in another using ArcGIS for Desktop?

For a project I am working on I would like to intersect fire station response districts with income data to determine the median income per response district. However the borders of the layers ...
330 views

### spatial and spatiotemporal analyses

I have a dataset that consists of 247 mosquito traps placed in fixed positions and sampled weekly for 23 weeks. I also have dengue disease incidence data (indexed to home address) during the same time ...
13k views

### How to count occurrences of one field grouped by values of another?

Is there a way of calculating the number of unique text strings in a field in ArcGIS 10.1? I have a number of repeated strings in this field, but would like to calculate the number of unique strings ...
2k views

### Explaining different Standard Deviation results from same data in ArcGIS Desktop and MS Excel?

I have done some interpolation in Geostatistical Analyst in ArcGIS and I got the Standard Deviation (SD) a bit different from the SD that I calculated in Excel Spreadsheet. What algorithm does each ...
5k views

### Frequency, summarize tool options of ArcGIS for Desktop?

I'm looking for some general frequency, summarize tool. What I basically want is some tool like the summarize tool in ArcGIS (right click in the attribute table> summarize) that runs on all attributes ...
7k views

### Is there a zonal statistics tool to calculate median and mode raster values for each polygon?

I'd like to calculate zonal statistics for a raster where the zones are defined by polygons in a vector layer within QGIS. Specifically I'm interested in calculating the median and mode raster values ...
5k views

### GDAL does not ignore NoData value

I am trying to calcualate the statistics of a TIFF. The script should ignore the NoData value, but doesn't. What causes this? import gdal from gdalconst import * # register all of the drivers gdal....
1k views

### Is it possible to calculate statistics across multiple fields in arcpy?

The summary statistics command can be used in arcpy to calculate statistics - this tool runs against a single field, eg: SUM—Adds the total value for the specified field. Is there an out-of-the-...
543 views

### How to automatically sum up values within buffers?

I want to establish the population figures within multi-ring buffers around certain site. I have set up the buffers and am running a select by location query on each concentric ring. Once the ...
809 views

### How to use ZonalStats plugin?

I am using QGIS 1.8.0 on a Windows Home Premium 7 machine. I have a single band TIFF that is 187 MB in size. My vector polygon shapefile represents a regular grid of a 147x112 36kmx36km grid cells. ...
151 views

### How can I generate a range of pantones for a map?

When I am given a map (or make one...) I often like to get an idea of the range of colours present. One thing this does is it allows me to quickly visualize contrast (helps build maps for colour blind ...
436 views

### Graphically depict statistical difference between thematic rasters

The graph shows a regression between two raster datasets with classified tree canopy cover: class 1 = 0-10%, class 2 = 10 - 20% ...class 6 = >60% (Figure 1, Figure 2). The spatial resolution for ...
3k views

### how to get max and min from a raster using arcpy?

I have a land surface temperature raster file and I want the max and min of it. minLSTresult = arcpy.GetRasterProperties_management(raster_result, "MINIMUM") minLST = minLSTresult.getOutput(0) ...
13k views

### How are kappa and overall accuracy related with respect to thematic raster data?

I recently calculated kappa (using confusionMatrix{caret} in R) between a thematic raster dataset at 1m spatial resolution and another at 30m spatial resolution. I was interested in quantifying the ...
3k views

### Is it possible to access ArcGIS's table operations “Summarize…” and “Statistics…” in python?

ArcGIS has a few nifty table tools, including Summarize and Statistics. Is there a way to access them through arcpy, or will I have to hack my own methods via math and lists?
5k views

### Using Group By with Summarize on alphanumeric field in ArcGIS Desktop?

Is it possible to create from Summarize option, a new table with the COUNT of a string field and the code of municipalities, in my case, like that: +-------------------+--------------+ | ...
3k views

### Calculating Percentiles in ArcMap?

I have a large polygon dataset (26,000) records with numerous attributes columns. I wish to calculate the percentile rank of each attribute. Say I have population_density in an attribute, is there a ...
705 views

### Why covariance values are different in R and ArcGIS?

I've calculated covariance between 7 rasters using R and ArcGIS. It gives me different results. Each times covariance values from R are approximately 1.874 times higher than ArcGIS values. R - ...
4k views

### API for Real Time World Statistics

Does anyone know of an API (preferably free) that can provide real time world statistics such as Crude Birth Rate, Crude Death Rate, world/country population, or emails sent today as on the website ...
3k views

### ArcGIS median value from layer?

I've been hunting around ArcGIS 9.3 and having no success at finding a tool/function that can give me the median (not the mean/avg) tabular value of a spatial database. For example, if I have a data ...
555 views

### Zonal Histogram Output Problems - No values associated with the habitat type [closed]

I have a outline of some islands (shapefile or raster) and GAP landcover data (raster). I am trying to use Zonal Histogram to create a file with a histogram of the habitat types in each island. Each ...
5k views

### Recording frequency of names in the attribute table?

I have a question with ArcGIS 9.2. In an attribute table the column [name] includes the name of every place in this layer. Next to that (in columns [numbers]) there should be recorded how often a ...
889 views

### Retrieving LiDAR metrics from relative vertical layers of point cloud?

I need to obtain the proportion of all returns within 5 equally spaced height bins between the cutoff (1 meter) and the maximum height value. I need to get this proportion of all returns for 1000 ...
118 views

### Calculating Statistics Based on Expression in QGIS?

Is it possible to calculate the sum of polygon areas based on whether or not it has a value in another column? For example: In column 2 I have the area of polygons. I want to calculate the area of ...
2k views

### How to create a x-y scatterplot from attributes in QGIS 2.0?

There are a few old packages that allow the creation of x-y scatter plots from attributes in vector data (Scattergram for 1.7) http://plugins.qgis.org/plugins/scattergrammidentify/ (SPQR for very ...
337 views

### Different models, different contours: are they comparable?

I will get contour lines of electromagnetic field strength around power lines. The contours will be calculated by different agencies using different models. We need to check whether the resulting ...
2k views

### Retrieving average building height in urban areas?

I am looking for a way to collect data on the height profile of some cities over time. I don't need to produce a detailed 3D reconstruction of cities, nor do I need to detect and measure individual ...
3k views

### Calculate neighborhood statistics for polygons?

I've been searching around for the answer to this (including here) and have yet to find it. I'm interested in finding out how to calculate a 'neighborhood sum' for vector, polygon data. I am aware ...
126 views

### Where is the “input point vector layer attribute” in the “Count Points in Polygon” in QGIS 2.18.9?

In older QGIS versions the Count Points in Polygon vector analysis tool had an "input vector layer attribute to aggregate" to perform a statistical analysis (sum, mean, min, max) on the counted points ...
299 views

### Index express the similarity in shape between two data sets

I have two data sets. One is points in the blue curve. The other is points in the green curve. Now I want to find a property (P) or something else like index that has the following characteristics: ...
964 views

### QGis Zonal Statistics Plugin NoData included in Calculations

I have been trying to use the QGIS zonal statistics plugin. My raster has a nodata value of -99999 and all other values are positive. After computing the mean zonal statistics there are a number of ...
2k views

### How to use/interpret/visualise a distance matrix with unknown coordinates?

How would you go about using a distance matrix where points have no coordinates, i.e. what useful statistics can be made and how to visualise it in some useful way?
2k views

### Scatterplot between two rasters in R?

I am very new in programming and I want to ask how can I make a scatterplot of two rasters in R and also get their correlation?
1k views

### Methods for hot spot or cluster analysis for multiple measurements at the same geographic unit?

I would like to find geographic clusters of zip codes where each zip code has a measurement of a person's age (integer), sex (categorical/binary), and if they recovered from a certain medical ...