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_78993181 | stackoverflow | DATA_SCIENCE | Empty Columns in Confusion matrix | Empty Columns in Confusion matrix
I am training on pre-processed APTOS 2019 dataset for disease grading and the last two columns of my confusion matrix are constantly zero every time. Data is distributed as:
class 0: 1805 images
class 1: 370 images
class 3: 999 images
class 4: 193 images
class 5: 295 images
Here are... | https://stackoverflow.com/questions/78993181/empty-columns-in-confusion-matrix | machine-learning, deep-learning, pytorch, statistics, confusion-matrix | 1,726,561,901 |
se_77259151 | stackoverflow | DATA_SCIENCE | Student's t-distribution CDF R base documentation | Student's t-distribution CDF R base documentation
In the context of the Student's t-distribution cumulative distribution function, R Version 4.3.1's ?dt documentation highlights the following result:
However, upon attempting to verify the accuracy of this formula, an inconsistency arises, as illustrated in the fo... | https://stackoverflow.com/questions/77259151/students-t-distribution-cdf-r-base-documentation | r, function, statistics, probability | 1,696,857,340 |
se_74517204 | stackoverflow | DATA_SCIENCE | How to compute TukeyHSD letters for ggplot2 with multcompLetters2 when interaction results have NA values in them? | How to compute TukeyHSD letters for ggplot2 with multcompLetters2 when interaction results have NA values in them?
I have some data in the form of a dataframe, on which I want to perform an ANOVA and subsequent TukeyHSD. Unfortunately a few combinations between treatments:cultivars are missing. I want to compute lette... | https://stackoverflow.com/questions/74517204/how-to-compute-tukeyhsd-letters-for-ggplot2-with-multcompletters2-when-interacti | r, ggplot2, statistics, anova, tukey | 1,669,025,183 |
se_24788200 | stackoverflow | DATA_SCIENCE | Calculate the Cumulative Distribution Function (CDF) in Python | Calculate the Cumulative Distribution Function (CDF) in Python
How can I calculate in python the Cumulative Distribution Function (CDF)?
I want to calculate it from an array of points I have (discrete distribution), not with the continuous distributions that, for example, scipy has. | https://stackoverflow.com/questions/24788200/calculate-the-cumulative-distribution-function-cdf-in-python | python, numpy, machine-learning, statistics, scipy | 1,405,535,776 |
se_76712522 | stackoverflow | DATA_SCIENCE | Fast Kernel Regression in Python? | Fast Kernel Regression in Python?
I am running repeated simulations in the context of 1D non-parametric regression in order to evaluate the performance of some non-parametric methods. the Nadayara-Watson kernel estimate is one of these methods. But, i am struggling a bit with KernelReg, that is too slow to my purpose.... | https://stackoverflow.com/questions/76712522/fast-kernel-regression-in-python | python, performance, statistics, statsmodels | 1,689,681,240 |
se_78979340 | stackoverflow | DATA_SCIENCE | How can I use the Scipy Mahalanobis distance implementation for outlier detection? | How can I use the Scipy Mahalanobis distance implementation for outlier detection?
I have a dataset of different measurements for several individuals in a Pandas dataframe, a similar structure to this random data:
import pandas as pd
import numpy as np
df = pd.DataFrame(np.random.randn(25, 3), columns=['var1', 'var2',... | https://stackoverflow.com/questions/78979340/how-can-i-use-the-scipy-mahalanobis-distance-implementation-for-outlier-detectio | python, pandas, scipy, statistics, mahalanobis | 1,726,162,123 |
se_78975875 | stackoverflow | DATA_SCIENCE | Separating Systematic Errors and Randomness from a Measured Position Dataset | Separating Systematic Errors and Randomness from a Measured Position Dataset
I am trying to figure out a way to separate systematic errors from a set of datasets, representing position and position errors of a mechanical stage. The data is in pandas dataframe.
Background: A stage moves in a 2D plan. Measurements repor... | https://stackoverflow.com/questions/78975875/separating-systematic-errors-and-randomness-from-a-measured-position-dataset | dataframe, machine-learning, statistics, data-analysis | 1,726,093,435 |
se_78970163 | stackoverflow | DATA_SCIENCE | pheatmap clustering order | pheatmap clustering order
I have this dataset:
> dput(mdata2)
structure(list(EE = c(3.3221428469822, 3.62699732299098, 1.75430154205983,
0.809228977410138, 1.24117055233438, 2.93403148663873, 4.01630566539058,
1.5334176884274, 0.598331636908125, 0.793972781447563), MI = c(3.20812756072619,
3.73729312689288, 2.32268... | https://stackoverflow.com/questions/78970163/pheatmap-clustering-order | r, statistics, cluster-analysis, pheatmap | 1,725,981,131 |
se_15710794 | stackoverflow | DATA_SCIENCE | Directory Stats command line interface? | Directory Stats command line interface?
Windirstat/ Kdirstat/ Disk Inventory X has been nothing short of revolutionary in file managment. Why is there no text-only command line equivalent? I'd need it for SSH administration of my file servers.
We have all the building blocks: du, tree etc.
Is there one? Why not? Ca... | https://stackoverflow.com/questions/15710794/directory-stats-command-line-interface | linux, statistics, command-line-interface, disk, du | 1,364,588,294 |
se_78964300 | stackoverflow | DATA_SCIENCE | Conditional Multivariate Gaussian with scipy | Conditional Multivariate Gaussian with scipy
For a multi-variate Gaussian, it is straight-forward to compute the CDF or PDF given a point. rv = scipy.stats.multivariate_normal(mean, cov) and then rv.pdf(point) or rv.cdf(upper)
But I have values for some axis (in these I want the PDF), but upper limits for others (in t... | https://stackoverflow.com/questions/78964300/conditional-multivariate-gaussian-with-scipy | python, scipy, statistics, normal-distribution | 1,725,866,163 |
se_68734224 | stackoverflow | DATA_SCIENCE | Issue with pFtest from plm package returning p-value = NA | Issue with pFtest from plm package returning p-value = NA
I'm having a problem with with the pFtest() function from the plm package.
I'm using the following three tests (see code below). However, if you look at the output you will see that for the pFtest I get a p-value = NA. I guess this is due to the fact that df1 =... | https://stackoverflow.com/questions/68734224/issue-with-pftest-from-plm-package-returning-p-value-na | r, statistics, panel-data, plm | 1,628,635,732 |
se_13865596 | stackoverflow | DATA_SCIENCE | Quantile-Quantile Plot using SciPy | Quantile-Quantile Plot using SciPy
How would you create a qq-plot using Python?
Assuming that you have a large set of measurements and are using some plotting function that takes XY-values as input. The function should plot the quantiles of the measurements against the corresponding quantiles of some distribution (no... | https://stackoverflow.com/questions/13865596/quantile-quantile-plot-using-scipy | python, statistics, scipy | 1,355,421,247 |
se_13649646 | stackoverflow | DATA_SCIENCE | What kind of algorithm is behind the Akinator game? | What kind of algorithm is behind the Akinator game?
It always amazed me how the Akinator app could guess a character by asking just several questions. So I wonder what kind of algorithm or method let it do that? Is there a name for that class of algorithms and where can I read more about them? | https://stackoverflow.com/questions/13649646/what-kind-of-algorithm-is-behind-the-akinator-game | algorithm, statistics, machine-learning, artificial-intelligence | 1,354,294,778 |
se_9171036 | stackoverflow | DATA_SCIENCE | Fastest way to cross-tabulate two massive logical vectors in R | Fastest way to cross-tabulate two massive logical vectors in R
For two logical vectors, x and y, of length > 1E8, what is the fastest way to calculate the 2x2 cross tabulations?
I suspect the answer is to write it in C/C++, but I wonder if there is something in R that is already quite smart about this problem, as it's... | https://stackoverflow.com/questions/9171036/fastest-way-to-cross-tabulate-two-massive-logical-vectors-in-r | r, performance, statistics, pivot-table, bigdata | 1,328,589,122 |
se_78946148 | stackoverflow | DATA_SCIENCE | How do I easily find boxplot outliers | How do I easily find boxplot outliers
Below is an example using the mtcars dataset. There is one outlier with a value of 33.9, but I want a function that finds all of them for a given column.
library(dplyr)
library(ggplot2)
mtcars %>%
ggplot(aes(x = "", y = mpg)) +
geom_boxplot(fill = "#2645df")
I do not know th... | https://stackoverflow.com/questions/78946148/how-do-i-easily-find-boxplot-outliers | r, ggplot2, statistics, boxplot, outliers | 1,725,399,583 |
se_59686945 | stackoverflow | DATA_SCIENCE | Django & Postgres - percentile (median) and group by | Django & Postgres - percentile (median) and group by
I need to calculate period medians per seller ID (see simplyfied model below). The problem is I am unable to construct the ORM query.
Model
class MyModel:
period = models.IntegerField(null=True, default=None)
seller_ids = ArrayField(models.IntegerField... | https://stackoverflow.com/questions/59686945/django-postgres-percentile-median-and-group-by | python, django, postgresql, statistics, subquery | 1,578,679,913 |
se_78937380 | stackoverflow | DATA_SCIENCE | Create lm-class object with cluster bootstrap in it (R), or: cluster bootstrap for sensemakr() | Create lm-class object with cluster bootstrap in it (R), or: cluster bootstrap for sensemakr()
EDIT: I would like help closing my question. This question was originally posted on Cross Validated, should have stayed there because the answer is more of a statistics question and not a programming one, but it got closed o... | https://stackoverflow.com/questions/78937380/create-lm-class-object-with-cluster-bootstrap-in-it-r-or-cluster-bootstrap-f | r, object, statistics, lm | 1,725,195,516 |
se_32056161 | stackoverflow | DATA_SCIENCE | Pandas - select dataframe columns if statistic is greater than certain value | Pandas - select dataframe columns if statistic is greater than certain value
I have pandas dataframe df. I would like to select columns which have standard deviation grater than 1. Here is what I tried
df2 = df[df.std() >1]
df2 = df.loc[df.std() >1]
Both generated error. What am I doing wrong? | https://stackoverflow.com/questions/32056161/pandas-select-dataframe-columns-if-statistic-is-greater-than-certain-value | pandas, statistics, multiple-columns | 1,439,831,771 |
se_73407488 | stackoverflow | DATA_SCIENCE | how to check the normality of data on a column grouped by an index | how to check the normality of data on a column grouped by an index
i'm working on a dataset which represents the completion time of some activities performed in some processes. There are just 6 types of activities that repeat themselves throughout all the dataset and that are described by a numerical value. The exampl... | https://stackoverflow.com/questions/73407488/how-to-check-the-normality-of-data-on-a-column-grouped-by-an-index | pandas, matplotlib, statistics, histogram | 1,660,845,284 |
se_76346589 | stackoverflow | DATA_SCIENCE | In R, how to impute left-censored missing data to be within a desired range (e.g. 0<imputed_value<0.2) | In R, how to impute left-censored missing data to be within a desired range (e.g. 0<imputed_value<0.2)
I have some left-censored data for CRP (C-reactive protein) and I am wondering how I could impute the values that are below the detection limit in such a way that the imputed values would be inside a desired ra... | https://stackoverflow.com/questions/76346589/in-r-how-to-impute-left-censored-missing-data-to-be-within-a-desired-range-e-g | r, statistics, missing-data, imputation | 1,685,185,409 |
se_78859986 | stackoverflow | DATA_SCIENCE | How can I get the value of x through a given value of y when using R language for linear regression? | How can I get the value of x through a given value of y when using R language for linear regression?
I have the following data table. I have visualized it using ggplot2.
I'm wondering when y = 1, what are the respective x-axis values corresponding to the lower boundary of the standard error (se) and the regression cur... | https://stackoverflow.com/questions/78859986/how-can-i-get-the-value-of-x-through-a-given-value-of-y-when-using-r-language-fo | r, ggplot2, math, statistics, tidyverse | 1,723,437,201 |
se_78907548 | stackoverflow | DATA_SCIENCE | Trying to optimize my ARPLS implementation | Trying to optimize my ARPLS implementation
I'm trying to optimize my spectral baseline fitting algorithm (based on this one), since, from my understanding, NumPy's apply_along_axis performance is not significantly higher than simply looping through an array's indices.
It currently takes ~0.15 seconds to process a spec... | https://stackoverflow.com/questions/78907548/trying-to-optimize-my-arpls-implementation | python, numpy, optimization, scipy, statistics | 1,724,446,954 |
se_67024201 | stackoverflow | DATA_SCIENCE | Non-linear models GAM, MARS assumptions | Non-linear models GAM, MARS assumptions
Do models such as MARS and GAM assume heteroscedasticity and IID errors? There seems to be a disagreement in the literature about certain assumptions. Looks like MARS is more robust than GAM but it is not clearly stated in the original papers.
If normality is an issue, should on... | https://stackoverflow.com/questions/67024201/non-linear-models-gam-mars-assumptions | machine-learning, statistics, gam | 1,617,982,952 |
se_78910797 | stackoverflow | DATA_SCIENCE | PACF built-in plot utils returning different result compared to manual plot | PACF built-in plot utils returning different result compared to manual plot
Using packages:
from statsmodels.graphics.tsaplots import plot_acf, plot_pacf
from statsmodels.tsa.stattools import acf, pacf
Performing manual and built-in plot utils, give different values. No, I don't mean picture scale, but the actual val... | https://stackoverflow.com/questions/78910797/pacf-built-in-plot-utils-returning-different-result-compared-to-manual-plot | python, statistics, statsmodels, autocorrelation | 1,724,574,955 |
se_48462599 | stackoverflow | DATA_SCIENCE | How to perform a polynomial regression from N-dimensions set of samples in Python? | How to perform a polynomial regression from N-dimensions set of samples in Python?
Here is the context of my problem: I have data samples from measurements. I'm reccording N properties. From those data I would like to perform a sensitivity analysis to focus my study on significant parameters. If I use the sobol method... | https://stackoverflow.com/questions/48462599/how-to-perform-a-polynomial-regression-from-n-dimensions-set-of-samples-in-pytho | python, math, statistics, regression, probability | 1,516,974,448 |
se_78900173 | stackoverflow | DATA_SCIENCE | Evaluating the Impact of Subject Combinations on Student Failure: Probabilistic Approach | Evaluating the Impact of Subject Combinations on Student Failure: Probabilistic Approach
i have students academic data and would like to investigate whether some subject combinations will increase the probability of failure.
let's make an example data set (data sourced from real uni data cannot be shared):
idx student... | https://stackoverflow.com/questions/78900173/evaluating-the-impact-of-subject-combinations-on-student-failure-probabilistic | math, statistics, probability | 1,724,310,414 |
se_78902811 | stackoverflow | DATA_SCIENCE | 2x2 interaction plot when you only have summary statistics for each group | 2x2 interaction plot when you only have summary statistics for each group
Thought someone here could give me some leads. I've been looking for a good example of a 2x2 interaction (i.e., cross-over) line plot, but all the examples I find assume you have participant-level data and are calculating the means or proportion... | https://stackoverflow.com/questions/78902811/2x2-interaction-plot-when-you-only-have-summary-statistics-for-each-group | r, ggplot2, statistics, visualization | 1,724,347,909 |
se_66010530 | stackoverflow | DATA_SCIENCE | How to find point inside an ellipse? | How to find point inside an ellipse?
I'm trying to find points inside the ellipse. It is not an 'ordinary' ellipse actually it is based on average and standard deviation which is much easier than calculating eigen values in order to find confidence interval
Function is not written by me here are the sources
https://ma... | https://stackoverflow.com/questions/66010530/how-to-find-point-inside-an-ellipse | python, matplotlib, statistics, ellipse | 1,612,271,878 |
se_60559616 | stackoverflow | DATA_SCIENCE | How to sample from a distribution given the CDF in Python | How to sample from a distribution given the CDF in Python
I would like to draw samples from a probability distribution with CDF 1 - e^(-x^2).
Is there a method in python/scipy/etc. to enable you to sample from a probability distribution given only its CDF? | https://stackoverflow.com/questions/60559616/how-to-sample-from-a-distribution-given-the-cdf-in-python | python, math, scipy, statistics | 1,583,480,789 |
se_78884339 | stackoverflow | DATA_SCIENCE | What parameter and threshold to choose to get significant pathways from MetaboAnlyst pathway analysis results? | What parameter and threshold to choose to get significant pathways from MetaboAnlyst pathway analysis results?
MetaboAnalyst pathway analysis results give a total of 4 different p-values viz, raw p-value, -log10 pvalue, Holm-Bonferroni adjusted p-value and the FDR value. And an impact score.
Which value should be cons... | https://stackoverflow.com/questions/78884339/what-parameter-and-threshold-to-choose-to-get-significant-pathways-from-metaboan | parameters, statistics, bioinformatics, p-value | 1,723,977,075 |
se_66050615 | stackoverflow | DATA_SCIENCE | In Statistics, a Sample is a a Single Data Point, or a Pool of Data Points? | In Statistics, a Sample is a a Single Data Point, or a Pool of Data Points?
This question has confused me a lot in statistics. I think in Statistics, a sample is a pool of data points from the PDF, rather than a single data point, am I correct? In everyday language if you sample something, for example taking a sample ... | https://stackoverflow.com/questions/66050615/in-statistics-a-sample-is-a-a-single-data-point-or-a-pool-of-data-points | statistics, probability, probability-distribution | 1,612,459,131 |
se_78885134 | stackoverflow | DATA_SCIENCE | Need advice with Applied Stats II R code error | Need advice with Applied Stats II R code error
I'm a total noob at R trying to complete a Stats II project. I keep getting the following error for the code below: [1] "Confusion Matrix: TRAINING set based on random forest model built using 2 trees"
Error in table(train.data$heart_data, train.data.predict): all argumen... | https://stackoverflow.com/questions/78885134/need-advice-with-applied-stats-ii-r-code-error | r, statistics | 1,723,998,930 |
se_65997815 | stackoverflow | DATA_SCIENCE | Discord stats bot adding old stats to embed | Discord stats bot adding old stats to embed
So the problem is I´m making a CS:GO stats Discord bot, and every time you use !stats + Steam ID it gives you your stats in an embed. The first time you do it, it works perfectly, but after that every person that uses the command gets back his stats and the stats of everyone... | https://stackoverflow.com/questions/65997815/discord-stats-bot-adding-old-stats-to-embed | discord, statistics, bots, counter | 1,612,202,493 |
se_78881135 | stackoverflow | DATA_SCIENCE | Why does my Bayesian linear regression with survival analysis perform worse than standard linear regression? | Why does my Bayesian linear regression with survival analysis perform worse than standard linear regression?
Experts in statistics wanted here.
I am working on a Bayesian linear regression function that considers asymmetric uncertainties and censored data (upper/lower limits) in both x and y. The function uses the emc... | https://stackoverflow.com/questions/78881135/why-does-my-bayesian-linear-regression-with-survival-analysis-perform-worse-than | python, statistics, linear-regression, bayesian, mcmc | 1,723,852,773 |
se_74482194 | stackoverflow | DATA_SCIENCE | What does mongo's db.stats().ok means? | What does mongo's db.stats().ok means?
There is no documentation on what db.stats().ok means on mongodb's site https://www.mongodb.com/docs/manual/reference/method/db.stats/.
For example I would like to check if the connection to the database is healthy. Can I do it like that db.stats().ok === 1. Is that correct f... | https://stackoverflow.com/questions/74482194/what-does-mongos-db-stats-ok-means | javascript, database, mongodb, statistics, nosql | 1,668,719,855 |
se_75431524 | stackoverflow | DATA_SCIENCE | How does github calculate the "contribution level" of a given day | How does github calculate the "contribution level" of a given day
Alright, so I am trying to rework the Github contribution graph feature, and I would like the "level" of contribution to be accurate to Github's. By level I mean the brightness of the square (if you are in darkmode).
Here in this image you ca... | https://stackoverflow.com/questions/75431524/how-does-github-calculate-the-contribution-level-of-a-given-day | github, statistics | 1,676,256,326 |
se_37968051 | stackoverflow | DATA_SCIENCE | Probability density function for a set of values using numpy | Probability density function for a set of values using numpy
Below is the data for which I want to plot the PDF.
https://gist.github.com/ecenm/cbbdcea724e199dc60fe4a38b7791eb8#file-64_general-out
Below is the script
import numpy as np
import matplotlib.pyplot as plt
import pylab
data = np.loadtxt('64_general.out')
... | https://stackoverflow.com/questions/37968051/probability-density-function-for-a-set-of-values-using-numpy | python, numpy, matplotlib, statistics, probability-density | 1,466,598,561 |
se_73821514 | stackoverflow | DATA_SCIENCE | How to create a for loop in a DataFrame | How to create a for loop in a DataFrame
I have a big dataframe from which I want to run a t student using test_ind which performs a mean difference of quantitative variable of two groups. For example, comparing the oxygen levels of a control group vs a treatment group.
The thing is that I have a lot of quantitative va... | https://stackoverflow.com/questions/73821514/how-to-create-a-for-loop-in-a-dataframe | python, pandas, statistics | 1,663,888,404 |
se_78873329 | stackoverflow | DATA_SCIENCE | Understanding statistical significance | Understanding statistical significance
I have 16 birds (191978,191984, 191977, 191980, 191986, 201446, 191983, 201447, 211598, 211590, 211595, 191981, 211591, 201441, 201445, 211592). There are 6 males and 10 females. The dataset is called 'Gbirds_sex' I have the number of times they revisit their release site (visitI... | https://stackoverflow.com/questions/78873329/understanding-statistical-significance | statistics, glm, large-language-model, glmmtmb | 1,723,683,287 |
se_78872590 | stackoverflow | DATA_SCIENCE | How to prove a significant difference from a treatment variable across multiple categories? | How to prove a significant difference from a treatment variable across multiple categories?
I would like to see if a certain approach has a statistically significant effect on CPU Usage. I have raw data for each approach across five different levels of computational complexity. This graph shows the mean of the cpu us... | https://stackoverflow.com/questions/78872590/how-to-prove-a-significant-difference-from-a-treatment-variable-across-multiple | statistics, chi-squared | 1,723,662,688 |
se_51845606 | stackoverflow | DATA_SCIENCE | Python Mann-Whitney confidence interval | Python Mann-Whitney confidence interval
I have two datasets (Pandas Series) - ds1 and ds2 - for which I want to calculate 95% confidence interval for difference in mean (if normal) or median (for non-normal).
For difference in mean, I calculate t test statistic and CI as such:
import statsmodels.api as sm
tstat, p_... | https://stackoverflow.com/questions/51845606/python-mann-whitney-confidence-interval | python, statistics | 1,534,262,826 |
se_78868809 | stackoverflow | DATA_SCIENCE | R: monte carlo binomial gambling simulation | R: monte carlo binomial gambling simulation
I am trying to figure out how to simulate a biased gambling problem using monte carlo simulations.
The problem is:
Simulate two players tossing a coin; A and B.
Player A has a 0.55 chance to win. Player B has a 0.45 chance.
Each player starts with $3.
If one player wins they... | https://stackoverflow.com/questions/78868809/r-monte-carlo-binomial-gambling-simulation | r, statistics, data-science, montecarlo | 1,723,599,174 |
se_78862245 | stackoverflow | DATA_SCIENCE | Discrepancy between Python and R calculation of a robust covariance matrix | Discrepancy between Python and R calculation of a robust covariance matrix
I am currently developing a statistical package in Python using R code as a reference, and I've noticed different results between the two programs when calculating a robust covariance matrix in Python versus R.
Using the following code with equ... | https://stackoverflow.com/questions/78862245/discrepancy-between-python-and-r-calculation-of-a-robust-covariance-matrix | python, r, statistics | 1,723,473,413 |
se_78856690 | stackoverflow | DATA_SCIENCE | Extensive regression statistics with scipy and sklearn | Extensive regression statistics with scipy and sklearn
I'm working on calculating various linear regression metrics, including R^2, Pearson, Spearman, and Kendall coefficients, and also estimating MSE (Mean Squared Error) and MUE (Mean Absolute Error). I've implemented most of the equations manually but am unsure abou... | https://stackoverflow.com/questions/78856690/extensive-regression-statistics-with-scipy-and-sklearn | python, scikit-learn, scipy, statistics, linear-regression | 1,723,312,197 |
se_78134565 | stackoverflow | DATA_SCIENCE | Logistic Regression Odds Ratio unusual value in R | Logistic Regression Odds Ratio unusual value in R
I have a data set with response variable COVID.Vaccines and I want to perform logistic regression with Gender as an explanatory variable. The script I have is designed to find the odds ratio, 95% CI of it, and p-value for each level (Male and Female):
# Fit logistic re... | https://stackoverflow.com/questions/78134565/logistic-regression-odds-ratio-unusual-value-in-r | r, statistics | 1,710,039,283 |
se_78444146 | stackoverflow | DATA_SCIENCE | geepack:: geeglm Error in `contrasts<-`(`*tmp*`, value = contr.funs[1 + isOF[nn]]): contrasts can be applied only to factors with 2 or more levels | geepack:: geeglm Error in `contrasts<-`(`*tmp*`, value = contr.funs[1 + isOF[nn]]): contrasts can be applied only to factors with 2 or more levels
I'm using the geeglm() command to fit a logistic regression model via GEE, intending to incorporate an unstructured correlation matrix to capture within-participant corr... | https://stackoverflow.com/questions/78444146/geepack-geeglm-error-in-contrasts-tmp-value-contr-funs1-isofnn | r, error-handling, statistics | 1,715,102,503 |
se_78488624 | stackoverflow | DATA_SCIENCE | mixture regression models with concomitants | mixture regression models with concomitants
I would like to know if the concomitant variables in mixture regression models need to be uncorrelated and, in case, why and how to handle possible correlation between them.
I am asking a theoretical question and I expect an explanation. Thanks to who will answer! | https://stackoverflow.com/questions/78488624/mixture-regression-models-with-concomitants | statistics, mixture-model | 1,715,849,154 |
se_38027086 | stackoverflow | DATA_SCIENCE | Finding probabilities of patterns in asset price movements based on multiple variables | Finding probabilities of patterns in asset price movements based on multiple variables
I am seeking a method to allow me to analyse/search for patterns in asset price movements using 5 variables that move and change with price (from historical data).
I'd like to be able to assign a probability to a forecasted price m... | https://stackoverflow.com/questions/38027086/finding-probabilities-of-patterns-in-asset-price-movements-based-on-multiple-var | statistics, time-series, probability, hidden-markov-models, algorithmic-trading | 1,466,847,770 |
se_72985838 | stackoverflow | DATA_SCIENCE | Scipy Gumbel Fit does not Fit - What is the correct shape of the array / dataframe to use? | Scipy Gumbel Fit does not Fit - What is the correct shape of the array / dataframe to use?
I'm trying to fit various distributions onto my data and test (chi-squared?) which fits best. I started out by using the gumbel_r distribution of scipy, as this is the one often used in literature.
import pandas as pd
import mat... | https://stackoverflow.com/questions/72985838/scipy-gumbel-fit-does-not-fit-what-is-the-correct-shape-of-the-array-datafra | python, numpy, scipy, statistics | 1,657,827,529 |
se_78832927 | stackoverflow | DATA_SCIENCE | Method to create summary-of-summaries of a k6 multi-instance test | Method to create summary-of-summaries of a k6 multi-instance test
When using 10 separate k6 instances (NOT on Grfana's cloud service), I'm getting 10 different summaries. Is there any way to combine them into one grand summary? | https://stackoverflow.com/questions/78832927/method-to-create-summary-of-summaries-of-a-k6-multi-instance-test | statistics, k6 | 1,722,837,278 |
se_78812664 | stackoverflow | DATA_SCIENCE | R Package for Displaying Two-Way ANOVA with Mean, SE, and Significance Letters (Both Capital and Small Letters) | R Package for Displaying Two-Way ANOVA with Mean, SE, and Significance Letters (Both Capital and Small Letters)
I am looking for an R package that can help me display the results of a two-way ANOVA. Specifically, I need to include the following elements in my output:
Mean values ( not estimated, originial)
Standard Er... | https://stackoverflow.com/questions/78812664/r-package-for-displaying-two-way-anova-with-mean-se-and-significance-letters | statistics, visualization, anova, r-package | 1,722,354,738 |
se_78638242 | stackoverflow | DATA_SCIENCE | Can you create an array/vector of arbitrary length in Mathematica/Wolfram language? | Can you create an array/vector of arbitrary length in Mathematica/Wolfram language?
I am working on a small proof/demonstration of how the least squares method gives us the arithmetic mean.
Wolfram Language 14.0.0 Engine for Microsoft Windows (64-bit)
Copyright 1988-2023 Wolfram Research, Inc.
In[1]:= X := {x1, x2, x... | https://stackoverflow.com/questions/78638242/can-you-create-an-array-vector-of-arbitrary-length-in-mathematica-wolfram-langua | statistics, wolfram-mathematica, least-squares | 1,718,722,910 |
se_72296493 | stackoverflow | DATA_SCIENCE | Count the number of columns that have a value above a threshold | Count the number of columns that have a value above a threshold
Assuming I have the following toy model, df:
product customer1 customer2 customer3
apple 40 110 120
banana 200 150 180
coconut 10 5 25
daq 120 ... | https://stackoverflow.com/questions/72296493/count-the-number-of-columns-that-have-a-value-above-a-threshold | python, pandas, dataframe, count, statistics | 1,652,911,378 |
se_78809555 | stackoverflow | DATA_SCIENCE | profilepl() for complex hybrid Gibbs models | profilepl() for complex hybrid Gibbs models
I am having some trouble figuring out how to use profilepl() in the R spatstat package for more complicated hybrid Gibbs models. For example, I am trying to build a hybrid model with a hardcore and multiple Geyer interactions.
I have tried doing something like this:
RR <- c(... | https://stackoverflow.com/questions/78809555/profilepl-for-complex-hybrid-gibbs-models | statistics, spatial, spatstat | 1,722,305,208 |
se_78815076 | stackoverflow | DATA_SCIENCE | Why I get a termlabels error in nomogram, using the creator example? | Why I get a termlabels error in nomogram, using the creator example?
library(rms)
n <- 1000 # define sample size
set.seed(17) # so can reproduce the results
d <- data.frame(age = rnorm(n, 50, 10),
blood.pressure = rnorm(n, 120, 15),
cholesterol = rnorm(n, 200, 25),
se... | https://stackoverflow.com/questions/78815076/why-i-get-a-termlabels-error-in-nomogram-using-the-creator-example | r, statistics, rms | 1,722,412,471 |
se_56362625 | stackoverflow | DATA_SCIENCE | Statistical significance on matplotlib / seaborn graph? | Statistical significance on matplotlib / seaborn graph?
I finished analyzing my data and want to show that they are statistically significant using the t-test_ind. However, I haven't found anything functional to show this other than what was referenced in (How does one insert statistical annotations (stars or p-values... | https://stackoverflow.com/questions/56362625/statistical-significance-on-matplotlib-seaborn-graph | python, matplotlib, statistics, seaborn | 1,559,139,179 |
se_78810393 | stackoverflow | DATA_SCIENCE | Finding quartile in Python given mean, std.dev | Finding quartile in Python given mean, std.dev
Given the mean and standard deviation of a normal distribution, how in Python can I determine the quartile of a given point?
E.g.:
mu = 0.7
sigma = 0.1
Which quartile is the value 0.75 in, with Python?
I'm after the quartile itself, not the quartile bounds - i.e. a func... | https://stackoverflow.com/questions/78810393/finding-quartile-in-python-given-mean-std-dev | python, statistics | 1,722,325,738 |
se_77581726 | stackoverflow | DATA_SCIENCE | Python Dunn Post Hoc Test same p-values | Python Dunn Post Hoc Test same p-values
I'm learning statistics and while playing with post hoc tests, I noticed that Dunn's test returns the same p-value twice. I tried a different data set and the error repeated itself.
import pandas as pd
from scipy.stats import kruskal
from scikit_posthocs import posthoc_dunn
dat... | https://stackoverflow.com/questions/77581726/python-dunn-post-hoc-test-same-p-values | python, python-3.x, statistics, dunn.test | 1,701,378,623 |
se_78800854 | stackoverflow | DATA_SCIENCE | Comparison of temperature matrix - statistical result not practical reality? | Comparison of temperature matrix - statistical result not practical reality?
I have the following issue: I want to compare thermal pictures (data is present as a big Matrix/ each Pixel one value) in python and decide weather they are different. What statistical approaches are relevant? How do I proceed to find a good ... | https://stackoverflow.com/questions/78800854/comparison-of-temperature-matrix-statistical-result-not-practical-reality | image-processing, statistics, computer-vision, statistical-test, image-comparison | 1,722,067,359 |
se_63178836 | stackoverflow | DATA_SCIENCE | Scipy.stats gaussian_kde to resample from conditional distribution | Scipy.stats gaussian_kde to resample from conditional distribution
I am using gaussian_kde from scipy.stats to fit a joint PDF from a multivariate data on, let's say, X and Y.
Now I want to resample from this PDF conditionally on a value of X. For example, once my X=x, generate Y from its conditional distribution.
Let... | https://stackoverflow.com/questions/63178836/scipy-stats-gaussian-kde-to-resample-from-conditional-distribution | python, scipy, statistics, scipy.stats | 1,596,132,165 |
se_29108612 | stackoverflow | DATA_SCIENCE | Python package :MLE for Dirichlet distribution | Python package :MLE for Dirichlet distribution
I was wondering if someone knew about a python package that implements MLE to estimate parameters of a Dirichlet distribution. | https://stackoverflow.com/questions/29108612/python-package-mle-for-dirichlet-distribution | python, statistics, mle, dirichlet | 1,426,622,440 |
se_12412895 | stackoverflow | DATA_SCIENCE | How to calculate probability in a normal distribution given mean & standard deviation? | How to calculate probability in a normal distribution given mean & standard deviation?
How to calculate probability in normal distribution given mean, std in Python? I can always explicitly code my own function according to the definition like the OP in this question did: Calculating Probability of a Random Variab... | https://stackoverflow.com/questions/12412895/how-to-calculate-probability-in-a-normal-distribution-given-mean-standard-devi | python, statistics, scipy, probability | 1,347,562,414 |
se_67522805 | stackoverflow | DATA_SCIENCE | Is the Epanechnikov kernel really computationally more efficient that the Gaussian kernel? | Is the Epanechnikov kernel really computationally more efficient that the Gaussian kernel?
I am implementing a function to estimate a kernel density estimation in the univariate and multivariate cases. For that matter I am using the Gaussian kernel and it works quite well even with massive datasets. Yet many people cl... | https://stackoverflow.com/questions/67522805/is-the-epanechnikov-kernel-really-computationally-more-efficient-that-the-gaussi | r, statistics, kernel-density | 1,620,923,422 |
se_53007569 | stackoverflow | DATA_SCIENCE | RabbitMQ Memory Usage | RabbitMQ Memory Usage
I'm currently using the RabbitMQ (3.6.2-1) on Ubuntu(16.04) in production. Producers publish messages and consumers consume messages and everything works correctly but sometimes RabbitMQ doesn't release memory and it touchs max memory and producers can not publish message into empty queues so I h... | https://stackoverflow.com/questions/53007569/rabbitmq-memory-usage | database, memory-leaks, statistics, rabbitmq | 1,540,552,637 |
se_64734638 | stackoverflow | DATA_SCIENCE | Trying to rule out astrology but something is wrong | Trying to rule out astrology but something is wrong
I am trying to rule out a possible astrology effect on populations as a statistically insignificant effect but to no avail. I am using Pearson's Chi Square test on two distributions of sun signs from two different populations one of astronaut pilots and the other one... | https://stackoverflow.com/questions/64734638/trying-to-rule-out-astrology-but-something-is-wrong | statistics, chi-squared | 1,604,807,448 |
se_78703063 | stackoverflow | DATA_SCIENCE | Non nested loop to find mode in Java | Non nested loop to find mode in Java
I got an assignment that my professor has given me the code but I have to fill the answers in the assigned line to complete the code
I got with the fixed array in my problem
but when I rearrange position of the numbers in my array
My algorithm doesn’t work
here’s my code:
class Mai... | https://stackoverflow.com/questions/78703063/non-nested-loop-to-find-mode-in-java | java, arrays, statistics | 1,720,021,465 |
se_78777003 | stackoverflow | DATA_SCIENCE | Calculating the ARE of parameters | Calculating the ARE of parameters
I have the following code:
import numpy as np
import matplotlib.pyplot as plt
from scipy import integrate, optimize
import random
def dose(t, y, b, s, c, p, d):
target, infectious, virus = y
return np.array([
-b * target * virus,
b * target * virus - s * infectious,
... | https://stackoverflow.com/questions/78777003/calculating-the-are-of-parameters | python, numpy, matplotlib, statistics, average | 1,721,624,470 |
se_66810587 | stackoverflow | DATA_SCIENCE | Python random library: Simulating from Pareto distribution (using shape & scale params) | Python random library: Simulating from Pareto distribution (using shape & scale params)
According to the Python docs, random.paretovariate(alpha) simulates from the Pareto distribution where alpha is the shape parameter. But the Pareto distribution takes both a shape and scale parameter.
How can I simulate from th... | https://stackoverflow.com/questions/66810587/python-random-library-simulating-from-pareto-distribution-using-shape-scale | python, statistics | 1,616,728,909 |
se_78764467 | stackoverflow | DATA_SCIENCE | How to deal with word counts of zero when calculating Pointwise Mutual Information (PMI) for word cooccurrences in Natural Language Processing | How to deal with word counts of zero when calculating Pointwise Mutual Information (PMI) for word cooccurrences in Natural Language Processing
I have a co-occurrence matrix of words in a text (two words x and y are considered co-occurring, if they both occur in a context window of w words). I want to calculate the Poi... | https://stackoverflow.com/questions/78764467/how-to-deal-with-word-counts-of-zero-when-calculating-pointwise-mutual-informati | nlp, statistics, divide-by-zero | 1,721,306,161 |
se_39512260 | stackoverflow | DATA_SCIENCE | calculating Gini coefficient in Python/numpy | calculating Gini coefficient in Python/numpy
i'm calculating Gini coefficient (similar to: Python - Gini coefficient calculation using Numpy) but i get an odd result. for a uniform distribution sampled from np.random.rand(), the Gini coefficient is 0.3 but I would have expected it to be close to 0 (perfect equality). ... | https://stackoverflow.com/questions/39512260/calculating-gini-coefficient-in-python-numpy | python, numpy, statistics | 1,473,945,981 |
se_11838187 | stackoverflow | DATA_SCIENCE | App to track which person in the conversation has spoken the most | App to track which person in the conversation has spoken the most
I got the idea of an app that could show you, after a telephone call, what percentage of the time you were speaking and what percentage of the time you're conversation partner was talking.
For this I had two conceptual approaches, and I was wondering w... | https://stackoverflow.com/questions/11838187/app-to-track-which-person-in-the-conversation-has-spoken-the-most | android, iphone, statistics | 1,344,303,392 |
se_2243591 | stackoverflow | DATA_SCIENCE | How to Clear down Query Execution Statistics in SQL Server 2005/2008 | How to Clear down Query Execution Statistics in SQL Server 2005/2008
Based on getting Query Execution Statistics using this extremely useful piece of SQL obtained from this post Most Executed Stored Procedure - Stack Overflow:
SELECT TOP 100
qt.TEXT AS 'SP Name',
SUBSTRING(qt.text, qs.statement_start_offset/2, ... | https://stackoverflow.com/questions/2243591/how-to-clear-down-query-execution-statistics-in-sql-server-2005-2008 | sql, sql-server, performance, statistics, sql-execution-plan | 1,265,882,123 |
se_63310903 | stackoverflow | DATA_SCIENCE | What are your top SAS PROCs for beginners? | What are your top SAS PROCs for beginners?
What procs are easy to learn and essential for SAS programming? I have learned several like proc print, sort, freq, format, univariate, anova, glm, import, transpose. What ones should I learn next? | https://stackoverflow.com/questions/63310903/what-are-your-top-sas-procs-for-beginners | sas, statistics | 1,596,849,225 |
se_78757696 | stackoverflow | DATA_SCIENCE | Python - Check if the last value in a sequence is relatively higher than the rest | Python - Check if the last value in a sequence is relatively higher than the rest
For a list of percentage data, I need to check if the last value (90.2) is somehow higher and somewhat "abnormal" than the rest of the data. Clearly it is in this sequence.
delivery_pct = [59.45, 55.2, 54.16, 66.57, 68.62, 64.19, 60.57, ... | https://stackoverflow.com/questions/78757696/python-check-if-the-last-value-in-a-sequence-is-relatively-higher-than-the-res | python, statistics | 1,721,192,064 |
se_15984221 | stackoverflow | DATA_SCIENCE | How to perform two-sample one-tailed t-test with numpy/scipy | How to perform two-sample one-tailed t-test with numpy/scipy
In R, it is possible to perform two-sample one-tailed t-test simply by using
> A = c(0.19826790, 1.36836629, 1.37950911, 1.46951540, 1.48197798, 0.07532846)
> B = c(0.6383447, 0.5271385, 1.7721380, 1.7817880)
> t.test(A, B, alternative="greater")
Welch... | https://stackoverflow.com/questions/15984221/how-to-perform-two-sample-one-tailed-t-test-with-numpy-scipy | python, scipy, statistics | 1,365,827,142 |
se_26534181 | stackoverflow | DATA_SCIENCE | Statsmodels OLS Regression: Log-likelihood, uses and interpretation | Statsmodels OLS Regression: Log-likelihood, uses and interpretation
I'm using python's statsmodels package to do linear regressions. Among the output of R^2, p, etc there is also "log-likelihood". In the docs this is described as "The value of the likelihood function of the fitted model." I've taken a look at the sour... | https://stackoverflow.com/questions/26534181/statsmodels-ols-regression-log-likelihood-uses-and-interpretation | python, statistics, statsmodels | 1,414,086,431 |
se_78743150 | stackoverflow | DATA_SCIENCE | How to check if a variable varies across timestamps or across samples | How to check if a variable varies across timestamps or across samples
Let's assume we have some time-series data where every person (sample) has measurements for 2 variables (Var1, Var2) for three timepoints. Following is a dummy representation of the data.
Is there a mathematical/statistical approach to quantify/dete... | https://stackoverflow.com/questions/78743150/how-to-check-if-a-variable-varies-across-timestamps-or-across-samples | math, statistics, variance, multivariate-time-series | 1,720,854,970 |
se_65631964 | stackoverflow | DATA_SCIENCE | Using R, how do I perform bonferroni type test to decide which areas have move coronavirus cases than expected after performing Chi-square test | Using R, how do I perform bonferroni type test to decide which areas have move coronavirus cases than expected after performing Chi-square test
Using R, I have to perform a test to test if the number of coronavirus cases is evenly distributed in some areas in respect to those areas populations and then if they are not... | https://stackoverflow.com/questions/65631964/using-r-how-do-i-perform-bonferroni-type-test-to-decide-which-areas-have-move-c | r, statistics, chi-squared, bonferroni | 1,610,120,119 |
se_15436702 | stackoverflow | DATA_SCIENCE | Estimate Cohen's d for effect size | Estimate Cohen's d for effect size
given two vectors:
x <- rnorm(10, 10, 1)
y <- rnorm(10, 5, 5)
How to calculate Cohen's d for effect size?
For example, I want to use the pwr package to estimate the power of a t-test with unequal variances and it requires Cohen's d. | https://stackoverflow.com/questions/15436702/estimate-cohens-d-for-effect-size | r, statistics | 1,363,362,739 |
se_78725061 | stackoverflow | DATA_SCIENCE | What does the attribute x_loadings_ represent? | What does the attribute x_loadings_ represent?
I'm doing a canonical correlation analysis using scikit-learn's CCA. After doing the usual steps and calling ca.x_loadings_, I see that I get values bigger than 1. How I intepret the explanation of what the attribute x_loadings_ should represent however, this contradicts ... | https://stackoverflow.com/questions/78725061/what-does-the-attribute-x-loadings-represent | python, scikit-learn, statistics | 1,720,520,956 |
se_78723370 | stackoverflow | DATA_SCIENCE | How do I correctly specify nesting in the sommer R package? | How do I correctly specify nesting in the sommer R package?
I accustomed to lme4 where it would be simply: (1|genotype/root_ID) but it's unclear to me looking through the documentation the appropriate way to do this in sommer.
mod1 <- mmer(Y ~ 1,
random= ~vsr(genotype,Gu=a) + genotype + genotype:root_ID,
... | https://stackoverflow.com/questions/78723370/how-do-i-correctly-specify-nesting-in-the-sommer-r-package | r, statistics, regression, mixed-models | 1,720,489,460 |
se_78722060 | stackoverflow | DATA_SCIENCE | Remove altitude "outliers" from a GPS track | Remove altitude "outliers" from a GPS track
I've recorded a bike track with a very noisy result for altitude (barometric sensor). I enhanced the altitude data using a digital elevation model. See example here:
However, crossing bridges or tunnels introduces "outliers" that do not accurately reflect the actu... | https://stackoverflow.com/questions/78722060/remove-altitude-outliers-from-a-gps-track | statistics, gps | 1,720,457,317 |
se_62220727 | stackoverflow | DATA_SCIENCE | Using pROC to make a ROC curve from existing data | Using pROC to make a ROC curve from existing data
I've already created a classifier and have run 3-fold cross-validation on the model, regenerated with several random seeds. I used thresholds at intervals of 0.1 and have already calculated the sensitivity and specificity for each threshold. My data from one seed looks... | https://stackoverflow.com/questions/62220727/using-proc-to-make-a-roc-curve-from-existing-data | r, statistics, cross-validation, proc-r-package | 1,591,377,083 |
se_50313114 | stackoverflow | DATA_SCIENCE | What is the entropy of an image and how is it calculated? | What is the entropy of an image and how is it calculated?
I have learnt that it is the randomness of the pixels. But please help with how this randomness is being calculated mathematically. And also how different images will have different entropy. | https://stackoverflow.com/questions/50313114/what-is-the-entropy-of-an-image-and-how-is-it-calculated | python, image-processing, statistics, entropy | 1,526,190,108 |
se_72657137 | stackoverflow | DATA_SCIENCE | Calculate percentage in a data frame R | Calculate percentage in a data frame R
I have a data frame of multiple columns. I want to create a new columns with the percentage. I don't have the correct output, any suggestions?
il.count.description elle.count.description un.count.description Words.count
5 1 5 ... | https://stackoverflow.com/questions/72657137/calculate-percentage-in-a-data-frame-r | r, statistics, percentage | 1,655,457,804 |
se_57368511 | stackoverflow | DATA_SCIENCE | How can I find the number of concordant/discordant pairs for a given cell in Google Sheets? | How can I find the number of concordant/discordant pairs for a given cell in Google Sheets?
I am trying to figure out the Kendall's Tau coefficient of two different rankings in google sheets, and doing so would require finding the number of concordant and discordant pairs for a given cell. The number of concordant pa... | https://stackoverflow.com/questions/57368511/how-can-i-find-the-number-of-concordant-discordant-pairs-for-a-given-cell-in-goo | algorithm, google-sheets, statistics, google-sheets-formula, array-formulas | 1,565,061,905 |
se_11978667 | stackoverflow | DATA_SCIENCE | Online algorithm for calculating standard deviation of counts | Online algorithm for calculating standard deviation of counts
Normally, I have a more technical problem but I will simplify it for you with an example of counting balls.
Assume I have balls of different colors and one index of an array (initialized to all 0's) reserved for each color. Every time I pick a ball, I incr... | https://stackoverflow.com/questions/11978667/online-algorithm-for-calculating-standard-deviation-of-counts | java, algorithm, statistics, standard-deviation, online-algorithm | 1,345,072,928 |
se_78682320 | stackoverflow | DATA_SCIENCE | Error in kruskal_test (coin) with Weighted Data: “Invalid Object Class 'IndependenceProblem’” | Error in kruskal_test (coin) with Weighted Data: “Invalid Object Class 'IndependenceProblem’”
I am trying to perform a weighted Kruskal-Wallis test for each group in a dataset, but I keep encountering the following error:
Error in kruskal_test: Error in validObject(.Object): invalid class “IndependenceProblem” obj... | https://stackoverflow.com/questions/78682320/error-in-kruskal-test-coin-with-weighted-data-invalid-object-class-independ | r, statistics, survey, weighted, kruskal-wallis | 1,719,575,985 |
se_66490402 | stackoverflow | DATA_SCIENCE | Which p-value thresholds for a two-sided 90% confidence interval? | Which p-value thresholds for a two-sided 90% confidence interval?
I'm running an A/B test, and I want to check for statistical significance with 90% confidence two-sided. I've calculated standard errors, z-scores and p-values.
I'm saying that I have significance when my p-value is lower than 0.1 and greater than 0.9. ... | https://stackoverflow.com/questions/66490402/which-p-value-thresholds-for-a-two-sided-90-confidence-interval | statistics, confidence-interval, p-value, ab-testing, significance | 1,614,938,373 |
se_78296077 | stackoverflow | DATA_SCIENCE | How to visualize a complex Bifactor SEM with Third-order Factor? | How to visualize a complex Bifactor SEM with Third-order Factor?
I'm working on visualizing a complex bifactor Structural Equation Modeling (SEM) in R with a third-order factor (AUTOREGULACION) and several nested factors.
I've run into issues with layout when trying to represent the model graphically using semPlot().... | https://stackoverflow.com/questions/78296077/how-to-visualize-a-complex-bifactor-sem-with-third-order-factor | r, statistics, r-lavaan, structural-equation-model | 1,712,636,249 |
se_24854965 | stackoverflow | DATA_SCIENCE | Create random numbers with left skewed probability distribution | Create random numbers with left skewed probability distribution
I would like to pick a number randomly between 1-100 such that the probability of getting numbers 60-100 is higher than 1-59.
I would like to have the probability to be a left-skewed distribution for numbers 1-100. That is to say, it has a long tail and... | https://stackoverflow.com/questions/24854965/create-random-numbers-with-left-skewed-probability-distribution | python, statistics | 1,405,890,667 |
se_78677413 | stackoverflow | DATA_SCIENCE | Why is my NMDS plot arch/horse shoe shaped? | Why is my NMDS plot arch/horse shoe shaped?
I have a dataset which contains monthly sampled zooplankton data. It is always for the same sampling site so not spatial, but over 10 years. I wanted to use an NMDS plot to see if the zooplankton community (during MArch, April and May) from 2014-2024 would be grouped into di... | https://stackoverflow.com/questions/78677413/why-is-my-nmds-plot-arch-horse-shoe-shaped | r, ggplot2, statistics | 1,719,488,687 |
se_14622773 | stackoverflow | DATA_SCIENCE | Missing values in MS Excel LINEST, TREND, LOGEST and GROWTH functions | Missing values in MS Excel LINEST, TREND, LOGEST and GROWTH functions
I'm using the GROWTH (or LINEST or TREND or LOGEST, all make the same trouble) function in Excel 2003. But there is a problem that if some data is missing, the function refuses to give result:
You can download the file here.
Is there any workaround... | https://stackoverflow.com/questions/14622773/missing-values-in-ms-excel-linest-trend-logest-and-growth-functions | excel, statistics, excel-2003, regression | 1,359,625,748 |
se_78673173 | stackoverflow | DATA_SCIENCE | What is happening to r-MASS 7.3_58.4 package? | What is happening to r-MASS 7.3_58.4 package?
Sometime ago, on one windows computer of mine, I have installed r-MASS 7.3_58.4 package using install.packages. I write a lot of code using it. My code runs on this computer.
Today, I try to reproduce my results on another Linux computer. Before doing so, I want to make su... | https://stackoverflow.com/questions/78673173/what-is-happening-to-r-mass-7-3-58-4-package | r, statistics, conda, mass | 1,719,413,596 |
se_69647645 | stackoverflow | DATA_SCIENCE | scipy - Generate many two-sample t statistics using bootstrap | scipy - Generate many two-sample t statistics using bootstrap
I have the following pandas.DataFrame stored in df:
female
income
0
23351.1
1
357.05
1
20385.2
0
12049.2
I want to use scipy.stats.bootstrap to calculate 1,000 t statistics comparing the mean income of men and women.
To generate a single t... | https://stackoverflow.com/questions/69647645/scipy-generate-many-two-sample-t-statistics-using-bootstrap | python, scipy, statistics | 1,634,739,216 |
se_78665714 | stackoverflow | DATA_SCIENCE | How to create rv_histogram from known probability density function values | How to create rv_histogram from known probability density function values
Let's say there is a distribution, and all what is known about the distribution is the value of its probability density function in a small range(e.g. from 0.0 to 0.001).
Then, I want to use statistical functions in scipy to describe the distrib... | https://stackoverflow.com/questions/78665714/how-to-create-rv-histogram-from-known-probability-density-function-values | python, numpy, math, scipy, statistics | 1,719,297,357 |
se_78663954 | stackoverflow | DATA_SCIENCE | Python: 3-sigma "anomaly" detector of order quantity and lines | Python: 3-sigma "anomaly" detector of order quantity and lines
I'm wanting to analyze transactional data from an e-commerce context, where the focus is on detecting atypical activities in order patterns. The data is grouped by a customer identifier, SoldTo, and for each group, we apply a straightforward stat... | https://stackoverflow.com/questions/78663954/python-3-sigma-anomaly-detector-of-order-quantity-and-lines | python, pandas, statistics | 1,719,251,540 |
se_78639918 | stackoverflow | DATA_SCIENCE | Single band multiple raster Exploratory Data Analysis (EDA) in R | Single band multiple raster Exploratory Data Analysis (EDA) in R
I have single band 764 weekly raster files from 2009 to present. Using these files, I want to make seasonal exploratory data analysis (EDA) according to corresponding years. I need to know how I can do that using particular tools in R programming.
I have... | https://stackoverflow.com/questions/78639918/single-band-multiple-raster-exploratory-data-analysis-eda-in-r | statistics, raster, spatial, summary | 1,718,751,277 |
se_78662478 | stackoverflow | DATA_SCIENCE | Compute statistical values out of a precounted list in Python | Compute statistical values out of a precounted list in Python
I have a dataframe of precounted data (shown below). Let's assume it's a "Do you like?" scale, where 4 people answered 1-Don't like at all, 10 people answer 2-Don't like and so on.
How can I compute the different statistical values? I want to compute the me... | https://stackoverflow.com/questions/78662478/compute-statistical-values-out-of-a-precounted-list-in-python | python, statistics | 1,719,232,482 |
se_14551610 | stackoverflow | DATA_SCIENCE | Getting values from kernel density estimation in R | Getting values from kernel density estimation in R
I am trying to get density estimates for the log of stock prices in R. I know I can plot it using plot(density(x)). However, I actually want values for the function.
I'm trying to implement the kernel density estimation formula. Here's what I have so far:
a <- re... | https://stackoverflow.com/questions/14551610/getting-values-from-kernel-density-estimation-in-r | r, statistics, kernel-density | 1,359,316,922 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.