Tag: statistics

61 votes
13 answers
1.2K views
Calculating arithmetic mean (one type of average) in Python

Is there a built-in or standard library method in Python to calculate the arithmetic mean (one type of average

avatar
Juliane
0 1 0 9
asked 07 September, 2021
57 votes
30 answers
2.1K views
How to find the statistical mode?

In R, mean() and median() are standard functions which do what you'd expect. mode() tells you the intern

avatar
Corrin
0 1 0 9
asked 07 September, 2021
58 votes
9 answers
2.3K views
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

avatar
Dario
0 1 0 9
asked 07 September, 2021
55 votes
2 answers
2.6K views
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 scipy kstest

avatar
Chelsea
0 1 0 9
asked 07 September, 2021
63 votes
9 answers
634 views
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

avatar
Forrest
0 1 0 9
asked 07 September, 2021
56 votes
8 answers
788 views
How to calculate cumulative normal distribution?

I am looking for a function in Numpy or Scipy (or any rigorous Python library) that will give me the cumulativ

avatar
Wei
0 1 0 9
asked 07 September, 2021
56 votes
14 answers
1.5K views
Multiple linear regression in Python

I can't seem to find any python libraries that do multiple regression. The only things I find only do sim

avatar
Jeff
0 1 0 9
asked 07 September, 2021
51 votes
5 answers
1K views
Compute a confidence interval from sample data

I have sample data which I would like to compute a confidence interval for, assuming a normal distribution. I

avatar
Charis
0 1 0 9
asked 07 September, 2021
61 votes
10 answers
965 views
Fitting empirical distribution to theoretical ones with Scipy (Python)?

INTRODUCTION: I have a list of more than 30,000 integer values ranging from 0 to 47, inclusive, e.g.[0,0,0,0,.

avatar
Renaldo
0 1 0 9
asked 07 September, 2021
54 votes
17 answers
3.1K views
Calculating Pearson correlation and significance in Python

I am looking for a function that takes as input two lists, and returns the Pearson correlation, and the signif

avatar
Percy
0 1 0 9
asked 07 September, 2021