Skip to main content
-3 votes
1 answer
99 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
310 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
128 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
79 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
74 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,585
0 votes
0 answers
17 views

The most common approach to obtain Geometric Median is to use the Weiszfeld's algorithm or a variant: it is good, but may fail to converge when one of its estimates falls on one of the given points. ...
Peter Krauss's user avatar
  • 14.1k
-5 votes
1 answer
147 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
104 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
81 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
127 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
65 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
89 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
282 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
104 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

15 30 50 per page
1
2 3 4 5
102