standard-deviation Questions
3
Is there a vectorized operation to calculate the cumulative and rolling standard deviation (SD) of a Python DataFrame?
For example, I want to add a column 'c' which calculates the cumulative SD ba...
Swetlana asked 3/7, 2017 at 7:0
11
Solved
I am trying to get the standard deviation of a user input string. I have as follows, but it returns the wrong value for SD. The calculation should go as follows:
Sum values/number values = mean
Squ...
Engud asked 8/9, 2011 at 6:18
4
Solved
I need a standard deviation function in SQLite. I have found one here:
http://www.sqlite.org/contrib?orderby=date
but its part of an extension file to SQLite. I've never installed one of these b...
Oni asked 12/7, 2011 at 10:58
7
Solved
numpy.average() has a weights option, but numpy.std() does not. Does anyone have suggestions for a workaround?
Belgravia asked 9/3, 2010 at 23:53
2
Solved
Say, I have an array:
import numpy as np
x = np.array([0, 1, 2, 5, 6, 7, 8, 8, 8, 10, 29, 32, 45])
How can I calculate the 3rd standard deviation for it, so I could get the value of +3sigma as ...
Teapot asked 24/2, 2015 at 15:10
3
Solved
I would like to create a data frame with several different columns containing means, after which the sd is shown in brackets. To give an example:
df <- iris
mean <- aggregate(df[,1:4], list...
Cleliaclellan asked 15/3, 2019 at 10:44
5
Solved
Below you can see my C# method to calculate Bollinger Bands for each point (moving average, up band, down band).
As you can see this method uses 2 for loops to calculate the moving standard deviat...
Impatience asked 31/1, 2013 at 21:45
8
Solved
So, I've posted a few times and previously my problems were pretty vague. I started C++ this week and have been doing a little project.
I'm trying to calculate standard deviation & variance. My...
Aidoneus asked 21/10, 2015 at 20:20
10
Solved
I have several records with a given attribute, and I want to find the standard deviation.
How do I do that?
Chimp asked 13/10, 2011 at 4:47
8
Solved
Does LINQ model the aggregate SQL function STDDEV() (standard deviation)?
If not, what is the simplest / best-practices way to calculate it?
Example:
SELECT test_id, AVERAGE(result) avg, STDDEV...
Maryjanemaryjo asked 12/2, 2010 at 17:48
5
Solved
Is there some trick that would allow one to use bc (or some other standard utility) to return the standard deviation of an arbitrary number of numbers? For convenience, let's say that the numbers a...
Ovotestis asked 26/2, 2013 at 23:16
3
Solved
I have 4 populations with known means and standard deviations. I would like to know the grand mean and grand sd. The grand mean is obviously simple to calculate, but R has a handy utility function,...
Shush asked 10/2, 2012 at 2:47
2
Solved
I am trying to calculate descriptive statistics for the birthweight data set (birthwt) found in RStudio. However, I'm only interested in a few variables: age, ftv, ptl and lwt.
This is the code I...
Choiseul asked 4/1, 2018 at 3:11
1
Solved
I want to train some models to work with grayscale images, which e.g. is useful for microscope applications (Source). Therefore I want to train my model on graysale imagenet, using the pytorch gray...
Intrusion asked 13/1, 2021 at 9:27
2
Solved
I'm throwing this out there in hope that someone will have attempted something this ridiculous before. My goal is to take in an input image, and segment it based upon the standard deviation of a sm...
Polymerization asked 12/7, 2012 at 16:40
5
Solved
I am trying to calculate Z-scores using PHP. Essentially, I am looking for the most efficient way to calculate the mean and standard deviation of a data set (PHP array). Any suggestions on how to d...
Spina asked 25/3, 2011 at 15:33
1
Solved
This question concerns the best-practice to do descriptive statistics in Python with a formatted output that correspond to tables found in academic publications: means with their respective standar...
Kotick asked 31/1, 2019 at 17:31
3
Solved
When generating random numbers in R using rnorm (or runif etc.), they seldom have the exact mean and SD as the distribution they are sampled from. Is there any simple one-or-two-liner that does thi...
Uncinate asked 20/9, 2013 at 14:22
2
Solved
Say I have a batch of images in the form of tensors with dimensions (B x C x W x H) where B is the batch size, C is the number of channels in the image, and W and H are the width and height of the ...
Endocarditis asked 6/2, 2020 at 18:17
1
I've been told I need to normalise my MSE for my thesis involving neural networks.
Equations for NMSE seem a bit few and far-between. I have the following and want to corroborate it if possible:
...
Bowe asked 19/2, 2017 at 12:27
10
Solved
I've searched the SQLite docs and couldn't find anything, but I've also searched on Google and a few results appeared.
Does SQLite have any built-in Standard Deviation function?
Wisconsin asked 19/2, 2010 at 17:30
2
Solved
I wish to clarify upfront I am looking for a way to calculate Standard deviation using Streams (I have a working method at present which calculates & returns SD but without using Streams).
The...
Nardi asked 28/3, 2016 at 13:26
1
Solved
I want to write a function that gets a time series and a standard deviation as parameters and returns an adjusted time series which looks like a forecast.
With this function I want to test a syste...
Tailpipe asked 21/5, 2019 at 13:15
8
I want to find mean and standard deviation of 1st, 2nd,... digits of several (Z) lists. For example, I have
A_rank=[0.8,0.4,1.2,3.7,2.6,5.8]
B_rank=[0.1,2.8,3.7,2.6,5,3.4]
C_Rank=[1.2,3.4,0.5,0.1,...
Bulter asked 13/3, 2013 at 15:38
1
Solved
I've followed the advice laid out here for calculating the average of circular data:
https://en.wikipedia.org/wiki/Mean_of_circular_quantities
But I'd also like to calculate standard deviation as...
Contend asked 10/4, 2019 at 15:50
1 Next >
© 2022 - 2025 — McMap. All rights reserved.