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
1 answer

Numpy/Scipy irfft strange behaviour

I am resampling a real signal, and since I have at my disposal its fft from rfft, I want to use irfft(signal, new_length). But I can't seem to get it working. This is a working code snippet that resamples a signal of length 4 using complex fft: from…
gg349
  • 21,996
  • 5
  • 54
  • 64
0
votes
1 answer

copyimageresampled not working for me

I want to resize my picture so that its not wider than 500px. The aspect ration must be the same. I don't see any changes in my image (960x960). This is my code: public static function resizeImage($imagename) { list($width, $height) =…
HansElsen
  • 1,639
  • 5
  • 27
  • 47
0
votes
0 answers

Resampling audio output for A2DP (from PCM WAV)

How do I bring stereo PCM WAV 32,000Hz with a stream of 1024 kbps (125 KB) to the headset with Bluetooth 2.1 on a CM7 smartphone with DSPManager? Is this possible? SBC is really a bad idea. Maybe it's possible with the Headset Profile (HSP)? I don`t…
weter
  • 1
  • 2
0
votes
1 answer

Correctly decoding/encoding raw PCM data

I'm writing my WAVE decoder/encoder in C++. I've managed to correctly convert between different sample sizes (8, 16 and 32), but I need some help with the channels and the frequency. Channels: If I want to convert from stereo to mono: do I just…
goocreations
  • 2,938
  • 8
  • 37
  • 59
0
votes
1 answer

HResult 0x80040204 from IMediaObject::ProcessInput

I get this Hresult when i resample PCM Sound to a IEEE:Float Sound with DirectXMediaResampler. Changing the bits per sample with the same sampling rate is no problem. Also resamppling from IEEE:Float to PCM. This HResult is not documented in context…
-1
votes
1 answer

pandas resample with global minimum and maximum specifying the filling method

I want to resample a dataset, the minimum date of each series should be the same for each series, therefore, the minimum date of each series should be the minimum value for the date column. Same for the maximum date (Instead of resampling at series…
Tonino Fernandez
  • 441
  • 4
  • 12
-1
votes
1 answer

Re sample/down sample csv from 501 to 101 nodes in Matlab

I have ground reaction force csv files which are 501x11 / 11x501 double Female_GRF = csvread('Female_Fz.csv'); Male_GRF = csvread('Male_Fz.csv'); Female_GRF = Female_GRF'; Male_GRF = Male_GRF'; Please can anyone direct me how I can resample…
Chris
  • 1
  • 1
  • 2
-1
votes
1 answer

How to set the time stamp of the data frame to thw first day of the month

I have a few data frames that i am resampling to match each other. I would like to set the timestamps (index) for all the data to be the first days of the month of the dsy the measurements were taken. I cannot find anywhere how to do it, the closest…
-1
votes
1 answer

Resampling 15 minutes data to 30minutes

Im using the resampling function in pandas to sum up two 15 minutes interval data into 30 minutes interval data for a data frame. it works but the answer i get is just that for the results recorded at the 30th minutes , not the addition of the…
-1
votes
1 answer

Resampling data ending in specific data

I have the following dataframe: data Out[8]: Population date 1980-11-03 1591.4 1980-11-10 1592.9 1980-11-17 1596.3 1980-11-24 1597.2 1980-12-01 …
Slartibartfast
  • 1,058
  • 4
  • 26
  • 60
-1
votes
2 answers

Merging time series data of different frequencies

I have 5 min intraday stock price data which I downsample by the following code: ohlc = { 'Open':'first', …
rumnen
  • 11
  • 3
-1
votes
2 answers

How to split time into 10 min interval and make it as a separate column using Python

I am working on a data set that has epoch time. I want to create a new column which splits the time into 10 mins time interval. Suppose timestamp timeblocks 5:00 1 5:02 1 5:11 2 How can i achieve this using…
-1
votes
1 answer

generate bootstrap sample dependent on column

I have a data set like this set.seed(1) df <- data.frame(ID = rep(1:4, each = 3), x = c(1,2,3,2,3,4,1,2,3,3,4,5), V1 = rnorm(12)) > df ID x V1 1 1 1 -0.6264538 2 1 2 0.1836433 3 1 3 -0.8356286 4 …
spore234
  • 3,550
  • 6
  • 50
  • 76
-1
votes
1 answer

i am getting "builtins.KeyError: 'DATE'" error while trying to use Datetime for one of my columns

while i am trying to resample my dataframe in python using pandas. i am getting builtins.KerError: 'Date' when i am trying to split my index in the first dataframe. I am very new to development and any answer with a reason why it was getting…
K G
  • 27
  • 8
-1
votes
1 answer

Bootstrap p-value for correlation coefficient (resampling methods)

I have this large datset (N = 300.000) and with a power analysis I came to the conclusion that I need only 250 observations to find a correlation if it's present. So, I want to use a bootstrap to pick 1000 samples of size n = 250 to find the range…
SHW
  • 461
  • 7
  • 26
1 2 3
65
66