Questions tagged [resampling]

Resampling is any of a variety of methods for estimating the precision of sample statistics by jackknifing or bootstrapping. In it also used to validating models by using random subsets (bootstrapping, cross validation).

From Wiki

In statistics, resampling is any of a variety of methods for doing one of the following:

Estimating the precision of sample statistics (medians, variances, percentiles) by using subsets of available data (jackknifing) or drawing randomly with replacement from a set of data points (bootstrapping)

Exchanging labels on data points when performing significance tests (permutation tests, also called exact tests, randomization tests, or re-randomization tests)

Validating models by using random subsets (bootstrapping, cross validation)

Common resampling techniques include bootstrapping, jackknifing and permutation tests.

983 questions
0
votes
0 answers

Filling in the parameters of an Audio resampling method

I am trying to do resampling in android using this library https://github.com/intervigilium/libresample/blob/master/src/net/sourceforge/resample/Resample.java#L6 but I dont know exactly what to fill in the Parameters I want to Resample an audio file…
kc ochibili
  • 3,103
  • 2
  • 25
  • 25
0
votes
1 answer

R: Distribution of Random Samples vs. 1 Random Sample

I have a question about random sampling. Are the two following results (A and B) statistically the same? nobs <- 1000 A <- rt(n=nobs, df=3, ncp=0) simulations <- 50 B <- unlist(lapply(rep.int(nobs/simulations, times=simulations),function(y)…
Brad
  • 813
  • 1
  • 10
  • 20
0
votes
1 answer

Resample a matlab array of uint8's

I added a .JPG file to Matlab workspace, Matlab loaded it as a 2D array of 300x300 unsigned integers in range 0-255. I am interested in analyzing one of the rows of this matrix. For that purpose I simply extracted the row using row =…
The Vivandiere
  • 3,059
  • 3
  • 28
  • 50
0
votes
1 answer

Resample function for Pandas Panel with nominal data

I created a Panel construct from Pandas with Python (see code). After that I generalized (sum) the time with the resample() function. import pandas as pd import numpy as np time_rng = pd.date_range('1/1/2000', '31/1/2000', freq='D') PanelData =…
Spirou
  • 257
  • 4
  • 10
0
votes
0 answers

DirectX11 Terrain Smoothing Technique

I have a terrain system set up which utilizes a quad tree and a gray scale height map to draw the terrain. I create one 64x64 flat triangulated grid, which is then drawn at various scales based on the quad tree node selection. In the vertex shader,…
Ben Trapani
  • 271
  • 1
  • 4
  • 11
0
votes
1 answer

How to resample over one (third) dimension in matlab?

I have double matrix of say 480x640x128 and I want to resample it to 480x640x3. I.e. I want each 128-element "page" portion to be interpolated and then sampled at 3 points. How to do that?
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
0
votes
1 answer

Pandas dataframe interpolation on two variable for wind analysis with CFD

I am working on a wind analysis for a new development. I would be able to predict the air flow pattern in the development for each hour of the year as a function of the wind speed and direction for that particular hour. Of course it would take too…
Rojj
  • 1,170
  • 1
  • 12
  • 32
0
votes
1 answer

How to resample FPS without keeping duration of the video using ffmpeg?

I have an avi video which is 50fps, but the camera was capturing at 25fps. Therefore, every second frame is empty. In fact, time to time the camera does not provide a frame and there are even more empty frames. I want to remove all empty frames…
0
votes
1 answer

Unwanted click when using SoXR Library to do variable rate resampling

I am using the SoXR library's variable rate feature to dynamically change the sampling rate of an audio stream in real time. Unfortunately I have have noticed that an unwanted clicking noise is present when changing the rate from 1.0 to a larger…
David
  • 442
  • 3
  • 8
0
votes
2 answers

Efficient repeated sampling with replacement of a table in a PostgreSQL alike?

I'm trying to check the distribution of numbers in a column of a table. Rather than calculate on the entire table (which is large - tens of gigabytes) I want to estimate via repeated sampling. I think the typical Postgres method for this is select…
Patrick McCarthy
  • 2,478
  • 2
  • 24
  • 40
0
votes
1 answer

Bootstrapping with Replacement

I'm reading a paper and am confused with their described Bootstrap Method. the text says: the uncertainties associated with each stacked flux density are obtained via the bootstrap method, during which random subsamples (with replacement) of…
user3727154
  • 35
  • 1
  • 1
  • 7
0
votes
1 answer

How to implement bootstrap (resampling) in Java efficiently

I have a data file of 50,000,000 lines and need to bootstrap each line using Java. Right now I am using Math.random() to generate random number, then do the bootstrapping in a brute force way. However, it will take me forever. So i am wondering if…
Luna Park
  • 1
  • 1
0
votes
1 answer

Android - Turn off Smoothness for Drawing on a Canvas using Bitmaps and Matrices

I have some very small images (20 by 20 pixels) which I am drawing using matrices onto a canvas using Canvas.drawBitmap(Bitmap, Matrix, Paint). The problem is that I am scaling these up about 5-10 times larger when I am drawing them and it is…
nickgkg
  • 21
  • 4
0
votes
2 answers

Time series ressampling of historical trade data

I have some historical trade date in a csv file in the format: unixtime, price, volume I I want to analyze that data. I managed to do it in Python, but it's painfully slow (takes me about 2 days to run the algorithm for a 30 day data test). I'm…
jbssm
  • 6,861
  • 13
  • 54
  • 81
0
votes
0 answers

Python pandas resample takes too much memory

I have a time series of firm fundamental data like market value, closing price indexed by date, and cusip with weekly frequency. I would like to resample it to get data with monthly frequency but the problem is that my code takes too much memory and…
akhil
  • 839
  • 3
  • 8
  • 15