PHP | Statistics Module

PHP Statistics Module


Hello folks! welcome back to a new edition of our tutorial on PHP. In this tutorial guide, we are going to be studying about the PHP Statistics Module.

List of Functions

The following is a table containing the list of PHP statistics functions.

Sr.NoFunction & Description
1

stats_absolute_deviation() function

The function can return absolute deviation of an array of values.

2

stats_cdf_beta() function

The function can calculate any one parameter of beta distribution given values for the others.

3

stats_cdf_binomial() function

The function can calculate any one parameter of binomial distribution given values for the others.

4

stats_cdf_cauchy() function

The function can calculate any one parameter of Cauchy distribution given values for the others.

5

stats_cdf_chisquare() function

The function can calculate any one parameter of chi-square distribution given values for the others.

6

stats_cdf_exponential() function

The function can calculate any one parameter of exponential distribution given values for the others.

7

stats_cdf_f() function

The function can calculate any one parameter of F distribution given values for the others.

8

stats_cdf_gamma() function

The function can calculate any one parameter of gamma distribution given values for the others.

9

stats_cdf_laplace() function

The function can calculate any one parameter of Laplace distribution given values for the others.

10

stats_cdf_logistic() function

The function can calculate any one parameter of logistic distribution given values for the others.

11

stats_cdf_negative_binomial() function

The function can calculate any one parameter of negative binomial distribution given values for the others.

12

stats_cdf_noncentral_chisquare() function

The function can calculate any one parameter of non-central chi-square distribution given values for the others.

13

stats_cdf_noncentral_f() function

The function can calculate any one parameter of non-central F distribution given values for the others.

14

stats_cdf_noncentral_t() function

The function can calculate any one parameter of non-central t-distribution given values for the others.

15

stats_cdf_normal() function

The function calculate any one parameter of normal distribution given values for the others.

16

stats_cdf_poisson() function

The function can calculate any one parameter of Poisson distribution given values for the others.

17

stats_cdf_t() function

The function can calculate any one parameter of t-distribution given values for the others.

18

stats_cdf_uniform() function

The function can calculate any one parameter of uniform distribution given values for the others.

19

stats_cdf_weibull() function

The function can calculate any one parameter of Weibull distribution given values for the others.

20

stats_covariance() function

The function can compute the covariance of two data sets.

21

stats_dens_beta() function

The function is probability density function of the beta distribution.

22

stats_dens_cauchy() function

The function is a probability density function of Cauchy distribution.

23

stats_dens_chisquare() function

The function is a probability density function of the chi-square distribution.

24

stats_dens_exponential() function

The function is a probability density function of the exponential distribution.

25

stats_dens_f() function

The function is a probability density function of the F distribution.

26

stats_dens_gamma() function

The function is a probability density function of the gamma distribution.

27

stats_dens_laplace() function

The function is a probability density function of the Laplace distribution.

28

stats_dens_logistic() function

The function is a probability density function of the logistic distribution.

29

stats_dens_normal() function

The function is a probability density function of the normal distribution.

30

stats_dens_pmf_binomial() function

The function is a probability mass function of the binomial distribution.

31

stats_dens_pmf_hypergeometric() function

The function is a probability mass function of the hypergeometric distribution.

32

stats_dens_pmf_negative_binomial() function

The function is a probability density function of negative binomial distribution.

33

stats_dens_pmf_poisson() function

The function is a probability mass function of the Poisson distribution.

34

stats_dens_t() function

The function is a probability density function of the t-distribution.

35

stats_dens_uniform() function

The function is a probability density function of the uniform distribution.

36

stats_dens_weibull() function

The function is a probability density function of the Weibull distribution.

37

stats_harmonic_mean() function

The function can return the harmonic mean of an array of values.

38

stats_kurtosis() function

The function can compute the kurtosis of the data in an array.

39

stats_rand_gen_beta() function

The function can generate a random deviate from the beta distribution.

40

stats_rand_gen_chisquare() function

The function can generate a random deviate from the chi-square distribution.

41

stats_rand_gen_exponential() function

The function can generate a random deviate from the exponential distribution.

42

stats_rand_gen_f() function

The function can generate a random deviate from the F distribution.

43

stats_rand_gen_funiform() function

The function can generate uniform float between low (exclusive) and high (exclusive).

44

stats_rand_gen_gamma() function

The function can generate a random deviate from the gamma distribution.

45

stats_rand_gen_ibinomial() function

The function can generate a random deviate from the binomial distribution.

46

stats_rand_gen_ibinomial_negative() function

The function can generate random deviate from the negative binomial distribution.

47

stats_rand_gen_int() function

The function can generate a random integer between 1 and 2147483562.

48

stats_rand_gen_ipoisson() function

The function can generate a single random deviate from a Poisson distribution.

49

stats_rand_gen_iuniform() function

The function can generate an integer uniformly distributed between LOW (inclusive) and HIGH (inclusive).

50

stats_rand_gen_noncentral_chisquare() function

The function can generate a random deviate from the non-central chi-square distribution.

51

stats_rand_gen_noncentral_f() function

The function can generate a random deviate from the non-central F distribution.

52

stats_rand_gen_noncentral_t() function

The function can generate a single random deviate from a non-central t-distribution.

53

stats_rand_gen_normal() function

The function can generate a single random deviate from a normal distribution.

54

stats_rand_gen_t() function

The function can generate a single random deviate from a t-distribution.

55

stats_rand_get_seeds() function

The function can get the seed values of random number generator.

56

stats_rand_phrase_to_seeds() function

The function can generate two seeds for the RGN random number generator.

57

stats_rand_ranf() function

The function can generate a random floating-point number between 0 and 1.

58

stats_rand_setall() function

The function can set seed values to the random generator.

59

stats_skew() function

The function can compute the skewness of the data in an array.

60

stats_standard_deviation() function

The function can return the standard deviation.

61

stats_stat_binomial_coef() function

The function can return a binomial coefficient.

62

stats_stat_correlation() function

The function can return the Pearson correlation coefficient of two data sets.

63

stats_stat_factorial() function

The function can return the factorial of an integer.

64

stats_stat_independent_t() function

The function can return the t-value from the independent two-sample t-test.

65

stats_stat_innerproduct() function

The function can return an inner product of two vectors.

66

stats_stat_paired_t() function

The function can return the t-value of the dependent t-test for paired samples.

67

stats_stat_percentile() function

The function can return the percentile value.

68

stats_stat_powersum() function

The function can return the power sum of a vector.

69

stats_variance() function

The function can return the variance.


In our subsequent tutorials, we are going to be discussing about the above listed built-in PHP Statistics functions.


Alright guys! This is where we are going to be rounding up for this tutorial post. In our next tutorial, we are going to be discussing about the PHP stats_absolute_deviation() Function.

Do feel free to ask your questions where necessary and we will attend to them as soon as possible. If this tutorial was helpful to you, you can use the share button to share this tutorial.

Follow us on our various social media platforms to stay updated with our latest tutorials. You can also subscribe to our newsletter in order to get our tutorials delivered directly to your emails.

Thanks for reading and bye for now.