Questions tagged [frequency-distribution]

A frequency distribution is an arrangement of the values that one or more variables take in a sample

A frequency distribution is an arrangement of the values that one or more variables take in a sample. Each entry in the table contains the frequency or count of the occurrences of values within a particular group or interval, and in this way, the table summarizes the distribution of values in the sample.

220 questions
0
votes
2 answers

Frequency table in R

I'm battling with something that I think should be so simple! I have researched frequency tables in R and can't figure out what to do. I have a data set with different questionnaires within this data set. I.e., The first questionnaire is made up…
Kirsty N
  • 19
  • 5
0
votes
1 answer

Is there a python equivilent to NDhist in matlab?

Here is the link to the Matlab function, I was wondering if anyone had come across something similar in python. I want to input X and Y arrays of the same length and generate what is essentially a heatmap. Where the frequency of times a coordinate…
Alex
  • 59
  • 3
0
votes
1 answer

Applying nltk.FreqDist after splitting a CSV

I've been trying to work with a dataset which has | as a delimiter and a \n for new line. a | b | c c | e | f I have been trying to split the set with rec[0].split('|') and apply nltk.FreqDist(rec) Here's my source code import nltk import csv from…
Bhargav Panth
  • 301
  • 1
  • 3
  • 10
0
votes
1 answer

NetLogo: histogram relative frequency

I'm still having problems with [histogram]. I have a global variable (age-sick) that stores the age of the turtles when they got sick...and I want to plot the distribution: histogram age-sick However I do not want the absolute number of turtles who…
GhettiG
  • 91
  • 9
0
votes
1 answer

processing survey multi-choise data in R

I need to analyse survey data to get the frequency of a multi question variable. I'm using this R package I understand that I need to use the 'multi.split' function in order to create the variable that I will be working with. but I need to know how…
shlomiLan
  • 659
  • 1
  • 9
  • 33
0
votes
0 answers

R ggplot2 plotting curves for percentages of counts

I intend to plot their percentage curves and two shaded curves for their averages. The ggplot2 density plot did not present the percentages of counts on the Y-axis. Here is a similar plot (code can be found here!). How to plot the percentage…
Kuo-Hsien Chang
  • 925
  • 17
  • 40
0
votes
1 answer

Frequency distribution graph

Is there a way to draw a frequency distribution graph in python or R?
user3476791
  • 1,072
  • 1
  • 9
  • 14
0
votes
2 answers

I need to find the distribution of data, which is from a retail chain network. No distribution fits the data

I need to find the distribution of data, which is from a retail chain network( demand of product across all stores). I tried to fit distribution using EasyFit (which has 82 distribution to check the best distributions) but no distribution fits the…
0
votes
2 answers

r element frequency and column name

I have a dataframe that has four columns A, B, C and D: A B C D a a b c b c x e c d y a d z e f I would like to get the frequency of all elements and lists of columns they appear, ordered by the…
user2418838
  • 371
  • 3
  • 12
0
votes
1 answer

Huffman Coding - Grouping Symbols

I am using a Huffman code found on the Internet to get the frequencies of random integers stored in a 2D array as a matrix. Link to Huffman code - Java: http://rosettacode.org/wiki/Huffman_coding Method Q1 asks the user to set the matrix size. The…
0
votes
0 answers

Tabulating and printing a frequency distribution through NLTK

I'm trying to get NLTK to tabulate trigrams across an entire corpus of 12,000 text files and then print the frequency distributions of each trigram out to a file but get the following error: Traceback (most recent call last): File…
Jolijt Tamanaha
  • 333
  • 2
  • 9
  • 23
0
votes
1 answer

python plotting conditional frequency distributions

I'm pretty new to python, so I am working through the nltk book. I am also trying to become familiar with manipulating graphs and plots. I plotted a conditional frequency distribution, and I would like to start by removing the top and left spines.…
user3528925
  • 209
  • 1
  • 2
  • 9
0
votes
1 answer

Finding instantaneous frequency

I want to find instantaneous frequency over a window of a signal. I am taking a small part of the signal and trying to find the instantaneous frequency in that window. But that frequency is not matching with the actual frequency of the signal. Below…
BaluRaman
  • 265
  • 5
  • 16
0
votes
1 answer

Change x-axis in frequency plot

I wrote a short script to create a frequency distribution plot from raw data. The only thing I cannot make right is the x-axis. As you can see below, when the numbers are too long they got written in the e-notation which is difficult to read (also,…
Edgar Derby
  • 2,543
  • 4
  • 29
  • 48
0
votes
1 answer

Outlier detection in probability/ frequency distribution

I have following two dimensional dataset. Both (X and Y) are continuous random variables. Z = (X, y) = {(1, 7), (2, 15), (3, 24), (4, 25), (5, 29), (6, 32), (7, 34), (8, 35), (9, 27), (10, 39)} I want to detect outliers with respect to the y…