Questions tagged [kurtosis]

Kurtosis is a statistical measure, which characterizes the extreme data (outlier) character of a distribution compared with the normal distribution. Positive (excess) kurtosis indicates a distribution that is more outlier-prone than a normal distribution. Negative (excess) kurtosis indicates a distribution that is less outlier-prone than a normal distribution.

Overview

From Wikipedia:

In probability theory and statistics, kurtosis (from Greek: κυρτός, kyrtos or kurtos, meaning "curved, arching") is a measure of the "tailedness" of the probability distribution of a real-valued random variable. In a similar way to the concept of skewness, kurtosis is a descriptor of the shape of a probability distribution and, just as for skewness, there are different ways of quantifying it for a theoretical distribution and corresponding ways of estimating it from a sample from a population. Depending on the particular measure of kurtosis that is used, there are various interpretations of kurtosis, and of how particular measures should be interpreted.

The standard measure of kurtosis, originating with Karl Pearson, is based on a scaled version of the fourth moment of the data or population. This number is related to the tails of the distribution, not its peak;[1] hence, the sometimes-seen characterization as "peakedness" is mistaken. For this measure, higher kurtosis is the result of infrequent extreme deviations (or outliers), as opposed to frequent modestly sized deviations.


Tag usage

Questions on tag should be about implementation and programming problems, not about the statistical or theoretical properties of the concept. Consider whether your question might be better suited to Cross Validated, the StackExchange site for statistics, machine learning and data analysis.

48 questions
7
votes
2 answers

How to extend the 'summary' function to include sd, kurtosis and skew?

R's summary function works really well on a dataframe, giving, for example: > summary(fred) sum.count count sum value Min. : 1.000 Min. : 1.0 Min. : 1 Min. : 0.00 1st Qu.: 1.000 …
Peter Brooks
  • 349
  • 3
  • 13
5
votes
1 answer

Kurtosis of a normal distribution

According to what I read from here, the kurtosis of a normal distribution should be around 3. However, when I use the kurtosis function provided by MATLAB, I could not verify it: data1 = randn(1,20000); v1 = kurtosis(data1) It seems that the…
feelfree
  • 11,175
  • 20
  • 96
  • 167
4
votes
0 answers

Generate nonnormal distribution with set skewness and kurtosis

I am trying to write R code to generate a nonnormal distribution (i.e., a normal distribution with specific skewness and kurtosis). I would like this distribution to have the following parameters: mean (0), variance (1), skewness (3), and kurtosis…
HAL-9000
  • 99
  • 2
  • 9
3
votes
2 answers

Calculate weighted statistical moments in Python

I've been looking for a function or package that would allow me to calculate the skew and kurtosis of a distribution in a weighted way, as I have histogram data. For instance I have the data import numpy as np np.array([[1, 2], [2, 5], …
hex93
  • 319
  • 3
  • 15
3
votes
3 answers

Calculate skew and kurtosis by year in R

I have a table that looks like this: start_table <- data.frame("Water_Year" = c("1903", "1903", "1904", "1904"), "X" = c(13, 11, 12, 15), "Day" = c(1, 2, 1, 2)) (The 'Day' column is not involved in my skew & kurtosis calculation, it is just in my…
Sarah
  • 411
  • 4
  • 14
3
votes
2 answers

Estimating moments from a distribution function

I have a non-normal distribution function which I want to calculate it's moments (mean, variance, skewness, and kurtosis). The packages I know are e1071 and moments which calculate the moments for a vector of discrete values. Is there a package that…
Novic
  • 351
  • 1
  • 11
3
votes
1 answer

kurtosis function show different values in python and matlab

Python 3.5 MATLAB 2013b I have a simple array. MATLAB: x = [1,2,3,4,5]; kurtosis(x) 1.7 Python: def mykurtosis(x): return scipy.stats.kurtosis(x) x = [1,2,3,4,5] print(mykurtosis(x)) -1.3 Why it shows different outputs ? Is it the…
Raady
  • 1,686
  • 5
  • 22
  • 46
3
votes
5 answers

Confidence Interval and Standard error of Skewness and Kurtosis

Please tell me how to calculate skewness and kurtosis along with their respective standard error and confidence interval associated with it(i.e. SE of Skewness and S.E of Kurtosis) I found two packages 1) package:'measure' can only calculate…
user5433002
3
votes
1 answer

Python Pandas: rolling_kurt vs. scipy.stats.kurtosis

I am trying to figure out why the following code returns different values for the sample's kurtosis: import pandas import scipy e = pandas.DataFrame([1, 2, 3, 4, 5, 4, 3, 2, 1]) print "pandas.rolling_kurt:\n", pandas.rolling_kurt(e, window=9) print…
user32430
  • 65
  • 8
2
votes
1 answer

plpgsql Postgresql functions for calculating skewness and kurtosis

I was searching for Postgresql plpgsql functions to calculate "skewness" and "kurtosis" descriptive statistics functions, but I could not find any. It would be great if someone can share such plpgsql functions here. Thanks!
zlatko
  • 596
  • 1
  • 6
  • 23
2
votes
1 answer

Statistical Kurtosis in relation to SPSS and MS excel

I am using SPSS as statistical analysis tool for my data set. I have few queries on kurtosis concept and the one generated by SPSS and excel. Please correct the understandings below and follow up questions: Kurtosis as a measure of flatness or…
vinsinraw
  • 2,003
  • 1
  • 16
  • 18
2
votes
1 answer

Kurtosis function in Julia

So I've been playing around with Julia, and I've discovered that the function to calculate the kurtosis of a probability distribution is implemented differently between Julia and MATLAB. In Julia, do: using Distributions dist = Beta(3, 5) x =…
Hasnain Raza
  • 681
  • 5
  • 10
2
votes
1 answer

SPSS: Equivalent of aggregate that works for kurtosis?

I'm trying to group a dataset by year and then get the kurtosis for each year so that I can see if it's increasing or decreasing over the course of the year. Aggregate works for means (which is nice, and yields the data I want), it DOESN'T seem to…
2
votes
1 answer

Generating numbers (distribution) for a given Kurtosis or skewness

I am new to using Statistical functions in xls. I am able to the KURT function in xls to calculate the Kurtosis or Skewness, given a set of numbers. But my requirement is to do it in the other way, like for a given Skewness or Kurtosis, is there a…
sk123
  • 61
  • 2
2
votes
1 answer

Python Skewness and Kurtosis in Naive Bayes classifier

I am creating a Naive Bayes classifier in Python that will be able to guess which month it is based on some weather data of a single day. Currently the mean and standard deviation are used to classify the month, however I figured that adding…
Thijs Riezebeek
  • 1,762
  • 1
  • 15
  • 22
1
2 3 4