# Questions tagged [scipy]

SciPy is a Python-based ecosystem of open-source software for mathematics, science, and engineering.

203 questions
Filter by
Sorted by
Tagged with
4 views

### What statistical significance test should I use in this situation with two variables?

I have two variables: Wind speed (MPH) and passing yards in the NFL. I want to test if wind speed has a statistically significant effect on a player's passing yards. I used independent t-test from ...
17 views

### SciPy Documentations outdated?

On web page: scipy.stats.skew https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.skew.html But when I try it:
16 views

### Beta rectangular distribution

I need to sample data from a beta rectangular distribution. As far as I know, this distribution is a mixture of the beta and uniform distribution. I am using Python and in particular SciPy. There is a ...
23 views

### How does scipy's Kruskal-Wallis compute its H-value?

My textbook states the following formula to calculate the H-value of the Kruskal-Wallis test (without tie ranks): Let's use this formula to compute H for a really simple example dataset: group 1 ...
32 views

### Am I doing it right conducting Mann–Whitney test in scipy?

I have a group of users. I comapre their behaviour before and after certain event. Here are distributions of the metric before and after event. Here are distrubutions ...
30 views

### Trouble optimizing Five Parameter Logistic (5PL) Standard Curve for ELISA data using Python

Cross-posted from Bioinformatics SE here. The program is used for regression of a bioassay standard curve, but the question I'm asking is statistical in nature. I am attempting to write a tool to be ...
45 views

### Fitting mixture of Gamma variate functions at once (with python)

I am trying to automate the fitting of a signal composed of several Gamma variate functions with some added noise. However, I face some troubles and I do not know how to deal with it. First I do not ...
32 views

### mismatch in sampling between t distribution and normal-inverse-gamma distribution

I am looking at equivalence of sampling between t distribution and normal-inverse-gamma (NIG) distribution in python. The results don't match, and I want to see if there's a mistake in how I am ...
21 views

### Scipy Kolmogorov Smirnov test

I wanted to know what is significance level (alpha) in scipy's Kolmogorov test. Here is a link to documentation page. I couldn't find anything in its documentation.
16 views

### t test and kde plot does not match

I cannot understand the results of scipy independent two samples tests on my my dataset. the results of the test as I understand it suggest there is a significant difference between the means of the ...
38 views

### Does scipy.stats.pearsonr() have assumption of continuous value?

Problem I have to calculate correlation between two variables, let's say, variable A and B. Variable A contains discrete values - "How many times a student has done a task?". Variable B contains ...
27 views

### What are the various ways I can use to find out correlations between multiple columns

I'm writing a program to find the relationship between Bitcoin and various Altcoins (ETH, XRP, LTC, TRON). I want to find out the best Altcoin or the best subset of Altcoins which can give a ...
46 views

### Two-sample KS test results vs distributions

WARNING : MAJOR UPDATE BELOW, I've made a mistake I am currently working on validating a predictive model that was made some years ago. In doing so, I am comparing the distribution of the Target ...
54 views

### Weird sample variance when creating a lognromal sample with pre-defined mean and variance [duplicate]

I have been working with lognormal distributions as a proposal distribution for some MCMC routines which require the proposal distribution to have some pre-defined sample mean and variance, $m$ and $v$...
34 views

### What is the reasoning behind the default eps value for the 'SLSQP' method in SciPy's minimize function? [closed]

From here: https://docs.scipy.org/doc/scipy/reference/optimize.minimize-slsqp.html#optimize-minimize-slsqp It says that the default value for the eps option is <...
57 views

### Generating synthetic data based on mean, skewness, standard deviation and autocorrelation

Given that I have the mean, standard deviation, skewness and autocorrelation, How do I generate 1000 years of random data based on the above parameters in python or Matlab? I know for example I can ...
17 views

### linear correlation in N-Dimensional sample

I've an N-dimensional sample linearly correlated to each other in pairs. That is, every event includes N variables, and every variable is a predictor to all the other (or, in other words, putting the ...
172 views

### Kolmogorov-Smirnov (ks_2samp) p-value not as expected - Wrong test or understanding?

Context I am using scipy's ks_samp in order to apply the Kolmogorov-Smirnov-test. The data I use is twofold: I have a dataset ...
29 views

### How do I statistically compare the readings from two different sensors? [duplicate]

I have temperature and humidity readings from two different sensors (located in the same geographical area). The data is logged every hour and I have data for more than a year, logged this way 2/1/...
33 views

### Comparing sensor data across multiple experiments

I have some questions about doing statistics on a series of sensor measurements. I have 12 series of data of sensor measurements (a force sensor, measuring at 10 Hz for 30 minutes). Each series ...
19 views

### Location and scale estimation for log-logistic in scipy

I have to estimate the location and scale parameters for a log-logistic or fisk distribution using scipy. The shape parameter is already defined and I would like to estimate loc and scale parameter ...
120 views

28 views

### Using ANOVA to judge Yes/Sometimes/No questions ability to significantly predict a continuous variable?

I have a dataset that looks something like this: ...
187 views

### How to estimate the leafsize of the kd-tree?

The kd-tree implementation proposed by the scipy python libray asks for the value of the leafsize parameter that is to say the maximum number of points a node can hold. It is by default set to 10. ...
15 views

### Constructing an appropriate null hypothesis?

I have a collection of 20 2D surfaces embedded in 3D. The mean curvature of each surface has been sampled. The number of samples per surface varies from ~700,000 to ~20,000,000. The choice of ...
614 views

### Calculating P-value for multivariate normal distributions?

I'm given a set of 500 ($\sigma_i, \mu_i$) that define a 500-dimensional multivariate normal distribution, where each dimension is effectively independent from all the others. Given a 500-...
396 views

### How does scipy calculate the binomial CDF so fast?

I ran scipy.stats.binom.cdf(500006, 1000000, 0.5) and it took less than a milisecond. This is crazy as binomial CDF involves summing up a bunch of binomial coefficients. What approximation algorithm ...