Title: | Statistical Learning Functions |
---|---|
Description: | Aids in learning statistical functions incorporating the result of calculus done with each function and how they are obtained, that is, which equation and variables are used. Also for all these equations and their related variables detailed explanations and interactive exercises are also included. All these characteristics allow to the package user to improve the learning of statistics basics by means of their use. |
Authors: | Carlos Javier Hellin Asensio [aut, cre], Jose Manuel Gomez Caceres [aut], Dennis Monheimius [aut], Eduardo Benito [aut], Juan Jose Cuadrado [aut], Universidad de Alcala de Henares [aut] |
Maintainer: | Carlos Javier Hellin Asensio <[email protected]> |
License: | Unlimited |
Version: | 2.4 |
Built: | 2024-11-07 04:42:01 UTC |
Source: | https://github.com/carloshellin/learningrlab |
This function calculates the average absolute deviation of a numbers vector.
averageDeviation_(x)
averageDeviation_(x)
x |
Should be a numbers vector |
To calculate the average deviation, the user should give a numbers vector. The result is the sum of the differences in absolute value between each vector element and the mean, divided by the number of elemets. The average absolute deviation formule is the following:
Numeric, the average absolute deviation of the numbers vector.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation data <- c(1:20) result = averageDeviation_(data)
#data creation data <- c(1:20) result = averageDeviation_(data)
This function calculates the binomial distribution of experiment.
binomial_(n,x,p)
binomial_(n,x,p)
x |
Should be a numbers. |
n |
Should be a numbers. |
p |
Should be a numbers. |
To calculate the binomial distribution, the user should give three number (the number of trials, probability of success and binomial random variable). The result is a discrete probability distribution that counts the number of successes in a sequence of n independent Bernoulli trials with a fixed probability p of occurrence of success between trials. The binomial distribution formule is the following:
Numeric, the binomial distribution of three variables.
Each variable is a number. Example: n <- 3 | x <- 2 | p <- 0.7
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation n = 3 x = 2 p = 0.7 binomial_(n,x,p)
#data creation n = 3 x = 2 p = 0.7 binomial_(n,x,p)
This function calculates the chisquared distribution of two vectors of numbers.
chisquared_(x,y)
chisquared_(x,y)
x |
Should be a vector. |
y |
Should be a vector. |
To calculate the chisquared distribution, the user should give two vectors of numbers. The result is a sum of the squares of k independent standard normal random variables. The chisquared distribution formule is the following:
Numeric, the chisquared distribution of two vectors of numbers.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation data = c(1,4,3,3,2,5,7,12,1,2,3,12) data2 = c(1,2,4,4,6,5,11,2,10,5,6,1) chisquared_(data, data2)
#data creation data = c(1,4,3,3,2,5,7,12,1,2,3,12) data2 = c(1,2,4,4,6,5,11,2,10,5,6,1) chisquared_(data, data2)
This function calculates the covariance of two vectors of numbers.
covariance_(x,y)
covariance_(x,y)
x |
Should be a vector |
y |
Should be a vector |
To calculate the covariance, the user should give two vectors of numbers. The result is a measure of the joint variability of two vectors of numbers. The covariance formule is the following:
Numeric, the covariance of two vectors of numbers.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation data = c(1,4,3,3,2,5,7,12,1,2,3,12) data2 = c(1,2,4,4,6,5,11,2,10,5,6,1) covariance_(data, data2)
#data creation data = c(1,4,3,3,2,5,7,12,1,2,3,12) data2 = c(1,2,4,4,6,5,11,2,10,5,6,1) covariance_(data, data2)
This function calculates the coefficient of variation of a numbers vector.
cv_(x)
cv_(x)
x |
Should be a numbers vector |
To calculate the coefficient of variation, the user should give a numbers vector. The result is defined as the ratio of the standard deviation to the mean. The coefficient of variation formule is the following:
Numeric, the coefficient of variation of the numbers vector.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation data = c(1,4,3,3,2,5,7,12,1,2,3,12) cv_(data)
#data creation data = c(1,4,3,3,2,5,7,12,1,2,3,12) cv_(data)
This function prints all the elements of a vector
drawVector(buffer)
drawVector(buffer)
buffer |
A vector of elements |
There isn't return value, prints on screen
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5 or c(true,false,false) creates a vector with the booleans: true, false, true
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
{ #data creation data <- c(1:12) drawVector(data) }
{ #data creation data <- c(1:12) drawVector(data) }
Step by step demonstration of the absolute accumulated frecuency calculus
explain.absolute_acum_frecuency(v,x)
explain.absolute_acum_frecuency(v,x)
v |
Should be a vector |
x |
Should be a number |
To calculate the absolute accumulated frecuency, the user should give a vector and a number. We can saw the absolute accumulated frecuency formule in the frecuency_acum_absolute help document.
A demonstration of the calculus process
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
{ #data creation data <- c(1,2,2,5,10,4,2) value = 2 #function execution explain.absolute_acum_frecuency(data, value) }
{ #data creation data <- c(1,2,2,5,10,4,2) value = 2 #function execution explain.absolute_acum_frecuency(data, value) }
Step by step demonstration of the absolute frecuency calculus
explain.absolute_frecuency(v,x)
explain.absolute_frecuency(v,x)
v |
Should be a vector |
x |
Should be a number |
To calculate the absolute frecuency, the user should give a vector and a number. We can saw the absolute frecuency formule in the frecuency_abs help document.
A demonstration of the calculus process
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
{ #data creation data <- c(1,2,2,5,10,4,2) value = 2 #function execution explain.absolute_frecuency(data, value) }
{ #data creation data <- c(1,2,2,5,10,4,2) value = 2 #function execution explain.absolute_frecuency(data, value) }
Step by step demonstration of the average absolute deviation calculus.
explain.averageDeviation(x)
explain.averageDeviation(x)
x |
Should be a numbers vector |
To calculate the average absolute deviation, the user should give a numbers vector. The result is the explained process to calculate the average absolute deviation, with the data of the dataset provided like argument. We can saw the average absolute deviation formule in the averageDeviation_ help document.
Numeric, the average absolute deviation of the numbers vector.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation data <- c(7,2,5,7,1,4,12) explain.averageDeviation(data)
#data creation data <- c(7,2,5,7,1,4,12) explain.averageDeviation(data)
Step by step demonstration of the binomial distribution calculus.
explain.binomial(n,x,p)
explain.binomial(n,x,p)
x |
Should be a numbers. |
n |
Should be a numbers. |
p |
Should be a numbers. |
To calculate the binomial distribution, the user should give three number (the number of trials, probability of success and binomial random variable). The result is a discrete probability distribution that counts the number of successes in a sequence of n independent Bernoulli trials with a fixed probability p of occurrence of success between trials. We can saw the binomial distribution formule in the binomial_ help document.
Numeric result and the process of this calculus explained.
Each variable is a number. Example: n <- 3 | x <- 2 | p <- 0.7
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation n = 3 x = 2 p = 0.7 explain.binomial(n,x,p)
#data creation n = 3 x = 2 p = 0.7 explain.binomial(n,x,p)
Step by step demonstration of the chisquared distribution calculus.
explain.chisquared(x,y)
explain.chisquared(x,y)
x |
Should be a vector. |
y |
Should be a vector. |
To calculate the chisquared distribution, the user should give two vectors of numbers. The result is a sum of the squares of k independent standard normal random variables. We can saw the chisquared distribution formule in the chisquared_ help document.
Numeric result and the process of this calculus explained.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation data <- c(10,4,5,7,3,4,1) data2 <- c(1,8,3,4,4,5,7) explain.chisquared(data, data2)
#data creation data <- c(10,4,5,7,3,4,1) data2 <- c(1,8,3,4,4,5,7) explain.chisquared(data, data2)
Step by step demonstration of the covariance calculus.
explain.covariance(x,y)
explain.covariance(x,y)
x |
Should be a vector |
y |
Should be a vector |
To calculate the covariance, the user should give two vectors of numbers. The result is the explained process to calculate the covariance, with the data of the datasets provided like argument. We can saw the harmonic mean formule in the covariance_ help document.
Numeric result and the process of this calculus explained.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation data <- c(10,4,5,7,3,4,1) data2 <- c(1,8,3,4,4,5,7) explain.covariance(data, data2)
#data creation data <- c(10,4,5,7,3,4,1) data2 <- c(1,8,3,4,4,5,7) explain.covariance(data, data2)
Step by step demonstration of the coefficient of variation calculus.
explain.cv(x)
explain.cv(x)
x |
Should be a numbers vector |
To calculate the coefficient of variation, the user should give a numbers vector. The result is defined as the ratio of the standard deviation to the mean. We can saw the coefficient of variation formule in the cv_ help document.
Numeric result and the process of this calculus explained.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation data <- c(10,4,5,7,3,4,1) explain.cv(data)
#data creation data <- c(10,4,5,7,3,4,1) explain.cv(data)
Step by step demonstration of the fisher distribution calculus.
explain.fisher(x,y)
explain.fisher(x,y)
x |
Should be a vector |
y |
Should be a vector |
To calculate the fisher distribution, the user should give two vectors of numbers. The result is a continuous probability distribution that arises frequently as the null distribution of a test statistic. We can saw fisher distribution formule in the fisher_ help document.
Numeric result and the process of this calculus explained.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation data <- c(10,4,5,7,3,4,1) data2 <- c(1,8,3,4,4,5,7) explain.fisher(data, data2)
#data creation data <- c(10,4,5,7,3,4,1) data2 <- c(1,8,3,4,4,5,7) explain.fisher(data, data2)
Step by step demonstration of the geometric mean calculus.
explain.geometricMean(x)
explain.geometricMean(x)
x |
Should be a numbers vector |
To calculate the geometric mean of a dataset, the user should give a vector. The result is the explained process to calculate the geometric mean, with the data of the dataset provided like argument. We can saw the geometric mean formule in the geometricMean_ help document.
Numeric result and the process of this calculus explained.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
{ #data creation data <- c(5,21,12,7,3,9,1) explain.geometricMean(data) }
{ #data creation data <- c(5,21,12,7,3,9,1) explain.geometricMean(data) }
Step by step demonstration of the harmonic mean calculus.
explain.harmonicMean(x)
explain.harmonicMean(x)
x |
Should be a numbers vector |
To calculate the harmonic mean, the user should give a numbers vector. The result is the explained process to calculate the harmonic mean, with the data of the dataset provided like argument. We can saw the harmonic mean formule in the harmonicMean_ help document.
Numeric result and the process of this calculus explained.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation data <- c(10,4,5,7,3,4,1) explain.harmonicMean(data)
#data creation data <- c(10,4,5,7,3,4,1) explain.harmonicMean(data)
Step by step demonstration of the Laplace's rule calculus.
explain.laplace(x,y)
explain.laplace(x,y)
x |
Should be a vector |
y |
Should be a vector |
To calculate the Laplace's rule, the user should give two vector (unfavorable cases/favorable cases). The result isas the quotient between the number of favorable cases to A, and that of all possible results of the experiment. We can saw the Laplace's rule correlation formule in the laplace_ help document.
Numeric result and the process of this calculus explained.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation data <- 3 data2 <- c(1,2,3,4,5,6) explain.laplace(data, data2)
#data creation data <- 3 data2 <- c(1,2,3,4,5,6) explain.laplace(data, data2)
Step by step demonstration of the arithmetic mean calculus.
explain.mean(x)
explain.mean(x)
x |
Should be a numbers vector |
To calculate the arithmetic mean of a dataset, the user should give a vector. The result is the explained process to calculate the arithmetic mean, with the data of the dataset provided like argument. We can saw the arithmetic mean formule in the mean_ help document.
Numeric result and the process of this calculus explained.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
{ #data creation data <- c(1,2,2,5,10,4,2) explain.mean(data) }
{ #data creation data <- c(1,2,2,5,10,4,2) explain.mean(data) }
Step by step demonstration of the median calculus.
explain.median(x)
explain.median(x)
x |
Should be a numbers vector |
To calculate the median, the user should give a numbers vector. The result is the explained process to calculate the median, with the data of the dataset provided like argument. We can saw the median formule in the median_ help document.
Numeric result and the process of this calculus explained.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
{ #data creation data <- c(1,2,2,5,10,4,2) explain.median(data) }
{ #data creation data <- c(1,2,2,5,10,4,2) explain.median(data) }
Step by step demonstration of the mode calculus.
explain.mode(x)
explain.mode(x)
x |
Should be a numbers vector |
To calculate the mode, the user should give a numbers vector. The result is the explained process to calculate the mode, with the data of the dataset provided like argument. We can saw the mode formule in the mode_ help document.
Numeric result and the process of this calculus explained.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
{ #data creation data <- c(1,1,2,5,2,3,1,4,1) explain.mode(data) }
{ #data creation data <- c(1,1,2,5,2,3,1,4,1) explain.mode(data) }
Step by step demonstration of the normal distribution calculus.
explain.normal(x)
explain.normal(x)
x |
Should be a number. |
To calculate the normal distribution, the user should give a number. The result isis a type of continuous probability distribution for a real-valued random variable. We can saw the normal distribution correlation formule in the normal_ help document.
Numeric result and the process of this calculus explained.
The variable is a number. Example: x <- 0.1
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation x = 0.1 explain.normal(x)
#data creation x = 0.1 explain.normal(x)
Step by step demonstration of the pearson correlation calculus.
explain.pearson(x,y)
explain.pearson(x,y)
x |
Should be a vector |
y |
Should be a vector |
To calculate the pearson correlation, the user should give two vectors of numbers. The result is the covariance of the two vectors of numbers divided by the product of their standard deviations. We can saw the pearson correlation formule in the pearson_ help document.
Numeric result and the process of this calculus explained.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation data <- c(10,4,5,7,3,4,1) data2 <- c(1,8,3,4,4,5,7) explain.pearson(data, data2)
#data creation data <- c(10,4,5,7,3,4,1) data2 <- c(1,8,3,4,4,5,7) explain.pearson(data, data2)
Step by step demonstration of the percentiles calculus
explain.percentile(x)
explain.percentile(x)
x |
Should be a vector |
To calculate the percentiles, the user should give a vector. We can saw the percentile formule in the percentile_ help document.
A demonstration of the calculus process
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
{ #data creation data <- c(1,2,2,5,10,4,2) explain.percentile(data) }
{ #data creation data <- c(1,2,2,5,10,4,2) explain.percentile(data) }
Step by step demonstration of the Poisson distribution calculus.
explain.poisson(k,lam)
explain.poisson(k,lam)
k |
Should be a numbers |
lam |
Should be a numbers |
To calculate the Poisson distribution, the user should give two number ( the number of times the phenomenon and the number of occurrences). The result is a discrete probability distribution that expresses, from a mean frequency of occurrence, the probability that a certain number of events will occur during a certain period of time. We can saw the Poisson distribution correlation formule in the poisson_ help document.
Numeric result and the process of this calculus explained.
Each variable is a number. Example: lam <- 2 | k <- 3
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation lam = 2 k = 3 explain.poisson(k,lam)
#data creation lam = 2 k = 3 explain.poisson(k,lam)
Step by step demonstration of the quartiles calculus
explain.quartile(x)
explain.quartile(x)
x |
Should be a vector |
To calculate the quartiles, the user should give a vector. We can saw the quartile formule in the quartile_ help document.
A demonstration of the calculus process
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
{ #data creation data <- c(1,2,2,5,10,4,2) explain.quartile(data) }
{ #data creation data <- c(1,2,2,5,10,4,2) explain.quartile(data) }
Step by step demonstration of the relative accumulated frecuency calculus
explain.relative_acum_frecuency(v,x)
explain.relative_acum_frecuency(v,x)
v |
Should be a vector |
x |
Should be a numebr of the vector |
To calculate the relative accumulated frecuency, the user should give a vector and a number. We can saw the relative accumulated frecuency formule in the frecuency_acum_relative help document.
A demonstration of the calculus process
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
{ #data creation data <- c(1,2,2,5,10,4,2) value = 2 #function execution explain.relative_acum_frecuency(data, value) }
{ #data creation data <- c(1,2,2,5,10,4,2) value = 2 #function execution explain.relative_acum_frecuency(data, value) }
Step by step demonstration of the relative frecuency calculus
explain.relative_frecuency(v,x)
explain.relative_frecuency(v,x)
v |
Should be a vector |
x |
Should be a number |
To calculate the relative frecuency, the user should give a vector and a number. We can saw the relative frecuency formule in the frecuency_relative help document.
A demonstration of the calculus process
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
{ #data creation data <- c(1,2,2,5,10,4,2) value = 2 #function execution explain.relative_frecuency(data, value) }
{ #data creation data <- c(1,2,2,5,10,4,2) value = 2 #function execution explain.relative_frecuency(data, value) }
Step by step demonstration of the standard deviation calculus.
explain.standardDeviation(x)
explain.standardDeviation(x)
x |
Should be a numbers vector |
To calculate the standard deviation, the user should give a numbers vector. The result is the explained process to calculate the standard deviation, with the data of the dataset provided like argument. We can saw the standard deviation formule in the standardDeviation_ help document.
Numeric result and the process of this calculus explained.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation data <- c(1,5,3,7,10,4,2) explain.standardDeviation(data)
#data creation data <- c(1,5,3,7,10,4,2) explain.standardDeviation(data)
Step by step demonstration of the T-Student distribution calculus.
explain.tstudent(x,u,s,n)
explain.tstudent(x,u,s,n)
x |
Should be a number |
u |
Should be a number |
s |
Should be a number |
n |
Should be a number |
To calculate the T-Student distribution, the user should give four number (sample mean, population mean, population standard deviation and sample size). The result is a probability distribution that arises from the problem of estimating the mean of a normally distributed population when the sample size is small. We can saw the T-Student distribution formule in the tstudent_ help document.
Numeric result and the process of this calculus explained.
Each variable is a number. Example: x <- 2 | y <- 4
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation x = 52.9 u = 50 s = 3 n = 10 explain.tstudent(x,u,s,n)
#data creation x = 52.9 u = 50 s = 3 n = 10 explain.tstudent(x,u,s,n)
Step by step demonstration of the variance calculus.
explain.variance(x)
explain.variance(x)
x |
Should be a numbers vector |
To calculate the variance, the user should give a numbers vector. The result is the explained process to calculate the variance, with the data of the dataset provided like argument. We can saw the variance formule in the variance_ help document.
Numeric result and the process of this calculus explained.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation data <- c(10,4,5,7,3,4,1) explain.variance(data)
#data creation data <- c(10,4,5,7,3,4,1) explain.variance(data)
This function calculates the fisher distribution of a numbers vector.
fisher_(x,y)
fisher_(x,y)
x |
Should be a vector |
y |
Should be a vector |
To calculate the fisher distribution, the user should give two vectors of numbers. The result is a continuous probability distribution that arises frequently as the null distribution of a test statistic. The fisher distributionformule is the following:
Numeric, the fisher distribution.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation x <- c(70,75,74,72,68,59) y <- c(74,77,70,80,72,76) fisher_(x,y)
#data creation x <- c(70,75,74,72,68,59) y <- c(74,77,70,80,72,76) fisher_(x,y)
This function calculate the number of times that a specific number appears in the data set.
frecuency_abs(v,x)
frecuency_abs(v,x)
v |
Should be a vector |
x |
Should be a number |
The absolute frecuency formula is the following:
An integer that represents the number of times that the value appears in the vector
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
{ #data creation data = c(1,4,3,3,2,5,7,12,1,2,3,12) value = 12 #function execution frecuency_abs(data, value) }
{ #data creation data = c(1,4,3,3,2,5,7,12,1,2,3,12) value = 12 #function execution frecuency_abs(data, value) }
This function calculate the number of times that a specific number appears in the data set. The value depends on the elements that are lower than itself
frecuency_absolute_acum(v,x)
frecuency_absolute_acum(v,x)
v |
Should be a vector |
x |
Should be a number |
The accumulated absolute frecuency formula is the following:
A double that represents the number of times that the value appears in the vector regarding the total of elements
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
{ #data creation data = c(1,4,3,3,2,5,7,12,1,2,3,12) value = 12 #function execution frecuency_absolute_acum(data, value) }
{ #data creation data = c(1,4,3,3,2,5,7,12,1,2,3,12) value = 12 #function execution frecuency_absolute_acum(data, value) }
This function calculate the number of times that a specific number appears in the data set divided by the total length of the vector.
frecuency_relative(v,x)
frecuency_relative(v,x)
v |
Should be a vector |
x |
Should be a number |
The relative frecuency formula is the following:
A double that represents the number of times that the value appears in the vector regarding the total of elements
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
{ #data creation data <- c(1,4,3,3,2,5,7,12,1,2,3,12) value = 12 frecuency_relative(data, value) }
{ #data creation data <- c(1,4,3,3,2,5,7,12,1,2,3,12) value = 12 frecuency_relative(data, value) }
This function calculate the number of times that a specific number appears in the data set divided by the total length of the vector. The value depends on the elements that are lower than itself
frecuency_relative_acum(v,x)
frecuency_relative_acum(v,x)
v |
Should be a vector |
x |
Should be a number |
The accumulated relative frecuency formula is the following:
A double that represents the number of times that the value appears in the vector regarding the total of elements
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
{ #data creation data = c(1,4,3,3,2,5,7,12,1,2,3,12) value = 12 #function execution frecuency_relative_acum(data, value) }
{ #data creation data = c(1,4,3,3,2,5,7,12,1,2,3,12) value = 12 #function execution frecuency_relative_acum(data, value) }
This function calculates the geometric mean of a numbers vector.
geometricMean_(x)
geometricMean_(x)
x |
Should be a numbers vector |
To calculate the geometric mean of a dataset, the user should give a numbers vector. The result is the product of all vector elements raise to 1 divided by the number of elements. The arithmetic mean formule is the following:
A numeric, the geometric mean of the numbers vector.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation data = c(1:20) geometricMean_(data)
#data creation data = c(1:20) geometricMean_(data)
This function get the buffer introduced by the user. Typically a numerical vector.
getUserAction()
getUserAction()
A vector
The process is interactive with the user
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
{ ## Not run: vector <- getUserAction() ## End(Not run) }
{ ## Not run: vector <- getUserAction() ## End(Not run) }
This function calculates the harmonic mean of a numbers vector.
harmonicMean_ (x)
harmonicMean_ (x)
x |
Should be a numbers vector |
To calculate the harmonic mean, the user should give a numbers vector. The result is calculated by dividing the number of observations by the reciprocal of each number in the vector. The harmonic mean formule is the following:
Numeric, the harmonic mean of the numbers vector.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation data = c(1,4,3,3,2,5,7,12,1,2,3,12) harmonicMean_(data)
#data creation data = c(1,4,3,3,2,5,7,12,1,2,3,12) harmonicMean_(data)
This function is used to display an image.
initImages(path)
initImages(path)
path |
An url of an image |
There isn't return value
The path shold be toward an image
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
{ ## Not run: path = "https://i.imgur.com/8237YhzJ.png" initImages(path) ## End(Not run) }
{ ## Not run: path = "https://i.imgur.com/8237YhzJ.png" initImages(path) ## End(Not run) }
Interactive function for absolute accumulated frecuency calculus.
interactive.absolute_acum_frecuency()
interactive.absolute_acum_frecuency()
The user provides the dataset when the function needs it. After that, the function will ask what is the correct result for this dataset. The function itself will provide the formula.
An interactive process to calculate the absolute accumulated frecuency
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
## Not run: interactive.absolute_acum_frecuency() ## End(Not run)
## Not run: interactive.absolute_acum_frecuency() ## End(Not run)
Interactive function for absolute frecuency calculus.
interactive.absolute_frecuency()
interactive.absolute_frecuency()
The user provides the dataset when the function needs it. After that, the function will ask what is the correct result for this dataset. The function itself will provide the formula.
An interactive process to calculate the absolute frecuency
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
## Not run: interactive.absolute_frecuency() ## End(Not run)
## Not run: interactive.absolute_frecuency() ## End(Not run)
Interactive function for average absolute deviation calculus.
interactive.averageDeviation()
interactive.averageDeviation()
The user provides the dataset when the function needs it. After that, the function will ask what is the correct result for this dataset. The function itself will provide the average absolute deviation formule, apart from the averageDeviation_ help document.
An interactive process to calculate the average absolute deviation
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
https://en.wikipedia.org/wiki/Average_absolute_deviation
## Not run: interactive.averageDeviation() ## End(Not run)
## Not run: interactive.averageDeviation() ## End(Not run)
Interactive function for binomial distribution calculus.
interactive.binomial()
interactive.binomial()
The user provides the values when the function needs it. After that, the function will ask what is the correct result for this datas. The function itself will provide the binomial distribution formule, apart from the binomial_ help document.
An interactive process to calculate the binomial distribution.
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
## Not run: interactive.binomial() ## End(Not run)
## Not run: interactive.binomial() ## End(Not run)
Interactive function for chisquared distribution calculus.
interactive.chisquared()
interactive.chisquared()
The user provides the datasets when the function needs it. After that, the function will ask what is the correct result for this dataset. The function itself will provide the chisquared distribution formule, apart from the chisquared_ help document.
An interactive process to calculate the chisquared distribution
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
## Not run: interactive.chisquared() ## End(Not run)
## Not run: interactive.chisquared() ## End(Not run)
Interactive function for covariance calculus.
interactive.covariance()
interactive.covariance()
The user provides the datasets when the function needs it. After that, the function will ask what is the correct result for this dataset. The function itself will provide the covariance formule, apart from the covariance_ help document.
An interactive process to calculate the covariance
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
## Not run: interactive.covariance() ## End(Not run)
## Not run: interactive.covariance() ## End(Not run)
Interactive function for Coefficient of Variation calculus.
interactive.cv()
interactive.cv()
The user provides the dataset when the function needs it. After that, the function will ask what is the correct result for this dataset. The function itself will provide the coefficient of variation formule, apart from the cv_ help document.
An interactive process to calculate the average absolute deviation
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
## Not run: interactive.cv() ## End(Not run)
## Not run: interactive.cv() ## End(Not run)
Interactive function for fisher distribution calculus.
interactive.fisher()
interactive.fisher()
The user provides the datasets when the function needs it. After that, the function will ask what is the correct result for this datasets. The function itself will provide the fisher distribution formule, apart from the fisher_ help document.
An interactive process to calculate the fisher distribution
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
## Not run: interactive.fisher() ## End(Not run)
## Not run: interactive.fisher() ## End(Not run)
Interactive function for geometric mean calculus.
interactive.geometricMean()
interactive.geometricMean()
The user provides the dataset when the function needs it. After that, the function will ask what is the correct result for this dataset. The function itself will provide the geometric mean formule, apart from the geometricMean_ help document.
An interactive process to calculate the geometric mean.
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
## Not run: interactive.geometricMean() ## End(Not run)
## Not run: interactive.geometricMean() ## End(Not run)
Interactive function for harmonic mean calculus.
interactive.harmonicMean()
interactive.harmonicMean()
The user provides the dataset when the function needs it. After that, the function will ask what is the correct result for this dataset. The function itself will provide the harmonic mean formule, apart from the harmonicMean_ help document.
An interactive process to calculate the harmonic mean
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
## Not run: interactive.harmonicMean() ## End(Not run)
## Not run: interactive.harmonicMean() ## End(Not run)
Interactive function for Laplace's rule calculus.
interactive.laplace()
interactive.laplace()
The user provides the values when the function needs it. After that, the function will ask what is the correct result for this datas. The function itself will provide the Laplace's rule formule, apart from the laplace_ help document.
An interactive process to calculate the Laplace's rule.
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
## Not run: interactive.laplace() ## End(Not run)
## Not run: interactive.laplace() ## End(Not run)
Interactive function for arithmetic mean calculus.
interactive.mean()
interactive.mean()
The user provides the dataset when the function needs it. After that, the function will ask what is the correct result for this dataset. The function itself will provide the arithmetic mean formule, apart from the mean_ help document.
An interactive process to calculate the arithmetic mean.
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
{ ## Not run: interactive.mean() ## End(Not run) }
{ ## Not run: interactive.mean() ## End(Not run) }
Interactive function for median calculus.
interactive.median()
interactive.median()
The user provides the dataset when the function needs it. After that, the function will ask what is the correct result for this dataset. The function itself will provide the median formule, apart from the median_ help document.
An interactive process to calculate the median
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
## Not run: interactive.median() ## End(Not run)
## Not run: interactive.median() ## End(Not run)
Interactive function for mode calculus.
interactive.mode()
interactive.mode()
The user provides the dataset when the function needs it. After that, the function will ask what is the correct result for this dataset.
An interactive process to calculate the mode.
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
## Not run: interactive.mode() ## End(Not run)
## Not run: interactive.mode() ## End(Not run)
Interactive function for normal distribution calculus.
interactive.normal()
interactive.normal()
The user provides the values when the function needs it. After that, the function will ask what is the correct result for this data. The function itself will provide the normal distribution formule, apart from the normal_ help document.
An interactive process to calculate the normal distribution.
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
## Not run: interactive.normal() ## End(Not run)
## Not run: interactive.normal() ## End(Not run)
Interactive function for pearson correlation calculus.
interactive.pearson()
interactive.pearson()
The user provides the datasets when the function needs it. After that, the function will ask what is the correct result for this dataset. The function itself will provide the pearson correlation formule, apart from the pearson_ help document.
An interactive process to calculate the pearson correlation.
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
## Not run: interactive.pearson() ## End(Not run)
## Not run: interactive.pearson() ## End(Not run)
Interactive function for percentiles calculus.
interactive.percentile()
interactive.percentile()
The user provides the dataset when the function needs it. After that, the function will ask what is the correct result for this dataset. The function itself will provide the formula.
An interactive process to calculate the percentiles
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
## Not run: interactive.percentile() ## End(Not run)
## Not run: interactive.percentile() ## End(Not run)
Interactive function for Poisson distribution calculus.
interactive.poisson()
interactive.poisson()
The user provides the values when the function needs it. After that, the function will ask what is the correct result for this datas. The function itself will provide the Poisson distribution formule, apart from the poisson_ help document.
An interactive process to calculate the Poisson distribution.
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
## Not run: interactive.poisson() ## End(Not run)
## Not run: interactive.poisson() ## End(Not run)
Interactive function for quartiles calculus.
interactive.quartile()
interactive.quartile()
The user provides the dataset when the function needs it. After that, the function will ask what is the correct result for this dataset. The function itself will provide the formula.
An interactive process to calculate the quartiles
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
## Not run: interactive.quartile() ## End(Not run)
## Not run: interactive.quartile() ## End(Not run)
Interactive function for relative accumulated frecuency calculus.
interactive.relative_acum_frecuency()
interactive.relative_acum_frecuency()
The user provides the dataset when the function needs it. After that, the function will ask what is the correct result for this dataset. The function itself will provide the formula.
An interactive process to calculate the relative accumulated frecuency
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
## Not run: interactive.relative_acum_frecuency() ## End(Not run)
## Not run: interactive.relative_acum_frecuency() ## End(Not run)
Interactive function for relative frecuency calculus.
interactive.relative_frecuency()
interactive.relative_frecuency()
The user provides the dataset when the function needs it. After that, the function will ask what is the correct result for this dataset. The function itself will provide the formula.
An interactive process to calculate the relative frecuency
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
## Not run: interactive.relative_frecuency() ## End(Not run)
## Not run: interactive.relative_frecuency() ## End(Not run)
Interactive function for standard deviation calculus.
interactive.standardDeviation()
interactive.standardDeviation()
The user provides the dataset when the function needs it. After that, the function will ask what is the correct result for this dataset. The function itself will provide the standard deviation formule, apart from the standardDeviation_ help document.
An interactive process to calculate the standard deviation
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
https://en.wikipedia.org/wiki/Standard_deviation
## Not run: interactive.standardDeviation() ## End(Not run)
## Not run: interactive.standardDeviation() ## End(Not run)
Interactive function for T-Student distribution calculus.
interactive.tstudent()
interactive.tstudent()
The user provides the values when the function needs it. After that, the function will ask what is the correct result for this datas. The function itself will provide the T-Students distribution formule, apart from the tstudent_ help document.
An interactive process to calculate the T-Student distribution.
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
## Not run: interactive.tstudent() ## End(Not run)
## Not run: interactive.tstudent() ## End(Not run)
Interactive function for variance calculus.
interactive.variance()
interactive.variance()
The user provides the dataset when the function needs it. After that, the function will ask what is the correct result for this dataset. The function itself will provide the variance formule, apart from the variance_ help document.
An interactive process to calculate the average absolute deviation
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
## Not run: interactive.variance() ## End(Not run)
## Not run: interactive.variance() ## End(Not run)
This function calculates the Laplace's rule of experiment.
laplace_(x,y)
laplace_(x,y)
x |
Should be a vector |
y |
Should be a vector |
To calculate the Laplace's rule, the user should give two vector (unfavorable cases/favorable cases). The result isas the quotient between the number of favorable cases to A, and that of all possible results of the experiment. The Laplace's rule formule is the following:
Numeric, the pearson correlation.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation data = 3 data2 = c(1,2,3,4,5,6) laplace_(data, data2)
#data creation data = 3 data2 = c(1,2,3,4,5,6) laplace_(data, data2)
Package used to teach basic statistics to students.
This package pretends to serve the user as a method of learning basic statistical functions at secondary and baccalaureate courses. The content of the package incorporate a serie of statistical functions like the calculus of the arithmetic mean or the calculus of the frequencies. There is no only calculus functions, further more, there are incorporated interactive and explicative functions to help and guide the user in the learning process.
Jose Manuel Gomez Caceres, [email protected]
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
Maintainer: Eduardo Benito [email protected]
This function calculates the arithmetic mean of a numbers vector.
mean_(x)
mean_(x)
x |
Should be a numbers vector |
To calculate the arithmetic mean of a dataset, the user should give a numbers vector. The result is the addition of all vector elements divided by the number of elements. The arithmetic mean formule is the following:
A numeric, the arithmetic mean of the numbers vector.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
vector <- c(2,4,6,8,10,12,14,16,18) result = mean_(vector) result
vector <- c(2,4,6,8,10,12,14,16,18) result = mean_(vector) result
This function calculates the arithmetic mean of a numbers vector.
meanC(x)
meanC(x)
x |
Should be a numbers vector |
To calculate the arithmetic mean of a dataset, the user should give a numbers vector. The result is the addition of all vector elements divided by the number of elements. The arithmetic mean formule is the following:
A numeric, the arithmetic mean of the numbers vector.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation vector = c(1:10) meanC(vector)
#data creation vector = c(1:10) meanC(vector)
This function calculates the median of a numbers vector.
median_(x)
median_(x)
x |
Should be a numbers vector |
To calculate the median, the user should give a numbers vector. The result is the value separating the higher half from the lower half of the dataset, it may be thought of as the middle value. The median formule is the following:
A numeric, the median of the numbers vector.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
{ result = median_(c(1,3,2,5,12,4,4,2,9)) result }
{ result = median_(c(1,3,2,5,12,4,4,2,9)) result }
This function calculates the mode of a numbers vector.
mode_(x)
mode_(x)
x |
Should be a numbers vector |
To calculate the mode of a dataset, the user should give a numbers vector. The result is the numeric value that appears most often. In other words, it's the value that is most likely to be sampled. The mode formule is the following:
Numeric, the mode of the numbers vector.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
{ #data creation data = c(1,2,2,3,4) mode_(data) }
{ #data creation data = c(1,2,2,3,4) mode_(data) }
This function calculates the normal distribution of experiment.
normal_(x)
normal_(x)
x |
Should be a numbers. |
To calculate the normal distribution, the user should give a number. The result isis a type of continuous probability distribution for a real-valued random variable. The normal distribution formule is the following:
Numeric, the normal distribution.
The variable is a number. Example: x <- 0.1
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation x = 0.1 normal_(x)
#data creation x = 0.1 normal_(x)
This function calculates the pearson correlation of two vectors of numbers.
pearson_(x,y)
pearson_(x,y)
x |
Should be a vector |
y |
Should be a vector |
To calculate the pearson correlation, the user should give two vectors of numbers. The result is the covariance of the two vectors of numbers divided by the product of their standard deviations. The pearson correlation formule is the following:
Numeric, the pearson correlation of two vectors of numbers.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation data = c(1,4,3,3,2,5,7,12,1,2,3,12) data2 = c(1,2,4,4,6,5,11,2,10,5,6,1) pearson_(data, data2)
#data creation data = c(1,4,3,3,2,5,7,12,1,2,3,12) data2 = c(1,2,4,4,6,5,11,2,10,5,6,1) pearson_(data, data2)
This function calculate the percentiles of a vector of numbers
percentile_(x, p)
percentile_(x, p)
x |
Should be a vector |
p |
Should be a number, 0 => y =< 1 |
To calculate the percentiles, the user should give a vector. This function divide the dataset in 100 parts as equal as possible. The formula is the following:
A vector sorted with the elements divided by 100 parts
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
{ #data creation data = c(1,4,3,3,2,5,7,12,1,2,3,12) percentile_(data,0.3) }
{ #data creation data = c(1,4,3,3,2,5,7,12,1,2,3,12) percentile_(data,0.3) }
This function calculates the Poisson distribution of experiment.
poisson_(k,lam)
poisson_(k,lam)
k |
Should be a numbers |
lam |
Should be a numbers |
To calculate the Poisson distribution, the user should give two number ( the number of times the phenomenon and the number of occurrences). The result is a discrete probability distribution that expresses, from a mean frequency of occurrence, the probability that a certain number of events will occur during a certain period of time. The Poisson distribution formule is the following:
Numeric, the pearson correlation of two numbers.
Each variable is a number. Example: lam <- 2 | k <- 3
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation lam = 2 k = 3 poisson_(k,lam)
#data creation lam = 2 k = 3 poisson_(k,lam)
Calculates the 3 Quartiles of a vector of data
quartile_(x)
quartile_(x)
x |
Should be a vector |
To calculate the quartiles, the user should give a vector. This function divide the dataset in 4 parts as equal as possible. The formula is the following:
A vector sorted with the elements divided by 4 parts
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
{ #data creation data = c(1:20) quartile_(data) }
{ #data creation data = c(1:20) quartile_(data) }
This function calculates the standard deviation of a numbers vector.
standardDeviation_(x)
standardDeviation_(x)
x |
Should be a numbers vector |
To calculate the standard deviation, the user should give a numbers vector. The result is the square root of the sum of the differences between each vector element and the mean squared divided by the number of elemets. The standard deviation formule is the following:
Numeric, the standard deviation of the numbers vector.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation data = c(1,4,3,3,2,5,7,12,1,2,3,12) standardDeviation_(data)
#data creation data = c(1,4,3,3,2,5,7,12,1,2,3,12) standardDeviation_(data)
This function calculates the T-Student distribution of experiment.
tstudent_(x,u,s,n)
tstudent_(x,u,s,n)
x |
Should be a number |
u |
Should be a number |
s |
Should be a number |
n |
Should be a number |
To calculate the T-Student distribution, the user should give four number (sample mean, population mean, population standard deviation and sample size). The result is a probability distribution that arises from the problem of estimating the mean of a normally distributed population when the sample size is small. The T-Student distributionformule is the following:
Numeric, the T-Student distribution.
Each variable is a number. Example: x <- 2 | y <- 4
Jose Manuel Gomez Caceres, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation x = 52.9 u = 50 s = 3 n = 10 tstudent_(x,u,s,n)
#data creation x = 52.9 u = 50 s = 3 n = 10 tstudent_(x,u,s,n)
This function calculates the variance of a numbers vector.
variance_(x)
variance_(x)
x |
Should be a numbers vector |
To calculate the variance, the user should give a numbers vector. The result is the expectation of the squared deviation of all numbers vector from its mean. The variance formule is the following:
Numeric, the variance of the numbers vector.
A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5
Dennis Monheimius, [email protected]
Eduardo Benito, [email protected]
Juan Jose Cuadrado, [email protected]
Universidad de Alcala de Henares
#data creation data = c(1,4,3,3,2,5,7,12,1,2,3,12) variance_(data)
#data creation data = c(1,4,3,3,2,5,7,12,1,2,3,12) variance_(data)