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:
media(args: Sequence[int | float]) -> float
Calculates the mean (average) of a sequence of numbers.
mediana(args: Sequence[int | float]) -> float
Computes the median of a sequence of numbers.
moda(args: Sequence[int | float])
Calculates the mode(s) of a sequence of numbers.
desvio_padrao(args: Sequence[int | float]) -> float
Computes the standard deviation of a sequence of numbers.
desvio_medio(args: Sequence[int | float]) -> float
Calculates the mean absolute deviation of a sequence of numbers.
variancia(args: Sequence[int | float]) -> float
Computes the variance of a sequence of numbers.
comparar(a: List[int | float], b: List[int | float]) -> float
Compares two lists of numbers and returns a measure of similarity.
media_ponderada(valores: List[int | float], pesos: List[int | float]) -> float
Computes the weighted mean of a list of values using given weights.
media_geometrica(args: Sequence[int | float]) -> float
Calculates the geometric mean of a sequence of numbers.
media_quadratica(args: Sequence[int | float]) -> float
Computes the root mean square (quadratic mean) of a sequence of numbers.
intervalo_medio(args: Sequence[int | float]) -> float
Computes the midrange (average of the minimum and maximum) of a sequence of numbers.
intervalo_medio_entre_dois_numeros(a, b) -> float
Calculates the midpoint between two numbers, ‘a’ and ‘b’.
amplitude(args: Sequence[int | float])
Calculates the range (difference between maximum and minimum) of a sequence of numbers.
quartis(args: Sequence[int | float])
Computes the quartiles (Q1, Q2, Q3) of a sequence of numbers.
amplitude_interquartil(args: Sequence[int | float])
Calculates the interquartile range (IQR) of a sequence of numbers.
coeficiente_correlacao(x, y)
Calculates the Pearson correlation coefficient between two lists of values ‘x’ and ‘y’.
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.
coeficiente_variacao(args: Sequence[int | float])
Computes the coefficient of variation (CV) for a sequence of numbers.
media_harmonica(args: Sequence[int | float])
Calculates the harmonic mean of a sequence of numbers.
distribuicao_frequencia(dados: List[int | float], num_classes)
Constructs a frequency distribution table for a list of data.
intervalo_confianca(dados: List[int | float], nivel_confianca)
Computes the confidence interval for a list of data with a specified confidence level.
coeficiente_assimetria(args: Sequence[int | float])
Calculates the skewness (measure of asymmetry) of a sequence of numbers.
curtose(args: Sequence[int | float])
Computes the kurtosis (measure of the “tailedness”) of a sequence of numbers.
coeficiente_correlacao_pearson(x: List[int | float], y: List[int | float])
Calculates the Pearson correlation coefficient between two lists of values ‘x’ and ‘y’.
teste_t(amostra1: Sequence[int | float], amostra2: Sequence[int | float])
Performs a t-test to compare two samples and returns the t-statistic.
teste_qui_quadrado(freq_obs, freq_esp)
Performs a chi-squared test of independence between observed and expected frequencies in contingency tables.
analise_variancia(args: Sequence[int | float])
Performs an analysis of variance (ANOVA) on multiple groups of data and returns the F-statistic.
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.
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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b8cf82f7ba276c6279ad5d4dacc76bdc8fe55870c0e721ce55dbc68e931baf5 |
|
MD5 | 9c57ff970f9d4db1d64712b540288373 |
|
BLAKE2b-256 | fc1faee0e13f40494d0f3e4fbcc205a68baf6233351ee151e7aebf32d314f320 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11e19a74490eb1c38afb44a73da7e099abfa59c75c278754072a8f0e960598f3 |
|
MD5 | 4a1fb4b675f3456a2bf49fc91c3ff724 |
|
BLAKE2b-256 | 8395daad0625a17fb5e7d4b8df3e63b081f0e3c553412936e6b3e06558a808fd |