Skip to main content

Uma biblioteca para Mudar sua experiencia em estatistica no python

Project description

## estatbr Library

The “estatbr” library is a Python library for basic/advance statistical calculations. It provides a collection of functions for various statistical operations.

### Functions:

  1. media(args: Sequence[int | float]) -> float

    Calculates the mean (average) of a sequence of numbers.

  2. mediana(args: Sequence[int | float]) -> float

    Computes the median of a sequence of numbers.

  3. moda(args: Sequence[int | float])

    Calculates the mode(s) of a sequence of numbers.

  4. desvio_padrao(args: Sequence[int | float]) -> float

    Computes the standard deviation of a sequence of numbers.

  5. desvio_medio(args: Sequence[int | float]) -> float

    Calculates the mean absolute deviation of a sequence of numbers.

  6. variancia(args: Sequence[int | float]) -> float

    Computes the variance of a sequence of numbers.

  7. comparar(a: List[int | float], b: List[int | float]) -> float

    Compares two lists of numbers and returns a measure of similarity.

  8. media_ponderada(valores: List[int | float], pesos: List[int | float]) -> float

    Computes the weighted mean of a list of values using given weights.

  9. media_geometrica(args: Sequence[int | float]) -> float

    Calculates the geometric mean of a sequence of numbers.

  10. media_quadratica(args: Sequence[int | float]) -> float

    Computes the root mean square (quadratic mean) of a sequence of numbers.

  11. intervalo_medio(args: Sequence[int | float]) -> float

    Computes the midrange (average of the minimum and maximum) of a sequence of numbers.

  12. intervalo_medio_entre_dois_numeros(a, b) -> float

    Calculates the midpoint between two numbers, ‘a’ and ‘b’.

  13. amplitude(args: Sequence[int | float])

    Calculates the range (difference between maximum and minimum) of a sequence of numbers.

  14. quartis(args: Sequence[int | float])

    Computes the quartiles (Q1, Q2, Q3) of a sequence of numbers.

  15. amplitude_interquartil(args: Sequence[int | float])

    Calculates the interquartile range (IQR) of a sequence of numbers.

  16. coeficiente_correlacao(x, y)

    Calculates the Pearson correlation coefficient between two lists of values ‘x’ and ‘y’.

  17. regressao_linear(x: List[int | float], y: List[int | float])

    Performs linear regression on two lists of values ‘x’ and ‘y’ and returns the coefficients of the regression line.

  18. coeficiente_variacao(args: Sequence[int | float])

    Computes the coefficient of variation (CV) for a sequence of numbers.

  19. media_harmonica(args: Sequence[int | float])

    Calculates the harmonic mean of a sequence of numbers.

  20. distribuicao_frequencia(dados: List[int | float], num_classes)

    Constructs a frequency distribution table for a list of data.

  21. intervalo_confianca(dados: List[int | float], nivel_confianca)

    Computes the confidence interval for a list of data with a specified confidence level.

  22. coeficiente_assimetria(args: Sequence[int | float])

    Calculates the skewness (measure of asymmetry) of a sequence of numbers.

  23. curtose(args: Sequence[int | float])

    Computes the kurtosis (measure of the “tailedness”) of a sequence of numbers.

  24. coeficiente_correlacao_pearson(x: List[int | float], y: List[int | float])

    Calculates the Pearson correlation coefficient between two lists of values ‘x’ and ‘y’.

  25. teste_t(amostra1: Sequence[int | float], amostra2: Sequence[int | float])

    Performs a t-test to compare two samples and returns the t-statistic.

  26. teste_qui_quadrado(freq_obs, freq_esp)

    Performs a chi-squared test of independence between observed and expected frequencies in contingency tables.

  27. analise_variancia(args: Sequence[int | float])

    Performs an analysis of variance (ANOVA) on multiple groups of data and returns the F-statistic.

  28. teste_normalidade(amostra: List[int | float], alpha=0.05) -> float

    Performs a chi-squared goodness-of-fit test for normality on a sample of data.

  29. teste_homogeneidade(*grupos: Sequence[int | float], alpha=0.05)

    Performs a one-way analysis of variance (ANOVA) to test the equality of means across multiple groups.

These functions cover a wide range of statistical calculations and can be useful for various data analysis tasks. Please refer to the function descriptions for more details on their usage.

Please note that this library may raise exceptions if input data does not meet certain requirements, such as empty lists or different sample sizes for certain functions. Make sure to handle exceptions appropriately when using these functions in your code.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

estatbr-0.1.8.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

estatbr-0.1.8-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file estatbr-0.1.8.tar.gz.

File metadata

  • Download URL: estatbr-0.1.8.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for estatbr-0.1.8.tar.gz
Algorithm Hash digest
SHA256 8b8cf82f7ba276c6279ad5d4dacc76bdc8fe55870c0e721ce55dbc68e931baf5
MD5 9c57ff970f9d4db1d64712b540288373
BLAKE2b-256 fc1faee0e13f40494d0f3e4fbcc205a68baf6233351ee151e7aebf32d314f320

See more details on using hashes here.

File details

Details for the file estatbr-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: estatbr-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for estatbr-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 11e19a74490eb1c38afb44a73da7e099abfa59c75c278754072a8f0e960598f3
MD5 4a1fb4b675f3456a2bf49fc91c3ff724
BLAKE2b-256 8395daad0625a17fb5e7d4b8df3e63b081f0e3c553412936e6b3e06558a808fd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page