Skip to main content
-3 votes
1 answer
114 views

For reasons unknown, the Application.WorksheetFunction procedures do not work on my Excel and so I am trying to do these calculations using VBA. I have written a sub routine for these calculations but ...
Ven's user avatar
  • 25
2 votes
3 answers
360 views

I am trying to calculate a moving median for around 10.000 signals that each are a list of length around 750. An example dataframe looks like this: num_indices = 2000 # Set number of indices # ...
Jesper Mølgaard's user avatar
0 votes
2 answers
133 views

I am trying to write a function to compute the rolling Median Absolute Deviation (MAD) for outlier detection in a time series dataset. The goal is to: Detect outliers based on a rolling MAD algorithm ...
user2845095's user avatar
1 vote
1 answer
87 views

The goal is to use MEDIAN as a window function with a sliding window of a specific size. SELECT *, MEDIAN(n) OVER(ORDER BY id ROWS BETWEEN 3 PRECEDING AND CURRENT ROW) FROM test_data ORDER BY id;...
Lukasz Szozda's user avatar
0 votes
1 answer
80 views

I've noticed that MariaDB messes up the median calculation if you try to get the median and an aggregate function on same query I created a simple example test my theory CREATE TABLE `test` ( `a` ...
Rafael Lima's user avatar
  • 3,595
-5 votes
1 answer
148 views

I have a text file containing thousands of lines, a single numeric value on each line. Values are between -2.5 - 2.5, single decimal. I am using this line to give me the lowest value, highest value, ...
Jukka's user avatar
  • 9
1 vote
0 answers
120 views

TL;DR: I've got a column for test metric, for control metric, and for test-control weight. I can use the weight to calculate a weighted average. How should I approach median metrics in a SQL ...
MisterJT's user avatar
  • 432
1 vote
2 answers
87 views

I am trying to calculate the median time while excluding a certain data. I have 3 columns of data. I need to calculate the Column B but exclude times where column A & C match. Column A Column B ...
EmrylRaine's user avatar
1 vote
1 answer
130 views

I am working in databricks pyspark and I am trying to get the median over the last two months excluding the current month. Also, there are multiple accounts so this must be parttioned but account too. ...
Aleksei Diaz's user avatar
0 votes
1 answer
82 views

My aim is to make a plot like that: I don't want relative imporantces, I just want to plot each column in my dataframe as a boxplot and sort them by median. I don't have groups or anything else I ...
Celina Steffani's user avatar
2 votes
1 answer
93 views

I would like to calculate consecutive two-month medians of the chla variable in this dataset. I created an ID key (ID = current month, ID2 = the consecutive month) to help with the calculation. I ...
joe_schmo's user avatar
0 votes
2 answers
303 views

I am trying to implement the Bootstrapping Two Medians procedure either in R or in Matlab, by following the procedure described in that article: Bootstrap each sample separately, creating the ...
BostonPlummer's user avatar
0 votes
1 answer
40 views

I am using gtsummary::tbl_summary on R4.4. I received a table for it using the following df: structure(list(Treatment = c("Verum", "Verum", "SoC", "SoC", "...
Andrea Zaliani's user avatar
4 votes
1 answer
110 views

I have two samples (Group 1 and Group 2), each containing 1) an income variable and 2) a weight variable indicating the weight for each observation. I simply want to test whether the medians of income ...
TrebiLime's user avatar
2 votes
2 answers
420 views

I have been struggling the past month with this problem that was given to us on our course while I was upsolving it. The task is to find the window of size K with the least median in an array of ...
Lesserrafim's user avatar

15 30 50 per page
1
2 3 4 5
102