Questions tagged [scipy.stats]
297 questions
0
votes
1 answer
grass.script + scipy theilsen regression slope and intercept between values of two rasters
I need to compute TheilSen regression slope and intercept between values of two rasters in a GRASS GIS python script. The two rasters in this example (xtile and ytile) are both of the same dimensions 250x250 pixels and contain nodata (null)…

Tomas_IV
- 101
- 2
0
votes
1 answer
speed up a python wrapper for a scipy function
I need to create a fast python implementation of a simple wrapper for a scipy.stats function. This function only take vectors and not matrices. Wrappers below are two implementations, but both have similar run times.
Is it possible to speed any of…

agarg
- 318
- 3
- 11
0
votes
0 answers
How to apply K-S test for two discrete normalized probability distribution functions?
Imagine there is a spherical volume filled with black spheres of different sizes. In projection, there are some painted blue regions which are intersected by those spheres. The blue errorbars come from the probability distribution of the spheres…

Rebel
- 472
- 8
- 25
-1
votes
0 answers
pyinstaller doesn't work with sippy.stats
Let me explain the symptoms.
First, we imported the internal module of sipy.stats and proceeded with the pinstaller.
At first, the path was not found and turned on, but first, hidden import was carried out through Google, and as a result, the…
-1
votes
1 answer
Can I limit the decimal places on scipy .rvs method?
I'm trying to generate a random sample with scipy .rvs method. However I have to limit the decimal places of each value sampled to, for example, 4.
As an example:
n=1000
X_list=[]
for i in range(n):
X = laplace_asymmetric.rvs(loc=1,…

Jáder Vinícius
- 1
- 2
-1
votes
1 answer
Calculating R value for ANN predictions using stats in python
I have implemented ann for regression using tensorflow keras on a dataframe. I am trying to calculate different accuracy metrics for the predictions. Following is the part of the code I have used for calculating the accuracy metrics.
ypred =…

srinivas
- 301
- 1
- 9
-1
votes
1 answer
Using scipy.stats.bernoulli to simulate 1/3 probability
Our task is to recreate the famous fair coin flip (p=0.5) using only bernoulli.rvs() to generate function with uniform discrete distribution (outcomes = 0,1,2). Is it possible to do using only bernoulli function form scipy.stats?
-1
votes
2 answers
How to do Gamma Distribution in Python?
So when using excel there is a function for gamma distribution function over there, I'm doing =GAMMADIST(B2,$K$2,$K$3, TRUE) which is nothing but GAMMADIST(x, alpha, beta, cumulative), here B2 is nothing but my first value of data, K2 and K3 are my…

Akilesh
- 413
- 3
- 11
-1
votes
1 answer
t test getting nan output for both
Every t test I run outputs nan for both statistic and p value
I have checked my dataframes and they look fine.
Does anyone know what's happening?
Thanks in advance!
e_tr.groupby('Rest Periods')['Wages and Hours'].mean()
#t test
cat1 =…

Matthias Gallagher
- 475
- 1
- 7
- 20
-2
votes
1 answer
How do install Scipy version 1.11.1?
I am trying to pip install the latest version of scipy (1.11.1)so that I can access the CensoredData function. I've tried everything that I could think of but can't seem to install the package.
If for some reason I remain unable to install this…

user22407429
- 3
- 1
-2
votes
2 answers
equivalent of betadist of excel in python
what is the equivalent of =BETADIST(0.5,8,3) of excel in python ?
I have tried using scipy.stats and unable to achieve same results..

FalloutATS21
- 53
- 7
-2
votes
1 answer
Are there different ways of calculating y = mx + b in python?
I'm trying to find y = mx + b for a variety of different datasets. I've tried using:
slope_1, intercept_1 = linregress(values_1)
where values_1 is a Series type…

matrix_season
- 159
- 8