Package: estatbr
## estatbr LibraryThe “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]) -> floatCalculates the mean (average) of a sequence of numbers.mediana(args: Sequence[int | float]) -> floatComputes 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]) -> floatComputes the standard deviation of a sequence of numbers.desvio_medio(args: Sequence[int | float]) -> floatCalculates the mean absolute deviation of a sequence of numbers.variancia(args: Sequence[int | float]) -> floatComputes the variance of a sequence of numbers.comparar(a: List[int | float], b: List[int | float]) -> floatCompares two lists of numbers and returns a measure of similarity.media_ponderada(valores: List[int | float], pesos: List[int | float]) -> floatComputes the weighted mean of a list of values using given weights.media_geometrica(args: Sequence[int | float]) -> floatCalculates the geometric mean of a sequence of numbers.media_quadratica(args: Sequence[int | float]) -> floatComputes the root mean square (quadratic mean) of a sequence of numbers.intervalo_medio(args: Sequence[int | float]) -> floatComputes the midrange (average of the minimum and maximum) of a sequence of numbers.intervalo_medio_entre_dois_numeros(a, b) -> floatCalculates 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) -> floatPerforms 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.