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_79347691 | stackoverflow | DATA_SCIENCE | How to fit GaussianMixture with Julia? | How to fit GaussianMixture with Julia?
How to fit simple 1 dimensional, diagonal gaussian mixture model?
Additionally, is it possible to require means to be zeroes?
using Distributions
using GaussianMixtures
# Generating sample
nmm = MixtureModel(Normal[
Normal(0.0, 1.0),
Normal(0.0, 2.0)
],
[0.5, 0.5]
)
sampl... | https://stackoverflow.com/questions/79347691/how-to-fit-gaussianmixture-with-julia | statistics, julia, gaussian-mixture-model | 1,736,581,509 |
se_58522327 | stackoverflow | DATA_SCIENCE | Entropy function for 3D point array in Matlab? | Entropy function for 3D point array in Matlab?
For an array in this format
A = [[1,2,3]; [4,5,6]; ... [x, y, z]];
How can I calculate the entropy of the points array in Matlab? | https://stackoverflow.com/questions/58522327/entropy-function-for-3d-point-array-in-matlab | arrays, matlab, statistics, data-analysis, entropy | 1,571,831,757 |
se_79336707 | stackoverflow | DATA_SCIENCE | Whitebox Workflow Random Forest Regression Fit Hyperparameter Tuning | Whitebox Workflow Random Forest Regression Fit Hyperparameter Tuning
I've been using Whitebox Workflow Random Forest Regression fit for my undergraduate thesis, a plugin from QGIS. The plugin creates a model from the input data such as Raster files, number of trees, Leafs, and splits then trains itself to achieve the ... | https://stackoverflow.com/questions/79336707/whitebox-workflow-random-forest-regression-fit-hyperparameter-tuning | statistics, random-forest, qgis, optuna | 1,736,267,527 |
se_2580933 | stackoverflow | DATA_SCIENCE | Cosmic Rays: what is the probability they will affect a program? | Cosmic Rays: what is the probability they will affect a program?
Once again I was in a design review, and encountered the claim that the probability of a particular scenario was "less than the risk of cosmic rays" affecting the program, and it occurred to me that I didn't have the faintest idea what that probability i... | https://stackoverflow.com/questions/2580933/cosmic-rays-what-is-the-probability-they-will-affect-a-program | statistics, physics, probability, error-detection, risk-analysis | 1,270,498,752 |
se_72401246 | stackoverflow | DATA_SCIENCE | Ryan Joiner Normality Test P-value | Ryan Joiner Normality Test P-value
i tried a lot to calculate the Ryan Joiner(RJ) P-Value. is there any method or formula to calculate RJ P-Value.
i found how to calculate RJ value but unable to find the manual calcuation part for RJ P-Value. Minitab is calculating by some startegy . i want to know that how calculate ... | https://stackoverflow.com/questions/72401246/ryan-joiner-normality-test-p-value | statistics, minitab | 1,653,632,502 |
se_78536889 | stackoverflow | DATA_SCIENCE | How to implement a mixture of gamma distributions in Python without Bayes'? | How to implement a mixture of gamma distributions in Python without Bayes'?
I am trying to create examples to compare and contrast Bayesian MCMC (e.g. HMC) with non-Bayesian equivalents. One of the cases I am finding difficult is creating a mixture of gamma distributions.
I first had some provisional success with... | https://stackoverflow.com/questions/78536889/how-to-implement-a-mixture-of-gamma-distributions-in-python-without-bayes | python, scipy, statistics, distribution | 1,716,773,794 |
se_79309303 | stackoverflow | DATA_SCIENCE | How to assess and analyze different clinical symptoms at the same time in R | How to assess and analyze different clinical symptoms at the same time in R
I am currently working on a study, in which we aim to compare the post-surgical complications of patients who underwent a specific type of brain surgery. In one of our analyses, we would like to compare the symptoms our patients (using the Cre... | https://stackoverflow.com/questions/79309303/how-to-assess-and-analyze-different-clinical-symptoms-at-the-same-time-in-r | r, merge, statistics, categorical-data | 1,735,210,967 |
se_37712731 | stackoverflow | DATA_SCIENCE | How to calculate credit score on the basis of credit history | How to calculate credit score on the basis of credit history
I have a dataset of credit history of certain population i need to calculate the credit score for each one of them.
What I'm planning is to calculate a probability on the basis of credit history variables then try to convert that probability into score. Is ... | https://stackoverflow.com/questions/37712731/how-to-calculate-credit-score-on-the-basis-of-credit-history | machine-learning, statistics, svm, decision-tree, quantitative-finance | 1,465,419,270 |
se_15767435 | stackoverflow | DATA_SCIENCE | Python implementation of statistical Sweep operator | Python implementation of statistical Sweep operator
I am learning some techniques for doing statistics with missing data from a book (Statistical Analysis with Missing Data by Little and Rubin). One particularly useful function for working with monotone non-response data is the Sweep Operator (details on page 148-151)... | https://stackoverflow.com/questions/15767435/python-implementation-of-statistical-sweep-operator | python, numpy, statistics | 1,364,914,746 |
se_79300729 | stackoverflow | DATA_SCIENCE | How to introduce a random error within a Bayesian count model? | How to introduce a random error within a Bayesian count model?
I am trying to model counts distribute across groups in JAGS, but I need to add a random effect for the presence of multiple counts from the same individual.
The model is taken from here
enter link description here
I am stuck, so I would greatly appreciate... | https://stackoverflow.com/questions/79300729/how-to-introduce-a-random-error-within-a-bayesian-count-model | count, statistics, distribution, hierarchical-data, jags | 1,734,858,964 |
se_79322081 | stackoverflow | DATA_SCIENCE | Larger-than-memory Survey Analysis with R+Arrow | Larger-than-memory Survey Analysis with R+Arrow
I'm currently trying to analyze data from the National Inpatient Sample (NIS). When combining multiple years worth of data, my files are just over 8 GB after processing/selecting relevant columns. I am using the Apache Arrow R package to load and process the data, which ... | https://stackoverflow.com/questions/79322081/larger-than-memory-survey-analysis-with-rarrow | r, statistics, large-data, survey, apache-arrow | 1,735,754,434 |
se_25009284 | stackoverflow | DATA_SCIENCE | How to plot ROC curve in Python | How to plot ROC curve in Python
I am trying to plot a ROC curve to evaluate the accuracy of a prediction model I developed in Python using logistic regression packages. I have computed the true positive rate as well as the false positive rate; however, I am unable to figure out how to plot these correctly using matplo... | https://stackoverflow.com/questions/25009284/how-to-plot-roc-curve-in-python | python, matplotlib, plot, statistics, roc | 1,406,614,849 |
se_6195335 | stackoverflow | DATA_SCIENCE | Linear Regression in Javascript | Linear Regression in Javascript
I want to do Least Squares Fitting in Javascript in a web browser.
Currently users enter data point information using HTML text inputs and then I grab that data with jQuery and graph it with Flot.
After the user had entered in their data points I would like to present them with a "lin... | https://stackoverflow.com/questions/6195335/linear-regression-in-javascript | javascript, jquery, statistics, flot, linear-regression | 1,306,891,711 |
se_35583302 | stackoverflow | DATA_SCIENCE | How can I calculate the variance of a list in python? | How can I calculate the variance of a list in python?
If I have a list like this:
results=[-14.82381293, -0.29423447, -13.56067979, -1.6288903, -0.31632439,
0.53459687, -1.34069996, -1.61042692, -4.03220519, -0.24332097]
I want to calculate the variance of this list in Python which is the average of the s... | https://stackoverflow.com/questions/35583302/how-can-i-calculate-the-variance-of-a-list-in-python | python, list, statistics, variance | 1,456,246,023 |
se_79237680 | stackoverflow | DATA_SCIENCE | How can I filter outliers in data that is manually recorded? | How can I filter outliers in data that is manually recorded?
Different people have to write down values on a certain type of parameter in order to fill out a table, and people obviously tend to write wrong. Sometimes, by a factor of 1000. This creates a lot of outliers that is not related to the data itself but instea... | https://stackoverflow.com/questions/79237680/how-can-i-filter-outliers-in-data-that-is-manually-recorded | statistics, boxplot, outliers, stochastic | 1,732,895,774 |
se_79268529 | stackoverflow | DATA_SCIENCE | vine copula parameters relation | vine copula parameters relation
I want to simulate from a trivariate vine copula where all the fitted pairs are frank copula with the same parameter =5, the question is Is it reasonable to simulate from vine copula that all pairs have the same parameter? and if not, what is the reasonable way to make all the paris hav... | https://stackoverflow.com/questions/79268529/vine-copula-parameters-relation | statistics, dependencies, copula | 1,733,839,278 |
se_1291152 | stackoverflow | DATA_SCIENCE | Simple way to calculate median with MySQL | Simple way to calculate median with MySQL
What's the simplest (and hopefully not too slow) way to calculate the median with MySQL? I've used AVG(x) for finding the mean, but I'm having a hard time finding a simple way of calculating the median. For now, I'm returning all the rows to PHP, doing a sort, and then picking... | https://stackoverflow.com/questions/1291152/simple-way-to-calculate-median-with-mysql | sql, mysql, statistics, median | 1,250,554,429 |
se_79293732 | stackoverflow | DATA_SCIENCE | Is this a mistake in R? To my understanding the output should be the same | Is this a mistake in R? To my understanding the output should be the same
Recently, I was comparing two statistics exercises and found out that different outputs for the same input in R is perhaps unintended behavior of R, right?
model1 <- lm(rent ~ area + bath, data = rent99)
coefficients1 <- coef(model1)
# Using a ... | https://stackoverflow.com/questions/79293732/is-this-a-mistake-in-r-to-my-understanding-the-output-should-be-the-same | r, statistics, linear-regression | 1,734,600,487 |
se_24023927 | stackoverflow | DATA_SCIENCE | Computing Standard Deviation without packages in Python? | Computing Standard Deviation without packages in Python?
I'm trying to figure out how to create a script which calculates a standard deviation for a file. As an example, say I DLed a csv with a list of values on it. I want to find the SD of these values by running a python program. We are not using numpy here! | https://stackoverflow.com/questions/24023927/computing-standard-deviation-without-packages-in-python | python-3.x, statistics, opencsv, standard-deviation | 1,401,825,715 |
se_76121724 | stackoverflow | DATA_SCIENCE | How to obtain confidence interval with scipy in exponential distribution? | How to obtain confidence interval with scipy in exponential distribution?
What is the correct way to obtain confidence interval with scipy in exponential distribution?
from scipy.stats import expon
conf_int = scipy.stats.expon.ttfs(0.95, loc=0, scale=1) | https://stackoverflow.com/questions/76121724/how-to-obtain-confidence-interval-with-scipy-in-exponential-distribution | python, scipy, statistics | 1,682,606,694 |
se_69995772 | stackoverflow | DATA_SCIENCE | GitLab API - get the overall # of lines of code | GitLab API - get the overall # of lines of code
I'm able to get the stats (additions, deletions, total) for each commit, however how can I get the overall #?
For example, if one MR has 30 commits, I need the net # of lines of code added\deleted which you can see in the top corner.
This # IS NOT the sum of all #'s per ... | https://stackoverflow.com/questions/69995772/gitlab-api-get-the-overall-of-lines-of-code | gitlab, statistics, gitlab-api | 1,637,095,138 |
se_13269191 | stackoverflow | DATA_SCIENCE | Adding google analytics code to all pages | Adding google analytics code to all pages
I want to add google analytics code to all pages in my website. Can I place google analytics code in a JS file and mention the JS file in the header? | https://stackoverflow.com/questions/13269191/adding-google-analytics-code-to-all-pages | google-analytics, statistics | 1,352,289,078 |
se_69018053 | stackoverflow | DATA_SCIENCE | How can I create a normal distributed set of data in R? | How can I create a normal distributed set of data in R?
I'm a newbie in statistics and I'm studying R.
I decided to do this exercise to pratice some analysis with an original dataset.
This is the issue: I want to create a datset of let's say 100 subjects and for each one of them I have a test score.
This test score h... | https://stackoverflow.com/questions/69018053/how-can-i-create-a-normal-distributed-set-of-data-in-r | r, statistics, normal-distribution | 1,630,516,226 |
se_79250609 | stackoverflow | DATA_SCIENCE | Mean and median of distribution given numpy histogram | Mean and median of distribution given numpy histogram
Suppose you have a numpy histogram computed from some data (which you don't have access to), so you only know bins and counts. Is there an efficient way of computing the mean and median of the distribution described by the histogram? | https://stackoverflow.com/questions/79250609/mean-and-median-of-distribution-given-numpy-histogram | numpy, statistics, histogram | 1,733,305,723 |
se_79217533 | stackoverflow | DATA_SCIENCE | Random Effects v.s. Random Design Matrix | Random Effects v.s. Random Design Matrix
It is commonly explained that a random effect is used when the values of the variable associated with the random effect are drawn from a population, such as schools in the sample out of schools in the entire country, while a fixed effect is used when the values of the associate... | https://stackoverflow.com/questions/79217533/random-effects-v-s-random-design-matrix | statistics, regression, random-effects | 1,732,354,382 |
se_79245428 | stackoverflow | DATA_SCIENCE | How can I calculate mean, standard deviation etc. over groups in QlikView? | How can I calculate mean, standard deviation etc. over groups in QlikView?
I have a sheet with two columns (MONTH and NAME) and I can easily make a table of names by month, setting Dimension = MONTH and Expression = COUNT(NAME).
Now I want to calculate mean and standard deviation of names for month (i.e. over the rows... | https://stackoverflow.com/questions/79245428/how-can-i-calculate-mean-standard-deviation-etc-over-groups-in-qlikview | statistics, qlikview | 1,733,169,321 |
se_79245770 | stackoverflow | DATA_SCIENCE | Where is scipy.stats.dirichlet_multinomial.rvs? | Where is scipy.stats.dirichlet_multinomial.rvs?
I wanted to draw samples from a Dirichlet-multinomial distribution using SciPy. Unfortunately it seems that scipy.stats.dirichlet_multinomial does not define the rvs method that other distributions use to generate random samples.
I think this would be equivalent to the f... | https://stackoverflow.com/questions/79245770/where-is-scipy-stats-dirichlet-multinomial-rvs | python, scipy, statistics | 1,733,178,351 |
se_79238145 | stackoverflow | DATA_SCIENCE | How calculate in Excel statistical functions for dependent variables where the independent variable is in a specific range? | How calculate in Excel statistical functions for dependent variables where the independent variable is in a specific range?
I have an independent variable (say, time of day) in an Excel column and a dependent variable in another. I want to calculate statistical functions for those dependent data, where the independent... | https://stackoverflow.com/questions/79238145/how-calculate-in-excel-statistical-functions-for-dependent-variables-where-the-i | excel, statistics | 1,732,907,497 |
se_79177153 | stackoverflow | DATA_SCIENCE | How to Retrieve ISAPI Endpoints for DS-K1T343 Hikvision Face ID Terminal and Fetch Today's Attendance Statistics? | How to Retrieve ISAPI Endpoints for DS-K1T343 Hikvision Face ID Terminal and Fetch Today's Attendance Statistics?
I'm working with a Hikvision DS-K1T343 Face ID Terminal and need to integrate it with a software system. Specifically, I want to know how to access the ISAPI endpoints that are supported by this model.... | https://stackoverflow.com/questions/79177153/how-to-retrieve-isapi-endpoints-for-ds-k1t343-hikvision-face-id-terminal-and-fet | python, statistics, face-recognition, time-and-attendance, hikvision | 1,731,318,640 |
se_79231933 | stackoverflow | DATA_SCIENCE | Error in get_records() function from the getSpatialData library | Error in get_records() function from the getSpatialData library
I am encountering an issue with the get_records() function from the getSpatialData package in R. The error message states: Argument 'products' must be a character containing at least one element.
It seems that the function requires the products argument t... | https://stackoverflow.com/questions/79231933/error-in-get-records-function-from-the-getspatialdata-library | r, statistics, spatial | 1,732,743,011 |
se_61742128 | stackoverflow | DATA_SCIENCE | Testing the CAPM using the Fama-MacBeth (1973) Approach | Testing the CAPM using the Fama-MacBeth (1973) Approach
I need to conduct the Fama-MacBeth (FM) procedure for my thesis to test the ability of the six-factor model to predict future expected returns. In univariate regressions of expected excess returns on the market excess return, both average intercept and slope coef... | https://stackoverflow.com/questions/61742128/testing-the-capm-using-the-fama-macbeth-1973-approach | statistics, regression, finance, quantitative-finance | 1,589,246,245 |
se_51410033 | stackoverflow | DATA_SCIENCE | What is the definition of the terms SPATIAL and TEMPORAL in terms of statistics, data science or machine learning | What is the definition of the terms SPATIAL and TEMPORAL in terms of statistics, data science or machine learning
What is the exact definition of spatial and temporal? I saw in many places people use these two terms, e.g., spatial vector, temporal vector, temporal factor, spatial location.
I was searching in StackOve... | https://stackoverflow.com/questions/51410033/what-is-the-definition-of-the-terms-spatial-and-temporal-in-terms-of-statistics | machine-learning, statistics, spatial, data-science, temporal | 1,531,943,573 |
se_71879305 | stackoverflow | DATA_SCIENCE | what is traditional additive models and the differences between these models and machine learning models? | what is traditional additive models and the differences between these models and machine learning models?
I read a SCI(PMID: 32437368) in the paper it said
Current stroke risk assessment tools presume the impact of risk factors is linear and cumulative. However, both novel risk factors and their interplay influencing... | https://stackoverflow.com/questions/71879305/what-is-traditional-additive-models-and-the-differences-between-these-models-and | machine-learning, statistics | 1,649,988,164 |
se_79224395 | stackoverflow | DATA_SCIENCE | Statistical learning confusion table variable | Statistical learning confusion table variable
I am getting an extra variable in my confusion table, not sure where it's coming from.
The Dataset 'Default' has the following columns: default, student, income, balance
The variable 'default' has two values: 'Yes' and 'No'
import numpy as np
import pandas as pd
import mat... | https://stackoverflow.com/questions/79224395/statistical-learning-confusion-table-variable | python, numpy, machine-learning, statistics, statsmodels | 1,732,563,327 |
se_79191628 | stackoverflow | DATA_SCIENCE | How to check if my spectrum has one symmetrical peak, that is, Gaussian | How to check if my spectrum has one symmetrical peak, that is, Gaussian
For example, there are 2 spectra:
Spectrum 15 has a peak which is near-symmetrical, and has a near-Gaussian shape, so that it is a signal
Spectrum 371 has no peak at all and should be treated as noise
I know I can make a Gaussian fit to every spec... | https://stackoverflow.com/questions/79191628/how-to-check-if-my-spectrum-has-one-symmetrical-peak-that-is-gaussian | python, statistics, signal-processing | 1,731,660,303 |
se_29289500 | stackoverflow | DATA_SCIENCE | Julia mapslices function equivalent in Python | Julia mapslices function equivalent in Python
I'm trying to find if there's a convenient equivalent to mapslices function from the Julia language to Python. Here's the line I'm trying to convert:
line_center = float64(mapslices(x->sum(x.^4.*[1:length(x)])./sum(x.^4),no_background,1)[:]) | https://stackoverflow.com/questions/29289500/julia-mapslices-function-equivalent-in-python | python, numpy, statistics, julia | 1,427,406,363 |
se_79122059 | stackoverflow | DATA_SCIENCE | How to calculate a sample size for non inferiority test two samples? | How to calculate a sample size for non inferiority test two samples?
I have a test where I want to check whether the install rate of tests group is at least 70% of controls group. To do so I took the following function from Python libraries
alpha = 0.1
power = 0.80
p_A = 0.0056 # control group install rate
effec... | https://stackoverflow.com/questions/79122059/how-to-calculate-a-sample-size-for-non-inferiority-test-two-samples | statistics, stat, ab-testing | 1,729,775,471 |
se_79149073 | stackoverflow | DATA_SCIENCE | problem with automap interpolation after data cleaning | problem with automap interpolation after data cleaning
I want to perform spatial data interpolation on the original
grid (as defined by x and y variables) using the automap library (after cleaning the data with the depurate function from the paar library).
After fitting, I get the following warning message:
Warning me... | https://stackoverflow.com/questions/79149073/problem-with-automap-interpolation-after-data-cleaning | r, statistics, interpolation, spatial, automap | 1,730,486,262 |
se_8270981 | stackoverflow | DATA_SCIENCE | How to highlight specific x-value ranges | How to highlight specific x-value ranges
I'm making a visualization of historical stock data for a project, and I'd like to highlight regions of drops. For instance, when the stock is experiencing significant drawdown, I would like to highlight it with a red region.
Can I do this automatically, or will I have to dra... | https://stackoverflow.com/questions/8270981/how-to-highlight-specific-x-value-ranges | python, statistics, matplotlib | 1,322,233,761 |
se_79191086 | stackoverflow | DATA_SCIENCE | statsmodel glm and generalized linear model formula have inversed coefficient results | statsmodel glm and generalized linear model formula have inversed coefficient results
I am new to using statsmodel in python (and a lot of more generalized statistics in general), but I have a question regarding the difference between how sm.GLM and smf.glm calculate their results. From my understanding, as long as yo... | https://stackoverflow.com/questions/79191086/statsmodel-glm-and-generalized-linear-model-formula-have-inversed-coefficient-re | python, pandas, statistics, statsmodels | 1,731,644,555 |
se_79196787 | stackoverflow | DATA_SCIENCE | How is manual ANALYZE different from being scheduled by autovacuum | How is manual ANALYZE different from being scheduled by autovacuum
We encountered a situation where CPU usage hit 100% due to a frequently running query. The issue resolved after performing a manual ANALYZE on the table involved in the query. However, I noticed the following:
Auto-analyze ran at 11:46 UTC (as confirme... | https://stackoverflow.com/questions/79196787/how-is-manual-analyze-different-from-being-scheduled-by-autovacuum | postgresql, statistics, autovacuum | 1,731,832,489 |
se_72503110 | stackoverflow | DATA_SCIENCE | How to plot figure for KS test | How to plot figure for KS test
I have two arrays with different sizes I can easily find out the KS statistics using scipy.stats.ks_2samp. But how can I draw CDF like the picture? | https://stackoverflow.com/questions/72503110/how-to-plot-figure-for-ks-test | python, scipy, statistics, distribution, kolmogorov-smirnov | 1,654,376,369 |
se_79188419 | stackoverflow | DATA_SCIENCE | Numerical instability in forward-backward algorithm for Hidden Markov Models | Numerical instability in forward-backward algorithm for Hidden Markov Models
I am implementing the forward algorithm for Hidden Markov Models (see below for the algorithm). To prevent over/underflow, I work with log-probabilities instead, and use the log-sum-exp trick to compute each forward coefficient.
I plotted the... | https://stackoverflow.com/questions/79188419/numerical-instability-in-forward-backward-algorithm-for-hidden-markov-models | python, statistics, numerical-methods, hidden-markov-models | 1,731,581,255 |
se_28433931 | stackoverflow | DATA_SCIENCE | Matlab Image Histogram Analysis: how do I test for an underlying bimodal distribution? | Matlab Image Histogram Analysis: how do I test for an underlying bimodal distribution?
I am working with image processing in MATLAB. I have two different images whose histogram plots are as shown below.
Image 1:
and
Image 2:
I have multiple images like those and the only distinguishing(separating) features is t... | https://stackoverflow.com/questions/28433931/matlab-image-histogram-analysis-how-do-i-test-for-an-underlying-bimodal-distrib | matlab, image-processing, statistics, histogram, distribution | 1,423,577,938 |
se_79163487 | stackoverflow | DATA_SCIENCE | How to generate a sample with a given spearman coefficient | How to generate a sample with a given spearman coefficient
In order to create a dataset to test a statistical calculation package, I want to be able to generate a sample that is correlated to a reference sample with a given searman coefficient.
I managed to do it for the Pearson coefficient, but the fact that Spearman... | https://stackoverflow.com/questions/79163487/how-to-generate-a-sample-with-a-given-spearman-coefficient | python, statistics, correlation, sampling, pearson-correlation | 1,730,911,230 |
se_79172564 | stackoverflow | DATA_SCIENCE | MATLAB: Corr Function not working for Spearman | MATLAB: Corr Function not working for Spearman
The Code
Rm = corr(timeModel, 'Type', 'Spearman');
Rm
%First row of Rm contains the correlation coefficients between the values of avgExcTime and the expected execution times for all the possible values of KEY3:0
Rc = Rm(1,2:17);
%The entry of Rc with the highest positiv... | https://stackoverflow.com/questions/79172564/matlab-corr-function-not-working-for-spearman | matlab, statistics | 1,731,148,946 |
se_79174023 | stackoverflow | DATA_SCIENCE | Confidence intervals with scipy | Confidence intervals with scipy
I have an array of shape (n, timesteps), where n is the number of trials and timesteps is the length of each trial. Each value of this array denotes a stochastic measurement.
I would like to implement a generic function that computes a confidence interval for a given statistic (mean, me... | https://stackoverflow.com/questions/79174023/confidence-intervals-with-scipy | python, scipy, statistics, confidence-interval, scipy.stats | 1,731,204,752 |
se_25005344 | stackoverflow | DATA_SCIENCE | pgstattuple query performance | pgstattuple query performance
I am trying to build query that checks dead tuples, live tuples percent, free space etc. in all my users tables using pgstattuple extension. So, I came up with this query:
SELECT schemaname,
relname,
(pgstattuple(schemaname ||'.'||relname)).*
FROM pg_statio_user_tables;
pg_statio_use... | https://stackoverflow.com/questions/25005344/pgstattuple-query-performance | performance, postgresql, statistics, query-performance | 1,406,586,412 |
se_79161427 | stackoverflow | DATA_SCIENCE | Modelling extreme rainfall using the Maximum Entropy method in R | Modelling extreme rainfall using the Maximum Entropy method in R
I have a dataset with daily rainfall dataset from a meteorological station during the period of 2006 through 2021. The data is stored in a CSV file (here).
A demonstration of how it looks:
After importing this dataset I filter it to include only non-zer... | https://stackoverflow.com/questions/79161427/modelling-extreme-rainfall-using-the-maximum-entropy-method-in-r | r, optimization, statistics, mle, probability-distribution | 1,730,871,257 |
se_74909356 | stackoverflow | DATA_SCIENCE | Add Percentage to Grouping Variable in gtsummary Package | Add Percentage to Grouping Variable in gtsummary Package
I am in the process of creating gtsummary table based on the mortality status (the variable "fate") of the Bernard data included in the pubh package.
The issue I am facing is that I want to add the percentage of "Dead" and "Alive" next to their count.
But since ... | https://stackoverflow.com/questions/74909356/add-percentage-to-grouping-variable-in-gtsummary-package | r, dplyr, statistics, gtsummary | 1,671,903,788 |
se_7977742 | stackoverflow | DATA_SCIENCE | Two Factor ANOVA Errorbar plot in R | Two Factor ANOVA Errorbar plot in R
We're teaching a stats class for biology students and trying to use R as the computing and data visualization platform. As much as possible, we'd like to avoid using extra packages and doing anything terribly "fancy" in R; the focus of the course is on the statistics, not the progr... | https://stackoverflow.com/questions/7977742/two-factor-anova-errorbar-plot-in-r | r, statistics, ggplot2, anova, confidence-interval | 1,320,224,210 |
se_79159953 | stackoverflow | DATA_SCIENCE | Variable display format | Variable display format
Stata receives my commands for the justification of a string variable named make on the right (format make %18s) and left (format make %-18s). This reception results from the ‘properties’ table. Nevertheless, the change does not appear in the database. How can I make the format change (right or... | https://stackoverflow.com/questions/79159953/variable-display-format | statistics, format, stata, edit, justify | 1,730,824,530 |
se_79156072 | stackoverflow | DATA_SCIENCE | CDF of the sum of two random variables not giving the expected result | CDF of the sum of two random variables not giving the expected result
I'm trying to numerically calculate the CDF of the sum of two random variables and I'm having trouble replicating answers on StackOverflow.
This question CDF of a sum of independent random variables and this question Cumulative Distribution Function... | https://stackoverflow.com/questions/79156072/cdf-of-the-sum-of-two-random-variables-not-giving-the-expected-result | python, statistics, probability, cdf | 1,730,734,375 |
se_79152683 | stackoverflow | DATA_SCIENCE | Chi square test is always successful, what am I doing wrong? | Chi square test is always successful, what am I doing wrong?
I was applying the chi-square goodness of fit test to a big array of observed data and an array of theoretical data with a free parameter (in the form of a multiplier), to determine the value of the multiplier that produced the best fit between the two. Howe... | https://stackoverflow.com/questions/79152683/chi-square-test-is-always-successful-what-am-i-doing-wrong | python, statistics | 1,730,636,184 |
se_4807398 | stackoverflow | DATA_SCIENCE | How to generate distributions given, mean, SD, skew and kurtosis in R? | How to generate distributions given, mean, SD, skew and kurtosis in R?
Is it possible to generate distributions in R for which the Mean, SD, skew and kurtosis are known? So far it appears the best route would be to create random numbers and transform them accordingly.
If there is a package tailored to generating speci... | https://stackoverflow.com/questions/4807398/how-to-generate-distributions-given-mean-sd-skew-and-kurtosis-in-r | r, statistics, skew, frequency-distribution | 1,296,061,005 |
se_75556592 | stackoverflow | DATA_SCIENCE | How can I get the expression of the pdf of Y for y = f(x1, ... , xN) , knowing every distribution associated to X1, ... , XN? | How can I get the expression of the pdf of Y for y = f(x1, ... , xN) , knowing every distribution associated to X1, ... , XN?
Basically, the title says it all. I dispose of a function f that serves as logic to data fusion from the measures x1, ... , xN : I would like to, not using Monte Carlo or similar methods, analy... | https://stackoverflow.com/questions/75556592/how-can-i-get-the-expression-of-the-pdf-of-y-for-y-fx1-xn-knowing-e | matlab, statistics, probability-density, sensor-fusion | 1,677,241,810 |
se_79108506 | stackoverflow | DATA_SCIENCE | How to modify an array using numpy.where() based on a conditional statement? | How to modify an array using numpy.where() based on a conditional statement?
I am trying to use numpy to generate an array of 60 random numbers (either 0 or 1, i.e. a Bernoulli subset of the binomial). This first part of the code works fine as it generates 60 random (0 or 1 values based on a given probability).
Howeve... | https://stackoverflow.com/questions/79108506/how-to-modify-an-array-using-numpy-where-based-on-a-conditional-statement | python, numpy, statistics | 1,729,482,658 |
se_52064590 | stackoverflow | DATA_SCIENCE | How to add a standard error using cosinor2? | How to add a standard error using cosinor2?
I have been working with the cosinor2 package on R and I was wondering if there is way to add standard errors for the mesor amplitude and acrophase. It would auto generate on cosinor1 as a table with the data but doesn't do the same cosinor2. Is there a way to produce the er... | https://stackoverflow.com/questions/52064590/how-to-add-a-standard-error-using-cosinor2 | r, statistics, standard-error | 1,535,482,470 |
se_70389722 | stackoverflow | DATA_SCIENCE | Implementing Sn and Qn (Rousseeuw and Croux) for outlier detection in Postgres | Implementing Sn and Qn (Rousseeuw and Croux) for outlier detection in Postgres
I'm reviewing and experimenting with outlier flagging strategies, and keep running into references to Sn and Qn from Rousseeuw and Croux in Alternatives to the Median Absolute Deviation.
http://web.ipac.caltech.edu/staff/fmasci/home/astro_r... | https://stackoverflow.com/questions/70389722/implementing-sn-and-qn-rousseeuw-and-croux-for-outlier-detection-in-postgres | postgresql, statistics, outliers | 1,639,726,152 |
se_42040336 | stackoverflow | DATA_SCIENCE | Plotting Error bar in R | Plotting Error bar in R
I have the following dataset:
conf variable value
1 C1 T1 0.6578166
2 C2 T1 0.6729989
3 C3 T1 0.6629129
4 C4 T1 0.6602419
5 C5 T1 0.6951054
6 C1 T2 0.67... | https://stackoverflow.com/questions/42040336/plotting-error-bar-in-r | r, statistics, errorbar | 1,486,211,142 |
se_79133238 | stackoverflow | DATA_SCIENCE | How to get stat significance marks on a multiple boxplot in one graph? | How to get stat significance marks on a multiple boxplot in one graph?
I have generated multiple boxplots on one graph comparing three locations regarding three markers. I want to add statistical significance marks for each marker over all the locations. However, I don't wish to draw significance between markers.
libr... | https://stackoverflow.com/questions/79133238/how-to-get-stat-significance-marks-on-a-multiple-boxplot-in-one-graph | r, ggplot2, statistics, ggpubr, aesthetics | 1,730,115,991 |
se_79128784 | stackoverflow | DATA_SCIENCE | Right-skewed and Mesokurtic distribution, is this possible in a dataset? | Right-skewed and Mesokurtic distribution, is this possible in a dataset?
Example 1:
Kurtosis: leptokurtic
Skewness: right-skewed
Example 2:
Kurtosis: leptokurtic
Skewness: left-skewed
Example 3:
Kurtosis: platykurtic
Skewness: right-skewed
Example 4:
Kurtosis: platykurtic
Skewness: left-skewed
Example 5:
Kurtosis: mes... | https://stackoverflow.com/questions/79128784/right-skewed-and-mesokurtic-distribution-is-this-possible-in-a-dataset | python, dataframe, statistics, probability-density, kurtosis | 1,729,954,133 |
se_79127398 | stackoverflow | DATA_SCIENCE | Am I doing the t-test on wind vectors correctly? | Am I doing the t-test on wind vectors correctly?
I'm trying to create an wind anomaly plot and shade the regions that are statistically significant at the 95% level using the Student's t-test.
The anomaly plot is simple to do. The problem is that my current code for the t-test seems...wrong.
x1 = t_ds['wind'].mean(axi... | https://stackoverflow.com/questions/79127398/am-i-doing-the-t-test-on-wind-vectors-correctly | python, statistics, netcdf | 1,729,892,862 |
se_78852604 | stackoverflow | DATA_SCIENCE | BitBucket - get number of comments and time in review for a list of PRs | BitBucket - get number of comments and time in review for a list of PRs
I'm an engineering manager with the following thesis about pull requests in my team:
1. Long PRs take longer to review (disproportionate to their length in lines of code)
2. Long PRs receive less comments per line of code than shorter PRs
We're wo... | https://stackoverflow.com/questions/78852604/bitbucket-get-number-of-comments-and-time-in-review-for-a-list-of-prs | statistics, bitbucket, pull-request, bitbucket-api | 1,723,204,380 |
se_26823968 | stackoverflow | DATA_SCIENCE | how kurtosis is calculated in scipy? | how kurtosis is calculated in scipy?
I have this code to calculate kurtosis (http://mathworld.wolfram.com/Kurtosis.html) using my own code and I compare it to scipy.stats.kurtosis
a = array([ 1. , 2. , 2.5, 400. , 6. , 0. ])
#kurtosis (gives: 4.19886)
print (sum((a - np.mean(a)) ** 4)/len(a)) / np.std(... | https://stackoverflow.com/questions/26823968/how-kurtosis-is-calculated-in-scipy | python, numpy, statistics, scipy | 1,415,496,287 |
se_5453169 | stackoverflow | DATA_SCIENCE | How to manipulate a price series (indicator) oscillate around a Center Value? | How to manipulate a price series (indicator) oscillate around a Center Value?
I’m no expert programmer, but I’m attempting to change the way in which some technical indicators are displayed in a financial charting package called TradeStation (not that the specific charting supplier is relevant).
Here is the problem: ... | https://stackoverflow.com/questions/5453169/how-to-manipulate-a-price-series-indicator-oscillate-around-a-center-value | algorithm, statistics, language-agnostic, trading, tradestation | 1,301,267,990 |
se_79107086 | stackoverflow | DATA_SCIENCE | R data frame count consecutive days with condition = 0 | R data frame count consecutive days with condition = 0
I would like to count the maximum number of consecutive rows = 0 per year, for each column of the data frame.
I try this but it works for each column separately:
library(data.table)
data <- data.frame(YEAR = c(1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4),
... | https://stackoverflow.com/questions/79107086/r-data-frame-count-consecutive-days-with-condition-0 | r, dataframe, count, statistics, data.table | 1,729,429,096 |
se_79103743 | stackoverflow | DATA_SCIENCE | Computing 90th percentile manually vs function doesn't produce identical results, why? | Computing 90th percentile manually vs function doesn't produce identical results, why?
So, I didn't know originally that there was a percentile_cont function and I was trying to computer the 90th percentile of a number zeries by looking up the z-score (1.28155) and just doing the math. But I get ever more divergen... | https://stackoverflow.com/questions/79103743/computing-90th-percentile-manually-vs-function-doesnt-produce-identical-results | sql, oracle-database, statistics | 1,729,287,159 |
se_75090891 | stackoverflow | DATA_SCIENCE | Python GLM converges but R GLM doesn't? | Python GLM converges but R GLM doesn't?
I am trying to train an (identity link Poisson) GLM model on some data. I built what I believe to be equivalent models in R and Python. In R, the GLM fails to converge. In Python, the GLM does converge. Can anyone explain why this is the case?
Starting from the observati... | https://stackoverflow.com/questions/75090891/python-glm-converges-but-r-glm-doesnt | python, r, statistics | 1,673,489,675 |
se_60266879 | stackoverflow | DATA_SCIENCE | Can I arrange my study labels in a forest plot using study years after specifying the byvar to be something different? (Meta package-R) | Can I arrange my study labels in a forest plot using study years after specifying the byvar to be something different? (Meta package-R)
Can I arrange all my study labels within subgroups in my forest plot with the year of publication after specifying that I want subgroups divided by a certain variable?
Here is the co... | https://stackoverflow.com/questions/60266879/can-i-arrange-my-study-labels-in-a-forest-plot-using-study-years-after-specifyin | r, statistics, r-forestplot, metafor | 1,581,957,562 |
se_79101058 | stackoverflow | DATA_SCIENCE | Are probabilities correct in elements of toss in binomial distribution in numpy python? | Are probabilities correct in elements of toss in binomial distribution in numpy python?
I saw in many tutorials below code in numpy for Binomial Distribution:
x = random.binomial(n=10, p=0.5, size=10)
n - number of trials.
p - probability of occurrence of each trial (e.g. for toss of a coin 0.5 each).
size - The shap... | https://stackoverflow.com/questions/79101058/are-probabilities-correct-in-elements-of-toss-in-binomial-distribution-in-numpy | python, numpy, statistics | 1,729,237,170 |
se_9242907 | stackoverflow | DATA_SCIENCE | How do I generate normal cumulative distribution in Java? its inverse cdf? How about lognormal? | How do I generate normal cumulative distribution in Java? its inverse cdf? How about lognormal?
I am brand new to Java, second day! I want generate samples with normal distribution. I am using inverse transformation.
Basically, I want to find the inverse normal cumulative distribution, then find its inverse. And g... | https://stackoverflow.com/questions/9242907/how-do-i-generate-normal-cumulative-distribution-in-java-its-inverse-cdf-how | java, statistics, probability | 1,328,985,354 |
se_74743853 | stackoverflow | DATA_SCIENCE | How to access the ActiveMQ Classic statistics plugin in Python | How to access the ActiveMQ Classic statistics plugin in Python
I referred to the ActiveMQ Classic documentation to get statistics of broker/queues. This stats is needed to create some analysis. I tried as mentioned in the attached link but not able to fetch the stats with following code snippet. I see messages in Acti... | https://stackoverflow.com/questions/74743853/how-to-access-the-activemq-classic-statistics-plugin-in-python | python, statistics, activemq-classic | 1,670,592,867 |
se_58628952 | stackoverflow | DATA_SCIENCE | Using meta.summaries for confidence intervals from epi.2by2 | Using meta.summaries for confidence intervals from epi.2by2
I'm looking to get an average value based on a range of values each with associated error. I've found that meta.summaries from the rmeta package seems to be working pretty well, but the error I have on the input values is only upper and lower bounds, not a st... | https://stackoverflow.com/questions/58628952/using-meta-summaries-for-confidence-intervals-from-epi-2by2 | r, statistics | 1,572,449,905 |
se_79095143 | stackoverflow | DATA_SCIENCE | Render a DAG into a Jupyter notebook interactively? | Render a DAG into a Jupyter notebook interactively?
If you know how, great and thanks - please do tell! Auxiliary question, how do you define a default order such that the nodes are arranged vertically / any which way?
My current code:
`
import networkx as nx
import matplotlib.pyplot as plt
# Define the graph (nb onl... | https://stackoverflow.com/questions/79095143/render-a-dag-into-a-jupyter-notebook-interactively | python, math, statistics | 1,729,098,967 |
se_79093505 | stackoverflow | DATA_SCIENCE | How to calculate the rolling Slope and rolling R-squared value in pandas of last 5 periods? | How to calculate the rolling Slope and rolling R-squared value in pandas of last 5 periods?
I have 2 columns in my excel sheet. First is SL No which is serial number and second is Close column.
In excel, I could quickly calculate the Slope by using the slope function and then drag it down ( rolling )
Similarly I also ... | https://stackoverflow.com/questions/79093505/how-to-calculate-the-rolling-slope-and-rolling-r-squared-value-in-pandas-of-last | pandas, statistics | 1,729,072,596 |
se_79086802 | stackoverflow | DATA_SCIENCE | Monthly data to daily - cubic spline interpolation in Python with optimisation | Monthly data to daily - cubic spline interpolation in Python with optimisation
Working with some monthly data here, for example -
Month
Value
01/10/2024
100
01/11/2024
150
01/12/2024
400
now please keep in mind that the values are daily averages for the month in question.
The end goal is a DataFrame with... | https://stackoverflow.com/questions/79086802/monthly-data-to-daily-cubic-spline-interpolation-in-python-with-optimisation | python, optimization, statistics, interpolation | 1,728,920,006 |
se_13182017 | stackoverflow | DATA_SCIENCE | Git log --stat summary of branch | Git log --stat summary of branch
I would like to show how many changes (insertions+deletions) I made on a feature branch. Is there a way to get a summary of the git log --stat output for the changes between 2 commits (branch root / tip). | https://stackoverflow.com/questions/13182017/git-log-stat-summary-of-branch | git, logging, statistics, branch, stat | 1,351,789,431 |
se_79082779 | stackoverflow | DATA_SCIENCE | gmodels::fit.contrast equivalent in Python | gmodels::fit.contrast equivalent in Python
I would like to test for synergy between 2 drugs given to animals, and I measured the tumor growth at different time-points in 15 animals in each group.
I use the statistical test for Bliss independence synergy, which is a modified t-statistic derived from the principles of l... | https://stackoverflow.com/questions/79082779/gmodelsfit-contrast-equivalent-in-python | python, r, statistics, statsmodels, patsy | 1,728,810,070 |
se_79077293 | stackoverflow | DATA_SCIENCE | Understanding the permutation test | Understanding the permutation test
I'm attempting to optimize the performance of the permutation test implemented in scipy.stats. My dataset consists of 500,000 observations, each associated with 2,000 binary covariates. I've applied approximately 10,000 different filters to these observations, necessitating the compu... | https://stackoverflow.com/questions/79077293/understanding-the-permutation-test | numpy, statistics, statistics-bootstrap, cupy, scipy.stats | 1,728,634,131 |
se_79073790 | stackoverflow | DATA_SCIENCE | Threshold at chi2.cdf(), below of which it doesn’t warrant the use of computational resources | Threshold at chi2.cdf(), below of which it doesn’t warrant the use of computational resources
I need to run a chi-square test on my dataset to find the p-value. The obvious choice is to use chi2_contingency() and chi2.cdf() from scipy.stats. But the p-value = 5.723076338262742e-82 is so tiny that it takes 3 seconds j... | https://stackoverflow.com/questions/79073790/threshold-at-chi2-cdf-below-of-which-it-doesn-t-warrant-the-use-of-computatio | python, math, scipy, statistics | 1,728,553,954 |
se_20121087 | stackoverflow | DATA_SCIENCE | Performing Linear Discriminant Analysis (LDA) with Morphological Data | Performing Linear Discriminant Analysis (LDA) with Morphological Data
I have a bunch of morphological data which I collected using the package geomorph. These data look like this:
259 matrices (one file per individual) with x and y coordinates (in columns) of 20 landmarks.
[,1] [,2]
[1,] -0.2820... | https://stackoverflow.com/questions/20121087/performing-linear-discriminant-analysis-lda-with-morphological-data | r, arrays, statistics, pca, geo | 1,385,037,071 |
se_79068091 | stackoverflow | DATA_SCIENCE | What is a fast and statistically powerful way of heuristically removing duplicates from a set of (unordered) sets? | What is a fast and statistically powerful way of heuristically removing duplicates from a set of (unordered) sets?
I have an application where I (heuristically) create a large set of test candidates, which are themselves large sets of elements in no particular order. In order to not use the same test candidate twice, ... | https://stackoverflow.com/questions/79068091/what-is-a-fast-and-statistically-powerful-way-of-heuristically-removing-duplicat | algorithm, statistics, set | 1,728,431,500 |
se_79066431 | stackoverflow | DATA_SCIENCE | Why do theoretical quantiles from qqnorm differ from manual calculation for small datasets? | Why do theoretical quantiles from qqnorm differ from manual calculation for small datasets?
I'm working with the qqnorm function in R to generate theoretical quantiles from a dataset of integers. I expected the quantiles calculated by qqnorm and those calculated manually using the quantile formula to be identical for ... | https://stackoverflow.com/questions/79066431/why-do-theoretical-quantiles-from-qqnorm-differ-from-manual-calculation-for-smal | r, statistics, quantile, qq, qqplot | 1,728,397,139 |
se_79053452 | stackoverflow | DATA_SCIENCE | How to generate histogram distrbution of odds of this event happening? | How to generate histogram distrbution of odds of this event happening?
I am using R and want to make a distribution of an event happening. There is a 25% chance that this event happens. I want to flip sample this event 30 times. On average, 7.5x this event should occur. However, I want to plot a histogram of how many ... | https://stackoverflow.com/questions/79053452/how-to-generate-histogram-distrbution-of-odds-of-this-event-happening | r, statistics | 1,728,031,335 |
se_79044593 | stackoverflow | DATA_SCIENCE | Confusing behaviour of scipy.stats.ttest_ind | Confusing behaviour of scipy.stats.ttest_ind
I'm using (or trying to use scipy.stats.ttest_ind) like this:
from scipy.stats import ttest_ind, norm
def test_ttest_ind():
rng = np.random.default_rng(43)
rvs1 = stats.norm.rvs(loc=15, scale=10, size=500, random_state=rng)
rvs2 = stats.norm.rvs(loc=15, scale=... | https://stackoverflow.com/questions/79044593/confusing-behaviour-of-scipy-stats-ttest-ind | python, statistics, scipy.stats | 1,727,813,123 |
se_79050266 | stackoverflow | DATA_SCIENCE | Is it safe to set the statistics target to zero for numeric columns? | Is it safe to set the statistics target to zero for numeric columns?
I have some PostgreSQL tables with columns of type:
timestamp without time zone
interval
text
numeric
For example assume a table like:
CREATE TABLE IF NOT EXISTS table_foo(
"timestamp" timestamp without time zone NOT NULL,
granularity interva... | https://stackoverflow.com/questions/79050266/is-it-safe-to-set-the-statistics-target-to-zero-for-numeric-columns | postgresql, statistics, postgresql-12, postgresql-16 | 1,727,954,062 |
se_79047602 | stackoverflow | DATA_SCIENCE | Efficiently compute the diagonal of the inverse of a sparse matrix | Efficiently compute the diagonal of the inverse of a sparse matrix
In Python have a large NxN sparse matrix representing the precision matrix Q (inverse covariance matrix) of a multivariate Gaussian distribution. I am interested in obtaining the marginal variances of the model. These will be the elements on the diagon... | https://stackoverflow.com/questions/79047602/efficiently-compute-the-diagonal-of-the-inverse-of-a-sparse-matrix | python, statistics, sparse-matrix, matrix-inverse, r-inla | 1,727,884,928 |
se_10884668 | stackoverflow | DATA_SCIENCE | Two-sample Kolmogorov-Smirnov Test in Python Scipy | Two-sample Kolmogorov-Smirnov Test in Python Scipy
I can't figure out how to do a Two-sample KS test in Scipy.
After reading the documentation of scipy kstest, I can see how to test whether a distribution is identical to standard normal distribution
from scipy.stats import kstest
import numpy as np
x = np.random.norm... | https://stackoverflow.com/questions/10884668/two-sample-kolmogorov-smirnov-test-in-python-scipy | python, numpy, scipy, statistics, distribution | 1,338,827,137 |
se_79040124 | stackoverflow | DATA_SCIENCE | p-values for all pairs between two matrices to achieve matlab's corr function | p-values for all pairs between two matrices to achieve matlab's corr function
I have been trying to implement in Python (with numpy and scipy) this variant of Matlab's corr function, but it seems I cannot solve it by myself. What I need is to implement the alternative Matlab corr implementation:
[rho,pval] = corr(... | https://stackoverflow.com/questions/79040124/p-values-for-all-pairs-between-two-matrices-to-achieve-matlabs-corr-function | python, numpy, matlab, statistics | 1,727,711,639 |
se_45480894 | stackoverflow | DATA_SCIENCE | Which model to pick from K fold Cross Validation | Which model to pick from K fold Cross Validation
I was reading about cross validation and about how it it is used to select the best model and estimate parameters , I did not really understand the meaning of it.
Suppose I build a Linear regression model and go for a 10 fold cross validation, I think each of the 10 wi... | https://stackoverflow.com/questions/45480894/which-model-to-pick-from-k-fold-cross-validation | validation, machine-learning, statistics, cross-validation, statistics-bootstrap | 1,501,754,353 |
se_78868771 | stackoverflow | DATA_SCIENCE | Saving Filtered List to .CSV file in Python | Saving Filtered List to .CSV file in Python
I have a CSV file containing measurements of sample objects. I've been able to filter the list using Pandas and the Python statistics module. I'm trying to then exclude objects that are either less than 2 standard deviations or greater than 2 standard deviations from the mea... | https://stackoverflow.com/questions/78868771/saving-filtered-list-to-csv-file-in-python | python, list, filter, statistics, export-to-csv | 1,723,598,200 |
se_12581567 | stackoverflow | DATA_SCIENCE | Comparison of two regression model by RMSE and Correlation Coefficient | Comparison of two regression model by RMSE and Correlation Coefficient
I have two regression model one with Correlation Coefficient of 87 and RMSE of 0.045 and the other has Correlation Coefficient of 93 and RMSE of 0.055. Which of them is better model for prediction of future cases? OR which of Correlation Coefficien... | https://stackoverflow.com/questions/12581567/comparison-of-two-regression-model-by-rmse-and-correlation-coefficient | statistics, regression, model-comparison | 1,348,570,754 |
se_79028217 | stackoverflow | DATA_SCIENCE | What do the coefficients on correlated variables mean? | What do the coefficients on correlated variables mean?
The coefficients on uncorrelated variables denote the degree to which the unique information in them influences the final variable. But what do the coefficients on correlated variables mean - who is how much of a “tug-of-war”? (no math, please) | https://stackoverflow.com/questions/79028217/what-do-the-coefficients-on-correlated-variables-mean | machine-learning, statistics | 1,727,367,069 |
se_79017371 | stackoverflow | DATA_SCIENCE | Sampling angles on a sphere: From a general covariance matrix to concentration parameter | Sampling angles on a sphere: From a general covariance matrix to concentration parameter
I am trying to extract points on a sphere in python.
I have to localise event in the sky and produce a map using healpy.
During the test session I used the von Mises-Fisher since I assumed that variance for $'\theta'$ is the same ... | https://stackoverflow.com/questions/79017371/sampling-angles-on-a-sphere-from-a-general-covariance-matrix-to-concentration-p | python, statistics, gaussian | 1,727,161,716 |
se_9258639 | stackoverflow | DATA_SCIENCE | User Statistics in php | User Statistics in php
I am using Codeigniter for my current project.
The peoject is looks like a social platform,so i want to display users data on user admin panel.
I have the following types of domains for users.
http://site.com/page_name/
so page_name is a page of a particular user,so when that user logged in ... | https://stackoverflow.com/questions/9258639/user-statistics-in-php | php, codeigniter, statistics, analytics | 1,329,127,599 |
se_79008234 | stackoverflow | DATA_SCIENCE | Calculating a partial dependency plot with prediction intervals for an SAR model in R | Calculating a partial dependency plot with prediction intervals for an SAR model in R
I am working with a spatial autoregressive model in R. I would like to create a partial dependency plot of the effect of predictor variables on the outcome (holding everything else constant). With regular lm models, I would create ne... | https://stackoverflow.com/questions/79008234/calculating-a-partial-dependency-plot-with-prediction-intervals-for-an-sar-model | r, model, statistics, spatial | 1,726,865,473 |
se_79004403 | stackoverflow | DATA_SCIENCE | How to calculate the p-value of a two-tailed alternative hypothesis test using python? | How to calculate the p-value of a two-tailed alternative hypothesis test using python?
I thought that the two methods below would give the same result as they are equivalent, theoretically. However, they differ slightly in Python!
from scipy.stats import norm
# let's assume that our z-statistic = 3
z_score = 3
# met... | https://stackoverflow.com/questions/79004403/how-to-calculate-the-p-value-of-a-two-tailed-alternative-hypothesis-test-using-p | python, statistics, p-value, hypothesis-test, scipy.stats | 1,726,778,822 |
se_42922333 | stackoverflow | DATA_SCIENCE | Kurtosis interpretation | Kurtosis interpretation
For a set of data points I have found mean value is 2989.05,skewness is 26.67 and kurtosis is 1003.29.
Here it seems kurtosis is very high which I am not able to understand what it means.Can someone explain this. | https://stackoverflow.com/questions/42922333/kurtosis-interpretation | statistics, eda | 1,490,086,617 |
se_78993102 | stackoverflow | DATA_SCIENCE | R table1 package: Adjusted p-values in extra column | R table1 package: Adjusted p-values in extra column
Is there a way to apply a p-value adjustment on all p-values in the extra column? For by incorporating the p.adjust function somewhere? I am assuming that the pvalue function from the vignette is doing it's calculations per row, so it wouldn't make sense there. Is it... | https://stackoverflow.com/questions/78993102/r-table1-package-adjusted-p-values-in-extra-column | r, html-table, statistics, p-value, statistical-test | 1,726,560,305 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.