statistics

Multi conditional statistics (avg, std dev, z-scores) for large data sets in Excel/VBA

大憨熊 提交于 2020-01-16 05:20:22
问题 I'm looking to calculate statistics for a large data set on Excel and encountering some issues due to data set size. It seems VBA may be the way to go, as copying AVERAGEIF and STDDEV array functions across data this size is causing long calculation times. Appreciate possible solutions or code that could be used here. Goals: To calculate statistics (avg, std dev, z-scores) conditional on 2 identifiers (e.g. average of all heights at 01/01/10) Able to handle large data sets (100k+ data points)

descriptive statistics in r

为君一笑 提交于 2020-01-15 09:44:50
问题 I was trying to get descriptive stat for my data. I went through many suggestions. However I just want to know if there is any package(s) to perform descriptive stats on the data format provided below. head(mydata) X A1 A2 A3 M1 M2 M3 U1 U2 U3 1 A A A M M M U U U 2 X1 100 200 250 200 230 400 400 100 200 3 X2 600 300 400 300 550 750 800 900 540 4 X3 500 300 200 200 200 100 500 400 600 The data has samples on the column and variables on rows. First row is samples name, second row is groups (A,

Statistics in Z3

谁说胖子不能爱 提交于 2020-01-15 07:36:44
问题 I am using Java API of Z3 and I would like to get some statistics from the solver such as solving time, number of variables/symbols, memory usage. The post here (Z3py: how to get the list of variables from a formula?) claims that there is a utility implementation in Python but I was wondering if there is any for JavaAPI. Thanks. 回答1: Those particular utilities are an external contribution to Z3 and only available for the Python API. It should be possible to follow the same ideas in Java

random variable from skewed distribution with scipy

好久不见. 提交于 2020-01-14 14:45:10
问题 trying to draw a random number from a distribution in SciPy, just like you would with stats.norm.rvs. However, I'm trying to take the number from an empirical distribution I have - it's a skewed dataset and I want to incorporate the skew and kurtosis into the distribution that I'm drawing from. Ideally I'd like to just call stats.norm.rvs(loc=blah,scale=blah,size=blah) and then also set the skew and kurt in addition to the mean and variance. The norm function takes a 'moments' argument

NA/NaN/Inf error when fitting HMM using depmixS4 in R

坚强是说给别人听的谎言 提交于 2020-01-14 13:14:08
问题 I'm trying to fit simple hidden markov models in R using depmix. But I sometimes get obscure errors (Na/NaN/Inf in foreign function call). For instance require(depmixS4) t = data.frame(v=c(0.0622031327669583,-0.12564002739468,-0.117354660120178,0.0115062213361335,0.122992418345013,-0.0177816909620965,0.0164821157439354,0.161981367176501,-0.174367935386872,0.00429417498601576,0.00870091566593177,-0.00324734222267713,-0.0609817740148078,0.0840679943325736,-0.0722982123741866,0.00309386232501072

NA/NaN/Inf error when fitting HMM using depmixS4 in R

 ̄綄美尐妖づ 提交于 2020-01-14 13:12:09
问题 I'm trying to fit simple hidden markov models in R using depmix. But I sometimes get obscure errors (Na/NaN/Inf in foreign function call). For instance require(depmixS4) t = data.frame(v=c(0.0622031327669583,-0.12564002739468,-0.117354660120178,0.0115062213361335,0.122992418345013,-0.0177816909620965,0.0164821157439354,0.161981367176501,-0.174367935386872,0.00429417498601576,0.00870091566593177,-0.00324734222267713,-0.0609817740148078,0.0840679943325736,-0.0722982123741866,0.00309386232501072

PHP server statistics script? [closed]

穿精又带淫゛_ 提交于 2020-01-14 13:05:51
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I'm not really sure where to put this question (it's not really webapps or superuser) but I'm sure something similar already exists. I'm looking for a php script that gives me detailed info about things such as: CPU load Network load Temperatures I/O RAM etc Any suggestions? Thanks, Dennis 回答1: phpSysInfo is

Avoiding interger overflow with permutation (nPr, nCr) functions in C

ⅰ亾dé卋堺 提交于 2020-01-14 06:14:48
问题 I am attempting to do some statistics-related functions so I can carry out a few related procedures (ie: statistics calculations for probabilities, generate Pascal's triangle for an arbitrary depth, etc). I have encountered an issue where I am likely dealing with overflow. For example, if I want to calculate nPr for (n=30,p=1), I know that I can reduce it to: 30P1 = 30! / (30 - 1)! = 30! / (29)! = 30! / 29! = 30 However, when calculating using the functions below, it looks like I will always

Avoiding interger overflow with permutation (nPr, nCr) functions in C

荒凉一梦 提交于 2020-01-14 06:14:24
问题 I am attempting to do some statistics-related functions so I can carry out a few related procedures (ie: statistics calculations for probabilities, generate Pascal's triangle for an arbitrary depth, etc). I have encountered an issue where I am likely dealing with overflow. For example, if I want to calculate nPr for (n=30,p=1), I know that I can reduce it to: 30P1 = 30! / (30 - 1)! = 30! / (29)! = 30! / 29! = 30 However, when calculating using the functions below, it looks like I will always

Avoiding interger overflow with permutation (nPr, nCr) functions in C

扶醉桌前 提交于 2020-01-14 06:14:07
问题 I am attempting to do some statistics-related functions so I can carry out a few related procedures (ie: statistics calculations for probabilities, generate Pascal's triangle for an arbitrary depth, etc). I have encountered an issue where I am likely dealing with overflow. For example, if I want to calculate nPr for (n=30,p=1), I know that I can reduce it to: 30P1 = 30! / (30 - 1)! = 30! / (29)! = 30! / 29! = 30 However, when calculating using the functions below, it looks like I will always