# Questions tagged [scipy]

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

348 questions
Filter by
Sorted by
Tagged with
8 views

### using ranksum test within permutation test scipy

I am a bit confused with the definition of the permutation_test function provided by scipy. the following is what I wrote to calculate the p and null distribution ...
8 views

• 143
1 vote
43 views

### Using a binomial distribution to mathematically quantify a thought experiment from my friend (python)

My friend asked me the following question: ...
• 121
16 views

### Probability RV is min among several iid RVs [duplicate]

This question is inspired by this programming question. Suppose I have 3 RVs which are independent. $$X \sim N(25.5, 2.5)$$ $$Y \sim N(25.2, 3.5)$$ $$Z \sim N(24.9, 1.7)$$ I want to know what is the ...
• 1,138
1 vote
14 views

### Can the scale parameter produce a displacement?

I am doing some stuff with the SciPy's levy_stable distribution. The documentation says: ...
• 229
1 vote
332 views

### KS test for Poisson distribution data

I have a dataset comprising 1000 integers. It represented as follows: ...
• 155
881 views

### For Gamma distribution, use MLE or MoM?

For Gamma distribution, is it better to use MLE(maximum likelihood estimation) than MoM(method of moments) to estimate the shape and scale parameters? Also, in python SciPy, does gamma.fit use MLE? I'...
• 221
245 views

### Understanding usage of quantile function (norm.ppf), passing p vs 1-p

I was given a question related to the quantile function using scipy.stats.norm.ppf, along with its solution - which I don't understand. I'm changing the question ...
• 350
1 vote
238 views

### Paired t-test (one-tail) in Python using scipy.stats.ttest_rel

I am trying to show my hypothesis "H1: values in array a are less than in array b" Therefore, I understand that I need to reject "H0: values in array a are greater than or equal than in ...
• 11
59 views

### BIC to test good fitting of data to a model

I want to use the Bayesian Information Criterion in order to measure how well a gaussian and 0 order polynomial fit (using python), the one with the lowest BIC should then be the 'best fit' ? My ...
43 views

### How to esimate the mean and variance of data from a Pareto distribution

I have large sample of data that is approximately from a Pareto distribution with unknown parameters. Unfortunately the distribution is sufficiently heavy tailed that just taking the sample mean is ...
• 2,049
1 vote
51 views

### Constant p-value for all my tests

I am comparing the performance of two AI models across 15 data sets. One model performs heavily better than the other on all the performance metrics. When I perform a one-tailed Wilcoxon signed rank ...
1 vote
151 views

### Scipy: how to fit only a tail of distribution?

I have a list of floats data, representing tail, sampled from a Generalized Pareto distribution. I want to fit that tail and find shape/scale/loc parameters: ...
• 378
72 views

### How to model virus spread over distinct days?

Say I want to model a simple virus spreading over 45 people with a transmission probability of 5%. If I choose my population to be exclusively hospital workers, assuming they work every day, I could ...
• 261
1 vote
65 views

...
63 views

### Bayesian Inference: Conceptual question to get evidence

currently I am trying to implement a prototype for the following problem. I have data for machines, which sends me how long they have operated in seconds. Further, they have one sensor, which might ...
• 121
1 vote
394 views

### Python package for making a rank-deficient sparse matrix full rank

I am running a regression with a sparse rank-deficient matrix where many columns are correlated with others. At the moment, I remove all columns with a correlation over 0.8. The matrix has 12k columns ...
• 167
390 views

### Wasserstein distance (support; scipy implementation) [closed]

I want to use the Wasserstein distance from scipy.stats.wasserstein_distance to get a measure for the difference between two probability distribution. However, I do not understand how the support ...
• 123
1 vote
26 views

### Construct a symmetric confidence interval for the acceleration coefficient [closed]

A machine model is tested in the factory to check the acceleration coefficient. The experiment selects n machines of this model and measures the distance traveled by the machine in 38 seconds. It is ...
• 11
99 views

• 103