id stringlengths 7 11 | source stringclasses 1
value | category stringclasses 11
values | title stringlengths 15 214 | text stringlengths 70 30.5k | url stringlengths 57 160 | tags stringlengths 3 113 | created_at int64 1.22B 1.79B |
|---|---|---|---|---|---|---|---|
se_79643925 | stackoverflow | DATA_SCIENCE | issue in MLE of New Generalized Poisson lindley Distribution | issue in MLE of New Generalized Poisson lindley Distribution
I am working with the New Generalized Poisson Lindley (NGPL) distribution, which is a two-parameter discrete distribution defined by parameters α (alpha) and β (beta).
I wrote an R function to simulate random variates from this distribution using a mixture o... | https://stackoverflow.com/questions/79643925/issue-in-mle-of-new-generalized-poisson-lindley-distribution | r, statistics, poisson, mle | 1,748,523,087 |
se_77343534 | stackoverflow | DATA_SCIENCE | How can I use a large table from an Exasol database for statistical analysis in Python? | How can I use a large table from an Exasol database for statistical analysis in Python?
I have a table with 36 millions rows, and I need to run different statistical analyses (e.g., hypothesis tests, distribution analysis, etc.).
Since I get a memory error when I use the export_to_pandas method, I need to read the dat... | https://stackoverflow.com/questions/77343534/how-can-i-use-a-large-table-from-an-exasol-database-for-statistical-analysis-in | database, statistics, dask, chunks, exasol | 1,698,048,007 |
se_79625113 | stackoverflow | DATA_SCIENCE | Generating the global bayesian fit and local fit for a BLI experiment | Generating the global bayesian fit and local fit for a BLI experiment
I am trying to get the global bayesian fit and local fit for the raw data curve of a Bio-Layer Interferometry (BLI) experiment.
In a BLI experiment, you are first coating the tip of a sensor with Biomolecule A, followed by dipping this into Biomolec... | https://stackoverflow.com/questions/79625113/generating-the-global-bayesian-fit-and-local-fit-for-a-bli-experiment | r, ggplot2, statistics, bioinformatics, bayesian | 1,747,396,528 |
se_79638805 | stackoverflow | DATA_SCIENCE | R Optimization Issue: Accurate Estimates for alpha1, alpha2, theta but beta1 and beta2 Estimates are Incorrect | R Optimization Issue: Accurate Estimates for alpha1, alpha2, theta but beta1 and beta2 Estimates are Incorrect
I’m estimating parameters for the Lindley (BGPL) distribution with five parameters: alpha1, beta1, alpha2, beta2, and theta, using optim() in R for MLE. However, the MLE results are not accurate—especially fo... | https://stackoverflow.com/questions/79638805/r-optimization-issue-accurate-estimates-for-alpha1-alpha2-theta-but-beta1-and | r, statistics, poisson, mle | 1,748,257,540 |
se_21829382 | stackoverflow | DATA_SCIENCE | R: Count items in a nested list | R: Count items in a nested list
How do you efficiently count items in a nested list? For example, I have a list of header names such as:
header.names <- list(list("Post Unique Reference", "Name", "Grade (or equivalent)", "Job Title", "Date", "Date"),
list("Name", "Organisation", "Unit", "Reporting Senior Post",... | https://stackoverflow.com/questions/21829382/r-count-items-in-a-nested-list | r, list, count, statistics | 1,392,640,782 |
se_9570630 | stackoverflow | DATA_SCIENCE | How can I prove the experiment data follows heavy-tail distribution? | How can I prove the experiment data follows heavy-tail distribution?
I have several test results of server response delay. According to our theory analysis, the delay distribution should have heavy-tail behavior. But how could I prove that the test result does follow heavy-tail distribution? | https://stackoverflow.com/questions/9570630/how-can-i-prove-the-experiment-data-follows-heavy-tail-distribution | algorithm, statistics, distribution, delay, probability | 1,330,966,546 |
se_79619491 | stackoverflow | DATA_SCIENCE | How can I filter out spikes in Kusto Engine data but also create a new baseline value if the spike value persists? | How can I filter out spikes in Kusto Engine data but also create a new baseline value if the spike value persists?
So my data is totaliser values of Engine Hours, but the values will increase/decrease by an order of magnitude for a few timestamps and then return to a real value. I want to filter out these anomalies/sp... | https://stackoverflow.com/questions/79619491/how-can-i-filter-out-spikes-in-kusto-engine-data-but-also-create-a-new-baseline | statistics, data-science, kql, azure-data-explorer | 1,747,132,352 |
se_79632430 | stackoverflow | DATA_SCIENCE | Nested random effect using lmerTest package in R | Nested random effect using lmerTest package in R
I want to build a nested linear mixed effect model using lmerTest package. The predictors are gender, student, school and neighborhood, and outcome is score. The gender and student will be taken for the fixed effect, while school and neighborhood are considered random ... | https://stackoverflow.com/questions/79632430/nested-random-effect-using-lmertest-package-in-r | r, statistics, mixed-models | 1,747,845,743 |
se_59055704 | stackoverflow | DATA_SCIENCE | pyspark p values and chisquaretest correlations | pyspark p values and chisquaretest correlations
+----------+---------------+--------------------+--------------+-------+-----------+-----------+-----------+-----------+-----------+-----------+------------+------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+---... | https://stackoverflow.com/questions/59055704/pyspark-p-values-and-chisquaretest-correlations | pyspark, statistics, p-value, chi-squared | 1,574,786,762 |
se_17601539 | stackoverflow | DATA_SCIENCE | Calculate the average of several "time" commands in Linux | Calculate the average of several "time" commands in Linux
I'm profiling a program on Linux, using the "time" command. The problem is it's output is not very statistically relevant as it does only run the program once. Is there a tool or a way to get an average of several "time" runs? Possibly aswel together ... | https://stackoverflow.com/questions/17601539/calculate-the-average-of-several-time-commands-in-linux | linux, language-agnostic, statistics, profiling, benchmarking | 1,373,570,017 |
se_72423063 | stackoverflow | DATA_SCIENCE | how to create basic level DataFrame by using dictionary | how to create basic level DataFrame by using dictionary
I have a DataFrame like this
but I want to create DataFrame like this ;
Actually, I just want to append salary up to min, max and mean | https://stackoverflow.com/questions/72423063/how-to-create-basic-level-dataframe-by-using-dictionary | pandas, dataframe, statistics, multi-index | 1,653,822,170 |
se_40207427 | stackoverflow | DATA_SCIENCE | what does this notation mean <x1,x2>? | what does this notation mean <x1,x2>?
I was reading about k-strong convexity and came a across an equation like this
f(x_1) >= f(x_2) + <\Delta f(x_2), x_1-x_2> + (k/2)*(||x_1-x_2||^2)
Could some one explain what the notation <> means?
Sorry for the errors with latex. | https://stackoverflow.com/questions/40207427/what-does-this-notation-mean-x1-x2 | machine-learning, statistics, latex, notation, convex-optimization | 1,477,254,026 |
se_79612757 | stackoverflow | DATA_SCIENCE | Scipy's WrappedCauchy function wrong? | Scipy's WrappedCauchy function wrong?
I'd like someone to check my understanding on the wrapped cauchy function in Scipy... From Wikipedia "a wrapped Cauchy distribution is a wrapped probability distribution that results from the "wrapping" of the Cauchy distribution around the unit circle." It's similar to the Vo... | https://stackoverflow.com/questions/79612757/scipys-wrappedcauchy-function-wrong | python, scipy, statistics | 1,746,719,088 |
se_79610806 | stackoverflow | DATA_SCIENCE | Downscaling (changing time series scales) for moving average model on time series data | Downscaling (changing time series scales) for moving average model on time series data
I have a moving average model which performs moving-average over time series. And I want to downscale it from daily data to hourly data. However, I am confused how can I do that?
For example, if my model simulate the changing rate o... | https://stackoverflow.com/questions/79610806/downscaling-changing-time-series-scales-for-moving-average-model-on-time-serie | statistics, time-series, moving-average | 1,746,628,651 |
se_79610516 | stackoverflow | DATA_SCIENCE | Retaining random effects in buildglmmTMB | Retaining random effects in buildglmmTMB
I am using buildglmmTMB to build a model for several different taxa. I have 700 ish taxa and ~10 effects. I have a script that loops through all the taxa and applies buildglmmTMB to each taxa individually.
I have two random effects that need to remain across all models. I the d... | https://stackoverflow.com/questions/79610516/retaining-random-effects-in-buildglmmtmb | statistics, glmmtmb, glmm | 1,746,620,670 |
se_79609199 | stackoverflow | DATA_SCIENCE | Numerically stable noncentral chi-squared distribution in torch? | Numerically stable noncentral chi-squared distribution in torch?
I need numerically stable non-central chi2 distribution in torch. | https://stackoverflow.com/questions/79609199/numerically-stable-noncentral-chi-squared-distribution-in-torch | python, pytorch, statistics, numerical-methods | 1,746,552,587 |
se_79482145 | stackoverflow | DATA_SCIENCE | Extreme value analysis and quantile estimation using log Pearson type 3 (Pearson III) distribution - R vs Python | Extreme value analysis and quantile estimation using log Pearson type 3 (Pearson III) distribution - R vs Python
I am trying to estimate quantiles for some snow data using the log pearson type 3 distribution in Python and comparing with R. I do this by reading in the data, log transforming it, fitting Pearson type 3, ... | https://stackoverflow.com/questions/79482145/extreme-value-analysis-and-quantile-estimation-using-log-pearson-type-3-pearson | python, r, statistics, frequency-analysis | 1,741,035,882 |
se_72343752 | stackoverflow | DATA_SCIENCE | How to find the most frequent value for each id | How to find the most frequent value for each id
Let's say, I have number A and they call several people B
A B
123 987
123 987
123 124
435 567
435 789
653 876
653 876
999 654
999 654
999 654
999 123
I want to find to whom the person in A has called maximum times and also the number of times.
OUTPUT:
A B ... | https://stackoverflow.com/questions/72343752/how-to-find-the-most-frequent-value-for-each-id | python, pandas, group-by, count, statistics | 1,653,284,880 |
se_79605097 | stackoverflow | DATA_SCIENCE | R - Friedman test: Unreplicated complete block design. How to fix? | R - Friedman test: Unreplicated complete block design. How to fix?
I have a big data set.
I'm trying to run Friedman's test since this is an appropriate transformation for my data for a two-way ranked measures ANOVA.
But I get unreplicated complete block design error even when data is ranked appropriately.
It is 2 tre... | https://stackoverflow.com/questions/79605097/r-friedman-test-unreplicated-complete-block-design-how-to-fix | r, statistics, friedman-test | 1,746,305,374 |
se_6467832 | stackoverflow | DATA_SCIENCE | How to get the correlation between two timeseries using Pandas | How to get the correlation between two timeseries using Pandas
I have two sets of temperature date, which have readings at regular (but different) time intervals. I'm trying to get the correlation between these two sets of data.
I've been playing with Pandas to try to do this. I've created two timeseries, and am using... | https://stackoverflow.com/questions/6467832/how-to-get-the-correlation-between-two-timeseries-using-pandas | python, statistics, correlation, pandas | 1,308,918,705 |
se_48719873 | stackoverflow | DATA_SCIENCE | How to get median and quartiles/percentiles of an array in JavaScript (or PHP)? | How to get median and quartiles/percentiles of an array in JavaScript (or PHP)?
This question is turned into a Q&A, because I had struggle finding the answer, and think it can be useful for others
I have a JavaScript array of values and need to calculate in JavaScript its Q2 (50th percentile aka MEDIAN), Q1 (25th pe... | https://stackoverflow.com/questions/48719873/how-to-get-median-and-quartiles-percentiles-of-an-array-in-javascript-or-php | javascript, php, statistics, median, percentile | 1,518,259,470 |
se_12429333 | stackoverflow | DATA_SCIENCE | How to shade a region under a curve using ggplot2 | How to shade a region under a curve using ggplot2
I've been trying to use ggplot2 to produce a plot similar to this R graphic:
xv<-seq(0,4,0.01)
yv<-dnorm(xv,2,0.5)
plot(xv,yv,type="l")
polygon(c(xv[xv<=1.5],1.5),c(yv[xv<=1.5],yv[xv==0]),col="grey")
This is as far as I've gotten with ggplot2:
x<-seq(0.0,0.1699,... | https://stackoverflow.com/questions/12429333/how-to-shade-a-region-under-a-curve-using-ggplot2 | r, graphics, statistics, ggplot2 | 1,347,644,073 |
se_42738530 | stackoverflow | DATA_SCIENCE | Error in eval(expr, envir, enclos): could not find function "qGumbel" | Error in eval(expr, envir, enclos): could not find function "qGumbel"
I am relatively new to R and trying to simulate a Gumbel copula with and one of these margin is gumbel pdf and the other is exponential.
by this code
G3 <- gumbelCopula(1.37, dim=2)
gMvd2 <- mvdc(G3, c("Gumbel","exp"), param = list(li... | https://stackoverflow.com/questions/42738530/error-in-evalexpr-envir-enclos-could-not-find-function-qgumbel | r, statistics, simulation | 1,489,254,408 |
se_77852153 | stackoverflow | DATA_SCIENCE | Why are my VIF scores so low, but in my OLS Regression Results, I get a warning: the condition number is large 1.98 * 10^3, possible multicollinearity | Why are my VIF scores so low, but in my OLS Regression Results, I get a warning: the condition number is large 1.98 * 10^3, possible multicollinearity
mport pandas as pd import numpy as np import matplotlib.pyplot as plt import statsmodels.api as sm import seaborn as sns from statsmodels.stats.outliers_influence impor... | https://stackoverflow.com/questions/77852153/why-are-my-vif-scores-so-low-but-in-my-ols-regression-results-i-get-a-warning | python, statistics, regression, linear-regression | 1,705,774,232 |
se_60699836 | stackoverflow | DATA_SCIENCE | How to use norm.ppf()? | How to use norm.ppf()?
I couldn't understand how to properly use this function, could someone please explain it to me?
Let's say I have:
a mean of 172.7815
a standard deviation of 4.1532
N = 50 (50 samples)
When I'm asked to calculate the (95%) margin of error using norm.ppf() will the code look like below?
norm.ppf... | https://stackoverflow.com/questions/60699836/how-to-use-norm-ppf | python, python-3.x, scipy, statistics, confidence-interval | 1,584,327,750 |
se_29330792 | stackoverflow | DATA_SCIENCE | Weighted averaging a list | Weighted averaging a list
I want the weighted average of rate with items of amount serving as weights. The idea is, if an amount is small (such as 3,058 compared to the total 112,230), then its rate should have less of an effect on the average rate.
rate = [14.424, 14.421, 14.417, 14.413, 14.41]
amount = [3058.0, 882... | https://stackoverflow.com/questions/29330792/weighted-averaging-a-list | python, list, statistics, average, weighted-average | 1,427,641,761 |
se_79575647 | stackoverflow | DATA_SCIENCE | I'm trying to sum parts of a table that meets a certain condition in R | I'm trying to sum parts of a table that meets a certain condition in R
I have a probability question, taking 2 die and rolling 10,000 times. I'm interested in adding the probabilities if the sum of both die rolls is 5 or greater. Not sure if I need to iterate through the table or how to do so.
numrolls = 10000
x... | https://stackoverflow.com/questions/79575647/im-trying-to-sum-parts-of-a-table-that-meets-a-certain-condition-in-r | r, statistics | 1,744,735,070 |
se_45439833 | stackoverflow | DATA_SCIENCE | How to log scale in seaborn | How to log scale in seaborn
I'm using seaborn to plot some biology data.
I want a distribution of one gene against another (expression in ~300 patients), and the following code works fine.
graph = sns.jointplot(x='Gene1', y='Gene2', data=data, kind='reg')
I like that the graph gives me a nice linear fit and a Pearson... | https://stackoverflow.com/questions/45439833/how-to-log-scale-in-seaborn | python, statistics, seaborn, logarithm, jointplot | 1,501,595,595 |
se_12953045 | stackoverflow | DATA_SCIENCE | Warning: non-integer #successes in a binomial glm! (survey packages) | Warning: non-integer #successes in a binomial glm! (survey packages)
I am using the twang package to create propensity scores, which are used as weights in a binomial glm using survey::svyglm. The code looks something like this:
pscore <- ps(ppci ~ var1+var2+.........., data=dt....)
dt$w <- get.weights(pscore, stop.... | https://stackoverflow.com/questions/12953045/warning-non-integer-successes-in-a-binomial-glm-survey-packages | r, statistics, glm | 1,350,557,861 |
se_20601872 | stackoverflow | DATA_SCIENCE | NumPy or SciPy to calculate weighted median | NumPy or SciPy to calculate weighted median
I'm trying to automate a process that JMP does (Analyze->Distribution, entering column A as the "Y value", using subsequent columns as the "weight" value). In JMP you have to do this one column at a time - I'd like to use Python to loop through all of the columns and create... | https://stackoverflow.com/questions/20601872/numpy-or-scipy-to-calculate-weighted-median | python, numpy, scipy, statistics, sas-jmp | 1,387,155,162 |
se_76880505 | stackoverflow | DATA_SCIENCE | What's the difference between Quantile Plot and Q-Q Plot? | What's the difference between Quantile Plot and Q-Q Plot?
I am trying to understand the theory behind the Q-Q Plots. So far, I can tell that Q-Q plots are used to plot one univariate quantile distribution against the corresponding quantile values of another univariate quantile distribution.
But then I came across ... | https://stackoverflow.com/questions/76880505/whats-the-difference-between-quantile-plot-and-q-q-plot | statistics, data-mining | 1,691,724,345 |
se_64621456 | stackoverflow | DATA_SCIENCE | Plotting a gaussian fit to a histogram in displot or histplot | Plotting a gaussian fit to a histogram in displot or histplot
How can I plot a gaussian fit onto a histplot, as previously done by the deprecated distplot?
import seaborn as sns
import numpy as np
from scipy.stats import norm
x = np.random.normal(size=500) * 0.1
With distplot I could do:
sns.distplot(x, kde=False, fi... | https://stackoverflow.com/questions/64621456/plotting-a-gaussian-fit-to-a-histogram-in-displot-or-histplot | python, statistics, seaborn, histogram, curve-fitting | 1,604,145,449 |
se_77838089 | stackoverflow | DATA_SCIENCE | How to execute cluster based bootstrap sampling using boot? | How to execute cluster based bootstrap sampling using boot?
I have a data.frame which has observations sourced from certain clusters. My objective is to obtain a 95% confidence interval of the median of a measurement. In the toy example below, I have 100 observations from 50 clusters. Each cluster contributes to 2 obs... | https://stackoverflow.com/questions/77838089/how-to-execute-cluster-based-bootstrap-sampling-using-boot | r, statistics | 1,705,568,382 |
se_35369167 | stackoverflow | DATA_SCIENCE | Counting function in R | Counting function in R
I have a dataset like this
id <- 1:12
b <- c(0,0,1,2,0,1,1,2,2,0,2,2)
c <- rep(NA,3)
d <- rep(NA,3)
df <-data.frame(id,b)
newdf <- data.frame(c,d)
I want to do simple math. If x==1 or x==2 count them and write how many 1 and 2 are there in this dataset. But I don't want to count whole dataset,... | https://stackoverflow.com/questions/35369167/counting-function-in-r | r, statistics | 1,455,299,613 |
se_11978540 | stackoverflow | DATA_SCIENCE | How to see if the addition of an interaction term affects the dependent variable? | How to see if the addition of an interaction term affects the dependent variable?
I have a model of a few independent variables and one dependent one. I need to know how can I see if the addition of the interaction terms of two independent variable affect the dependent variable. I will also need to know how to put the... | https://stackoverflow.com/questions/11978540/how-to-see-if-the-addition-of-an-interaction-term-affects-the-dependent-variable | r, statistics, regression, interaction | 1,345,071,904 |
se_79558940 | stackoverflow | DATA_SCIENCE | numbers in car package Q-Q plot in r | numbers in car package Q-Q plot in r
I plotted couple Q-Q plots with car package qqPlot {car}
Looks nice but I don't get, what are those 2 numbers inside plot.
For example I plotted 72 values and there is two numbers: 59 and 38.
What these numbers are trying to tell me?
Fivenum summary of data is 21.20 26.55 30.50 35... | https://stackoverflow.com/questions/79558940/numbers-in-car-package-q-q-plot-in-r | r, statistics | 1,743,990,046 |
se_61292464 | stackoverflow | DATA_SCIENCE | Get confidence interval from sklearn linear regression in python | Get confidence interval from sklearn linear regression in python
I want to get a confidence interval of the result of a linear regression. I'm working with the boston house price dataset.
I've found this question:
How to calculate the 99% confidence interval for the slope in a linear regression model in python?
Howeve... | https://stackoverflow.com/questions/61292464/get-confidence-interval-from-sklearn-linear-regression-in-python | python, machine-learning, scikit-learn, statistics, linear-regression | 1,587,226,950 |
se_36353997 | stackoverflow | DATA_SCIENCE | Empirical Distribution Function in Numpy | Empirical Distribution Function in Numpy
I have the following list of values:
x = [-0.04124324405924407, 0, 0.005249724476788287, 0.03599351958245578, -0.00252785423151014, 0.01007584102031178, -0.002510349639322063,...]
and I want to calculate the empirical density function, so I think I need to calculate the empi... | https://stackoverflow.com/questions/36353997/empirical-distribution-function-in-numpy | python, statistics | 1,459,506,521 |
se_6620471 | stackoverflow | DATA_SCIENCE | Fitting empirical distribution to theoretical ones with Scipy? | Fitting empirical distribution to theoretical ones with Scipy?
INTRODUCTION: I have a list of more than 30,000 integer values ranging from 0 to 47, inclusive, e.g.[0,0,0,0,..,1,1,1,1,...,2,2,2,2,...,47,47,47,...] sampled from some continuous distribution. The values in the list are not necessarily in order, but order ... | https://stackoverflow.com/questions/6620471/fitting-empirical-distribution-to-theoretical-ones-with-scipy | python, numpy, statistics, scipy, distribution | 1,310,104,848 |
se_37487830 | stackoverflow | DATA_SCIENCE | How to find probability distribution and parameters for real data? | How to find probability distribution and parameters for real data?
I have a dataset from sklearn and I plotted the distribution of the load_diabetes.target data (i.e. the values of the regression that the load_diabetes.data are used to predict).
Using Python 3, how can I get the distribution-type and parameters of the... | https://stackoverflow.com/questions/37487830/how-to-find-probability-distribution-and-parameters-for-real-data | python, machine-learning, statistics, distribution, data-fitting | 1,464,364,711 |
se_45682437 | stackoverflow | DATA_SCIENCE | Python: Implement mean of means 95% Confidence Interval? | Python: Implement mean of means 95% Confidence Interval?
How can this solution be implemented using pandas/python? This question concerns the implementation of finding a 95% CI around a mean of means using this stats.stackexchange solution.
import pandas as pd
from IPython.display import display
import scipy
import ... | https://stackoverflow.com/questions/45682437/python-implement-mean-of-means-95-confidence-interval | python, pandas, statistics, average, confidence-interval | 1,502,741,921 |
se_79549239 | stackoverflow | DATA_SCIENCE | Add labels to Normal distribution plot using ggplot2 | Add labels to Normal distribution plot using ggplot2
I've been trying to produce a similar plot to this using ggplot2:
And this is my R code:
df <- data.frame(
tecnica = factor(rep(1:4, each = 4)), # Repite cada tecnica 4 veces
bloque = factor(rep(1:4, times = 4)), # Iitera por cada bloque
resistencia = c(312... | https://stackoverflow.com/questions/79549239/add-labels-to-normal-distribution-plot-using-ggplot2 | r, ggplot2, statistics | 1,743,542,804 |
se_60454210 | stackoverflow | DATA_SCIENCE | How to calculate evidence in Naive Bayes classifier? | How to calculate evidence in Naive Bayes classifier?
I have written a simple multinomial Naive Bayes classifier in Python. The code predicts correct labels for BBC news dataset, but when I use a prior P(X) probability in denominator to output scores as probabilities, I get incorrect values (like > 1 for probability). ... | https://stackoverflow.com/questions/60454210/how-to-calculate-evidence-in-naive-bayes-classifier | python, machine-learning, statistics, naivebayes | 1,582,901,780 |
se_43099542 | stackoverflow | DATA_SCIENCE | Python : easy way to do geometric mean in python? | Python : easy way to do geometric mean in python?
I wonder is there any easy way to do geometric mean using python but without using python package. If there is not, is there any simple package to do geometric mean? | https://stackoverflow.com/questions/43099542/python-easy-way-to-do-geometric-mean-in-python | python, math, statistics, geometric-mean | 1,490,806,107 |
se_52692315 | stackoverflow | DATA_SCIENCE | how to understand the chi square contingency table | how to understand the chi square contingency table
I have few categorical features:
['Gender',
'Married',
'Dependents',
'Education',
'Self_Employed',
'Property_Area']
from scipy.stats import chi2_contingency
chi2, p, dof, expected = chi2_contingency((pd.crosstab(df.Gender, df.Married).values))
print (f'Chi-squa... | https://stackoverflow.com/questions/52692315/how-to-understand-the-chi-square-contingency-table | python, scipy, statistics, chi-squared | 1,538,942,081 |
se_14647006 | stackoverflow | DATA_SCIENCE | Is there a Python module to open SPSS files? | Is there a Python module to open SPSS files?
Is there a module for Python to open IBM SPSS (i.e. .sav) files? It would be great if there's something up-to-date which doesn't require any additional dll files/libraries. | https://stackoverflow.com/questions/14647006/is-there-a-python-module-to-open-spss-files | python, statistics, dataset, python-module, spss-files | 1,359,724,066 |
se_77969439 | stackoverflow | DATA_SCIENCE | Predicting outside of follow-up time with JMBayes2 | Predicting outside of follow-up time with JMBayes2
I am trying to work with the JMBayes2 package to simulate outcomes outside of my datarange for a problem where I have a longitudinal outcome which forms a proxy for cognitive functioning and a binary outcome which indicates a ‘state-change’ in cognitive functioning. I... | https://stackoverflow.com/questions/77969439/predicting-outside-of-follow-up-time-with-jmbayes2 | r, statistics, simulation, survival-analysis, longitudinal | 1,707,495,167 |
se_79533444 | stackoverflow | DATA_SCIENCE | How to append a row with column-wise means in a Polars DataFrame in Rust? | How to append a row with column-wise means in a Polars DataFrame in Rust?
I'm trying to calculate the mean of each numeric column in a Polars v0.46.0 DataFrame using Rust, and append the result as a new row at the bottom of the DataFrame.
Here's a simplified example of the DataFrame I'm working with:
let df: DataFrame... | https://stackoverflow.com/questions/79533444/how-to-append-a-row-with-column-wise-means-in-a-polars-dataframe-in-rust | dataframe, rust, statistics, mean, rust-polars | 1,742,900,439 |
se_53204674 | stackoverflow | DATA_SCIENCE | relation between a categorical dependent variable and combination of independent variables | relation between a categorical dependent variable and combination of independent variables
I am looking for a technique which could help us find the relation in between a categorical dependent variable and combination of independent variables (Y ~ X1*X2+X2*X3+X3*X4), here among X1 to X4 we have few categorical columns... | https://stackoverflow.com/questions/53204674/relation-between-a-categorical-dependent-variable-and-combination-of-independent | machine-learning, statistics | 1,541,668,725 |
se_71323628 | stackoverflow | DATA_SCIENCE | Writing a function in R to compute 95% CI | Writing a function in R to compute 95% CI
Given X1, X2, ..., Xn independent r.v from a Normal(mu, sigma^2) distribution, where sigma^2 is a unknown, I need to write a function that computes a 95% confidence interval for mu. It should be a function of n and sigma. I know how to calculate confidence intervals, but not s... | https://stackoverflow.com/questions/71323628/writing-a-function-in-r-to-compute-95-ci | r, statistics | 1,646,228,104 |
se_18686884 | stackoverflow | DATA_SCIENCE | Get live NFL scores/stats to read and manipulate? | Get live NFL scores/stats to read and manipulate?
I need some sort of database or feed to access live scores(and possibly player stats) for the NFL. I want to be able to display the scores on my site for my pickem league and show the users if their pick is winning or not.
I'm not sure how to go about this. Can someo... | https://stackoverflow.com/questions/18686884/get-live-nfl-scores-stats-to-read-and-manipulate | php, statistics, feed | 1,378,663,162 |
se_79522915 | stackoverflow | DATA_SCIENCE | Event Study Design using OLS yields estimates despite no variance in outcome variable | Event Study Design using OLS yields estimates despite no variance in outcome variable
I am running an event study design and get some unexpected behavior using OLS. One of my outcome variables is by definition zero before the treatment, i.e., whenever event time is weakly smaller than 0. I am convinced OLS shouldn't r... | https://stackoverflow.com/questions/79522915/event-study-design-using-ols-yields-estimates-despite-no-variance-in-outcome-var | r, statistics, regression, lm, fixest | 1,742,473,123 |
se_79498348 | stackoverflow | DATA_SCIENCE | Calculating MSD of a Brownian particle using trackpy vs manually | Calculating MSD of a Brownian particle using trackpy vs manually
I am trying to understand the trackpy algorithm for calculating MSD in comparison to a simple manual method of calculating it. My intention is to use trackpy to analyze the tracks of Brownian diffusing particles captured on video.
I first generate the tr... | https://stackoverflow.com/questions/79498348/calculating-msd-of-a-brownian-particle-using-trackpy-vs-manually | python, statistics, physics, trackpy | 1,741,618,014 |
se_79511188 | stackoverflow | DATA_SCIENCE | Gauss Fitting data with scipy and getting strange answers on Fit Quality | Gauss Fitting data with scipy and getting strange answers on Fit Quality
I have Gamma-Spectra and I am doing Gauss fit to the peaks using Python with scipy. Works well, but trying to get a number on fit quality (for the intent on some automation) returns very odd numbers.
The scipy command is:
response = scipy.optimiz... | https://stackoverflow.com/questions/79511188/gauss-fitting-data-with-scipy-and-getting-strange-answers-on-fit-quality | python, scipy, statistics, curve-fitting | 1,742,044,810 |
se_79495776 | stackoverflow | DATA_SCIENCE | Excel statistics for subtotal table values | Excel statistics for subtotal table values
I've been trying to create an excel analysis with the following statistics for each of the _count columns in my data set:
MAX
MIN
MEAN
MEDIAN
MODE
Furthermore, I have additional requirements that need to be fulfilled which makes writing functions more complex:
Create the s... | https://stackoverflow.com/questions/79495776/excel-statistics-for-subtotal-table-values | excel, excel-formula, statistics, subtotal | 1,741,516,839 |
se_10786465 | stackoverflow | DATA_SCIENCE | how to generate bins for histogram using apache math 3.0 in java? | how to generate bins for histogram using apache math 3.0 in java?
I have been looking for away to generate bins for specific dataset (by specifying lower band, upper band and number of bins required) using apache common math 3.0. I have looked at Frequency http://commons.apache.org/math/apidocs/org/apache/commons/math... | https://stackoverflow.com/questions/10786465/how-to-generate-bins-for-histogram-using-apache-math-3-0-in-java | java, statistics, histogram, bins, apache-commons-math | 1,338,216,168 |
se_41957633 | stackoverflow | DATA_SCIENCE | Sample from a multivariate t distribution python | Sample from a multivariate t distribution python
I am wondering if there is a function for sampling from a multivariate student t-distribution in Python. I have the mean vector with 14 elements, the 14x14 covariance matrix and the degrees of freedom and I want to sample a vector from this t-distribution. For the one d... | https://stackoverflow.com/questions/41957633/sample-from-a-multivariate-t-distribution-python | python, statistics | 1,485,865,749 |
se_79500030 | stackoverflow | DATA_SCIENCE | Scipy's multivariate earth mover distance not working as intended? | Scipy's multivariate earth mover distance not working as intended?
I am using scipy's multivariate earth mover distance function wasserstein_distance_nd. I did a quick sanity check that confused me: Given that I draw two Gaussian multivariate samples from the same distribution, I should get an earth mover distance... | https://stackoverflow.com/questions/79500030/scipys-multivariate-earth-mover-distance-not-working-as-intended | python, math, scipy, statistics, simulation | 1,741,681,052 |
se_1491103 | stackoverflow | DATA_SCIENCE | How can I calculate the median and standard deviation of a bunch stream of numbers in Perl? | How can I calculate the median and standard deviation of a bunch stream of numbers in Perl?
In our logfiles we store response times for the requests. What's the most efficient way to calculate the median response time, the "75/90/95% of requests were served in less than N time" numbers etc? (I guess a variation of ... | https://stackoverflow.com/questions/1491103/how-can-i-calculate-the-median-and-standard-deviation-of-a-bunch-stream-of-numbe | perl, statistics, logging, median | 1,254,210,425 |
se_69096095 | stackoverflow | DATA_SCIENCE | How do you use list comprehensions in Python for sum of squares in a list? | How do you use list comprehensions in Python for sum of squares in a list?
This is the data provided.
# Data on probability of expansion success by country estimates
success_estimates = {
'Australia': [0.6, 0.33, 0.11, 0.14],
'France': [0.66, 0.78, 0.98, 0.2],
'Italy': [0.6],
'Brazil': [0.22, 0.22, 0.4... | https://stackoverflow.com/questions/69096095/how-do-you-use-list-comprehensions-in-python-for-sum-of-squares-in-a-list | python, statistics, data-science, list-comprehension | 1,631,065,821 |
se_76823615 | stackoverflow | DATA_SCIENCE | get confidence interval for mixed lm predictions | get confidence interval for mixed lm predictions
In R with the help of lmer, ggeffects, ggpredict, you can easily generate a plot of predictions and their confidence interval after fitting a linear mixed model using the plot_model() function. Below is one of the results:
I'm trying to generate a similar result to R i... | https://stackoverflow.com/questions/76823615/get-confidence-interval-for-mixed-lm-predictions | python, r, statistics, statsmodels, mixed-models | 1,691,011,230 |
se_50704701 | stackoverflow | DATA_SCIENCE | Trying to fit Pearson3 probability distribution using scipy | Trying to fit Pearson3 probability distribution using scipy
I am trying to understand how to fit a probability distribution function, such as Pearson type 3, to a data set (specifically, mean annual rainfall in an area). I've read some questions about this, but I still miss something and the fitting doesn't get right.... | https://stackoverflow.com/questions/50704701/trying-to-fit-pearson3-probability-distribution-using-scipy | python, scipy, statistics, model-fitting, probability-distribution | 1,528,215,406 |
se_15013517 | stackoverflow | DATA_SCIENCE | comparing two linear models in R | comparing two linear models in R
Let's say I have two linear models in R such that:
lm1 = (x ~ a + b)
lm2 = (x ~ a + b + c)
I want to determine the effect of c on x in terms of
1) significance of effect
2) estimate of effect
3) c's contribution towards overall variation in x (e.g. c's component of the R-squared v... | https://stackoverflow.com/questions/15013517/comparing-two-linear-models-in-r | r, statistics, linear-regression | 1,361,486,009 |
se_75110288 | stackoverflow | DATA_SCIENCE | Using Raster Calculator in QGIS produces output with strange values | Using Raster Calculator in QGIS produces output with strange values
I am adding a number of raster grids together using the Raster Calculator in QGIS, but my output file displays very large values in the range on the layer Legend e.g. 340,282,346,638,528,859,811,704,183,484,516,925,440 to
-340,282,346,638,528,859,811,... | https://stackoverflow.com/questions/75110288/using-raster-calculator-in-qgis-produces-output-with-strange-values | statistics, calculator, raster, qgis | 1,673,618,875 |
se_47562490 | stackoverflow | DATA_SCIENCE | Numerically stable evaluation of log of integral of a function with extremely small values | Numerically stable evaluation of log of integral of a function with extremely small values
If I have a random number Z that is defined as the sum of two other random numbers, X and Y, then the probability distribution of Z is the convolution of the probability distributions for X and Y. Convolution is basically to an ... | https://stackoverflow.com/questions/47562490/numerically-stable-evaluation-of-log-of-integral-of-a-function-with-extremely-sm | python, scipy, statistics, numerical-integration, numerical-stability | 1,511,992,445 |
se_71055613 | stackoverflow | DATA_SCIENCE | Weighted empirical distribution function (ECDF) in python | Weighted empirical distribution function (ECDF) in python
I am trying to generate weighted empirical CDF in python. I know statsmodel.distributions.empirical_distribution provides an ECDF function, but it is unweighted. Is there a library that I can use or how can I go about extending this to write a function which ca... | https://stackoverflow.com/questions/71055613/weighted-empirical-distribution-function-ecdf-in-python | python, statistics, statsmodels | 1,644,434,967 |
se_35998395 | stackoverflow | DATA_SCIENCE | Multicollinearity of categorical variables | Multicollinearity of categorical variables
What are the different measures available to check for multicollinearity if the data contains both categorical and continuous independent variables?
Can I use VIF by converting categorical variables into dummy variables ? Is there a fundamental flaw in this since I could not... | https://stackoverflow.com/questions/35998395/multicollinearity-of-categorical-variables | statistics, modeling, logistic-regression | 1,457,990,720 |
se_79478275 | stackoverflow | DATA_SCIENCE | Setting a flag based on two samples' dates | Setting a flag based on two samples' dates
I have written the following code in R which adds a date (dp_date) and creates a flag (dp_flag) in dt.all sample based on columns from data tables dt.all and Info. The issue that I cannot create dp_flag properly. So, the dp_flag should be equal to 1 when all mentioned con... | https://stackoverflow.com/questions/79478275/setting-a-flag-based-on-two-samples-dates | r, date, statistics, data.table, na | 1,740,863,094 |
se_79472165 | stackoverflow | DATA_SCIENCE | How can I prevent stepAIC in caret::train from removing main effects involved in interaction terms to maintain hierarchical regression principles? | How can I prevent stepAIC in caret::train from removing main effects involved in interaction terms to maintain hierarchical regression principles?
I’m using caret::train in R with method = "glmStepAIC" to perform stepwise regression with repeated cross-validation (trControl = splitRule). My model includes interaction ... | https://stackoverflow.com/questions/79472165/how-can-i-prevent-stepaic-in-carettrain-from-removing-main-effects-involved-in | r, statistics, regression, linear-regression, r-caret | 1,740,648,104 |
se_45169345 | stackoverflow | DATA_SCIENCE | mutual information significance levels | mutual information significance levels
I have a dataset of 21 variables and 75 datapoints/rows. I am trying to investigate the mutual information between each pair of variables. I have used the mutual_info_score function in sklearn.metrics and this returns a number that is more than 0. How do I know which values of th... | https://stackoverflow.com/questions/45169345/mutual-information-significance-levels | python, scikit-learn, statistics, entropy | 1,500,387,262 |
se_21889025 | stackoverflow | DATA_SCIENCE | Product of two beta distributions | Product of two beta distributions
Say I have two random variables:
X ~ Beta(α1,β1)
Y ~ Beta(α2,β2)
I would like to compute distribution of Z = XY (the product of the random variables)
With scipy, I can get the pdf of a single Beta with:
from scipy.stats import beta
rv = beta(a, b)
x = np.linspace(start=0, stop=1... | https://stackoverflow.com/questions/21889025/product-of-two-beta-distributions | python, r, statistics, julia, statsmodels | 1,392,833,914 |
se_65381378 | stackoverflow | DATA_SCIENCE | Looking for ideas to lower the false positive rate in Machine Learning Classification | Looking for ideas to lower the false positive rate in Machine Learning Classification
Is there a way to reduce the false positive rate in classic fraud prediction problem. Currently iam working on classic fraud detection. There are 50000 samples with true label(results were due to investigation). Those training labels... | https://stackoverflow.com/questions/65381378/looking-for-ideas-to-lower-the-false-positive-rate-in-machine-learning-classific | python, statistics, svm, logistic-regression, fraud-prevention | 1,608,477,116 |
se_57165569 | stackoverflow | DATA_SCIENCE | Scipy.stats.entropy is giving a different result to entropy formula | Scipy.stats.entropy is giving a different result to entropy formula
I am trying to calculate the information entropy of a probability distribution, but I'm getting 2 different answers and I don't know why or which is correct.
I tried using scipy.stats.entropy.
I then looked at the source code for scipy.stats.entro... | https://stackoverflow.com/questions/57165569/scipy-stats-entropy-is-giving-a-different-result-to-entropy-formula | python, numpy, scipy, statistics, entropy | 1,563,889,475 |
se_42739417 | stackoverflow | DATA_SCIENCE | Problems with computing the entropy of random variables | Problems with computing the entropy of random variables
I've been trying to figure out how to calculate the entropy of a random variable X using
sp.stats.entropy()
from the stats package of SciPy, with this random variable X being the returns I obtain from the stock of a specific company ("Company 1") from 1997 to 20... | https://stackoverflow.com/questions/42739417/problems-with-computing-the-entropy-of-random-variables | python, scipy, statistics, entropy | 1,489,259,470 |
se_55290793 | stackoverflow | DATA_SCIENCE | Odd Results on Entropy Calculation | Odd Results on Entropy Calculation
I am trying to write a function that properly calculates the entropy of a given dataset. However, I am getting very weird entropy values.
I am following the understanding that all entropy calculations must fall between 0 and 1, yet I am consistently getting values above 2.
Note: I... | https://stackoverflow.com/questions/55290793/odd-results-on-entropy-calculation | python, algorithm, statistics, entropy | 1,553,211,514 |
se_26743201 | stackoverflow | DATA_SCIENCE | Interpreting scipy.stats.entropy values | Interpreting scipy.stats.entropy values
I am trying to use scipy.stats.entropy to estimate the Kullback–Leibler (KL) divergence between two distributions. More specifically, I would like to use the KL as a metric to decide how consistent two distributions are.
However, I cannot interpret the KL values. For ex:
t1=num... | https://stackoverflow.com/questions/26743201/interpreting-scipy-stats-entropy-values | python, statistics, scipy, entropy | 1,415,128,613 |
se_66074198 | stackoverflow | DATA_SCIENCE | How to find the critical values of chi-square distribution in python? | How to find the critical values of chi-square distribution in python?
I want to calculate the interval estimate of the population standard deviation, for this i need the chi-square critical values for the lower and upper bound. The formula to calculate is this -
To calculate it, i did this -
# variance
var = hallowee... | https://stackoverflow.com/questions/66074198/how-to-find-the-critical-values-of-chi-square-distribution-in-python | python, statistics | 1,612,592,980 |
se_35113719 | stackoverflow | DATA_SCIENCE | Testing Skewness in Time Series data using R but getting "Error: NCOL(x) == 1 is not TRUE" | Testing Skewness in Time Series data using R but getting "Error: NCOL(x) == 1 is not TRUE"
I am using the Dow Jones Dataset
and I am trying to test skewness. So far this is the code:
library(tseries)
library(zoo)
library(reshape2)
library(fBasics)
dow = read.table('dow_jones_index.data', header=T, sep=',')... | https://stackoverflow.com/questions/35113719/testing-skewness-in-time-series-data-using-r-but-getting-error-ncolx-1-is | r, statistics, time-series, skew | 1,454,242,387 |
se_79424874 | stackoverflow | DATA_SCIENCE | Fitting a Generalized Pareto Distribution (GPD) | Fitting a Generalized Pareto Distribution (GPD)
I am trying to fit a GPD in python. Standard genpareto.fit from scipy works, however I would like to get parameter error (sensitivity) and unfortunately it is not provided. When I try to fit the GPD myself with log likelihood, it provides very unsatisfactory results (wit... | https://stackoverflow.com/questions/79424874/fitting-a-generalized-pareto-distribution-gpd | python, scipy, statistics, minimization | 1,739,103,765 |
se_79460959 | stackoverflow | DATA_SCIENCE | Mean and Standard Devation of Kth Highest Number Given Infinite Samples of Size x | Mean and Standard Devation of Kth Highest Number Given Infinite Samples of Size x
Given:
A list of numbers, "values".
A sample size, x
A kth highest number (ex: [3, 2, 1, 0], 2 is the 2nd highest
number)
Write a function kmax(x, k) that returns the Mean and Standard Deviation of the kth highest number of infinite... | https://stackoverflow.com/questions/79460959/mean-and-standard-devation-of-kth-highest-number-given-infinite-samples-of-size | python, algorithm, math, statistics, probability | 1,740,301,654 |
se_14446780 | stackoverflow | DATA_SCIENCE | What options for statistical analysis with asp.net and ms-sql? | What options for statistical analysis with asp.net and ms-sql?
I want to do some statistical analysis with an ms-sql database for an ASP.NET application. What are the options as I don't see many built-in functions for my purpose? Thanks for any suggestions. Options that you actually use would be appreciated. | https://stackoverflow.com/questions/14446780/what-options-for-statistical-analysis-with-asp-net-and-ms-sql | asp.net, sql-server, statistics | 1,358,800,566 |
se_29991010 | stackoverflow | DATA_SCIENCE | How to compare two products based on their ratings? | How to compare two products based on their ratings?
I am interested in knowing how to calculate a ranking score from ratings of a product. E.g., take the apple appstore. There are two products A and B. Both have same average rating but 100 reviewers have rated A whereas 1000 reviewers have rated B. Intuitively it seem... | https://stackoverflow.com/questions/29991010/how-to-compare-two-products-based-on-their-ratings | python, statistics | 1,430,498,026 |
se_79437759 | stackoverflow | DATA_SCIENCE | add_ci() for row percentages in gtsummary tbl_svysummary() function | add_ci() for row percentages in gtsummary tbl_svysummary() function
I was wondering if there is a way to add confidence intervals for the row percentages created using gtsummary.
Example code:
# Load required packages
library(survey)
library(gtsummary)
library(dplyr)
# Set seed for reproducibility
set.seed(123)
# Cr... | https://stackoverflow.com/questions/79437759/add-ci-for-row-percentages-in-gtsummary-tbl-svysummary-function | r, statistics, survey, confidence-interval, gtsummary | 1,739,481,884 |
se_31186547 | stackoverflow | DATA_SCIENCE | How can we perform common set operations (union, intersection, minus) in MS Excel? | How can we perform common set operations (union, intersection, minus) in MS Excel?
For example, I have an xls where :
column A has list of items with property A
column B has list of items with property B
I need the following :
column C which is A union B (unique items of both A & B)
column D which is A intersec... | https://stackoverflow.com/questions/31186547/how-can-we-perform-common-set-operations-union-intersection-minus-in-ms-exce | excel, statistics, analytics | 1,435,845,219 |
se_63869185 | stackoverflow | DATA_SCIENCE | Covariance matrix for circular variables? | Covariance matrix for circular variables?
In my current project, I have a collection of three-dimensional samples such as [-0.5,-0.1,0.2]*pi, [0.8,-0.1,-0.4]*pi. These variables are circular/periodic, with their values ranging from -pi to +pi. It is my goal to calculate a 3-by-3 covariance matrix for these circular va... | https://stackoverflow.com/questions/63869185/covariance-matrix-for-circular-variables | python, python-3.x, scipy, statistics | 1,599,989,400 |
se_70624053 | stackoverflow | DATA_SCIENCE | Azure DevOps Wiki page usage analytics | Azure DevOps Wiki page usage analytics
I would like gather usage information about our Azure DevOps wiki pages. How often they are edited, visited, etc. Afaik there is no built in capability for this just an API.
Is there a solution for this or I need to write my own app to iterate through all the wiki pages and call ... | https://stackoverflow.com/questions/70624053/azure-devops-wiki-page-usage-analytics | azure, azure-devops, statistics, wiki, azure-devops-wiki | 1,641,571,604 |
se_79413516 | stackoverflow | DATA_SCIENCE | Verbose output for GAM Gaussian family via mgcv | Verbose output for GAM Gaussian family via mgcv
I'm building a GAM via mgcv, which takes days to build. Is there any way to know how much of the model has been built just to get an indication of what is left?
Can I print all details during the run to see at least what is happening behind the scenes like design matrix,... | https://stackoverflow.com/questions/79413516/verbose-output-for-gam-gaussian-family-via-mgcv | r, statistics, gam, mgcv | 1,738,722,759 |
se_42771549 | stackoverflow | DATA_SCIENCE | Solver to run Logistic Regression using VBA | Solver to run Logistic Regression using VBA
I have created a function that gives me the log of the verisimilitude function in VBA ; this function requires to enter 3 parameters: Independent range(x), Dependent range(y) and betas' values (B)
option base 1
Public Function LogVerosimilitud(RangoX As Range, RangoY As Ra... | https://stackoverflow.com/questions/42771549/solver-to-run-logistic-regression-using-vba | vba, excel, statistics, logistic-regression | 1,489,432,023 |
se_809362 | stackoverflow | DATA_SCIENCE | How to calculate cumulative normal distribution? | How to calculate cumulative normal distribution?
I am looking for a function in Numpy or Scipy (or any rigorous Python library) that will give me the cumulative normal distribution function in Python. | https://stackoverflow.com/questions/809362/how-to-calculate-cumulative-normal-distribution | python, numpy, scipy, statistics | 1,241,129,591 |
se_73183743 | stackoverflow | DATA_SCIENCE | GLS and Fixed Effects- pggls duplicate issue | GLS and Fixed Effects- pggls duplicate issue
I have a data set on evacuation that is essentially:
Start
End
Evac_num
date_time
loc_1
loc_2
2000
30-09-2020 16:00
Where start is the starting location ID, end is where they evacuate to (end location ID), the number of evacuees and the date and time that this was... | https://stackoverflow.com/questions/73183743/gls-and-fixed-effects-pggls-duplicate-issue | r, statistics, panel, least-squares, plm | 1,659,274,419 |
se_29870777 | stackoverflow | DATA_SCIENCE | How to get cumulative distribution function correctly for my data in python? | How to get cumulative distribution function correctly for my data in python?
Hello everyone i have a list of values for which i need to get cumulative distribution function i have saved this list in a variable name yvalues
[0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.... | https://stackoverflow.com/questions/29870777/how-to-get-cumulative-distribution-function-correctly-for-my-data-in-python | python, numpy, statistics, cdf | 1,429,996,175 |
se_79372155 | stackoverflow | DATA_SCIENCE | R - Replacement Not Multiple Length Error for Zoo Object | R - Replacement Not Multiple Length Error for Zoo Object
I am trying to implement the VAR-based ConnectednessApproach R package, which requires a zoo object as an input. I have separate data frames that I merge together with an inner_join, which yields some items with NA, Inf, -Inf. I first tried removing all the rows... | https://stackoverflow.com/questions/79372155/r-replacement-not-multiple-length-error-for-zoo-object | r, statistics, time-series, zoo, quantitative-finance | 1,737,393,383 |
se_79380702 | stackoverflow | DATA_SCIENCE | How to calculate the Gauss error function erf/erfc in Trino (or SQL) | How to calculate the Gauss error function erf/erfc in Trino (or SQL)
I need to calculate the Gauss error function erf or its complement erfc = 1−erf in Trino. I need it for the estimation of the p (probability) value of a deviation from a binomial distribution expressed in terms of the standard deviation (sigma), so I... | https://stackoverflow.com/questions/79380702/how-to-calculate-the-gauss-error-function-erf-erfc-in-trino-or-sql | sql, statistics, trino, function-approximation | 1,737,628,908 |
se_79382865 | stackoverflow | DATA_SCIENCE | How to estimate a reliable average using bootstrapping with weighted data and measurement uncertainties? | How to estimate a reliable average using bootstrapping with weighted data and measurement uncertainties?
I have a small dataset where each data point (y_i) comes with its own measurement uncertainty (e_i). I want to estimate a reliable average value for (y) while properly considering the uncertainties (e_i) as weights... | https://stackoverflow.com/questions/79382865/how-to-estimate-a-reliable-average-using-bootstrapping-with-weighted-data-and-me | python, statistics, bayesian, weighted-average | 1,737,674,877 |
se_79285689 | stackoverflow | DATA_SCIENCE | RuntimeWarning in scipy.stats.kstest for very small samples | RuntimeWarning in scipy.stats.kstest for very small samples
I want to explore the possibility of using the Kolmogorov-Smirnov goodness of fit test to determine whether an array of experimental data fits an array of previously defined theoretical expectations.
To try and see how the predefined scipy.stats.kstest() func... | https://stackoverflow.com/questions/79285689/runtimewarning-in-scipy-stats-kstest-for-very-small-samples | python, scipy, statistics, scipy.stats | 1,734,373,062 |
se_79372585 | stackoverflow | DATA_SCIENCE | How do I count the number of instances where a number in one column is greater than the number in the corresponding row of another column? | How do I count the number of instances where a number in one column is greater than the number in the corresponding row of another column?
enter image description here Very new to Excel and I’m trying to track the match-up stats in my tennis tournaments. I want to automatically count the number of wins Ryan has agains... | https://stackoverflow.com/questions/79372585/how-do-i-count-the-number-of-instances-where-a-number-in-one-column-is-greater-t | excel, statistics | 1,737,405,086 |
se_58537876 | stackoverflow | DATA_SCIENCE | How to run Standard Normal Homogeneity Test for a time series data | How to run Standard Normal Homogeneity Test for a time series data
I have a timeseries data (sample data) for a variable wind for nearly 40 stations and 36 years (details in sample screenshot).
I need to run the Standard Normal Homogeneity Test and Pettitt's Test for this data as per recommendations. Are they availab... | https://stackoverflow.com/questions/58537876/how-to-run-standard-normal-homogeneity-test-for-a-time-series-data | python, statistics, normalization | 1,571,907,835 |
se_78076808 | stackoverflow | DATA_SCIENCE | How does Minitab calculate UCL/LCL? | How does Minitab calculate UCL/LCL?
Sorry this is a very basic question, but the UCL/LCL of the chart doesn't line up with the UCL/LCL I would calculate and I'd like to understand why.
Based on the descriptive statistics, std dev is 13.59, mean is 63.17, UCL should be 103.94
Instead the c chart has 87.01 which woul... | https://stackoverflow.com/questions/78076808/how-does-minitab-calculate-ucl-lcl | statistics, minitab | 1,709,144,482 |
se_79354186 | stackoverflow | DATA_SCIENCE | What null hypothesis is rejected by the value of statsmodels RLM | What null hypothesis is rejected by the value of statsmodels RLM
I am using statsmodels to perform a robust linear regression on some data I have. I wanted to understand whether the slope of my regression is significantly different from 0. In scipy I due this by looking at the p-value.
In statsmodels, is the same null... | https://stackoverflow.com/questions/79354186/what-null-hypothesis-is-rejected-by-the-value-of-statsmodels-rlm | python, scipy, statistics, linear-regression, statsmodels | 1,736,837,689 |
se_33944914 | stackoverflow | DATA_SCIENCE | Implementation of E-test for Poisson in Python | Implementation of E-test for Poisson in Python
Is there a Python implementation of the E-Test for Poissons? For Binomials scipy has the Fisher's Exact test as stats.fisher_exact and for Gaussians scipy.stats has Welch's T-test as ttest_ind. I can't seem to find any Python implementation for the comparison of two Poiss... | https://stackoverflow.com/questions/33944914/implementation-of-e-test-for-poisson-in-python | python, statistics, poisson, hypothesis-test | 1,448,561,813 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.