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
1 answer

FreqDist with nltk: ValueError: too many values to unpack

I have been trying to find the frequency distribution of nouns in a given sentence. If I do this: text = "This ball is blue, small and extraordinary. Like no other ball." text=text.lower() token_text= nltk.word_tokenize(text) tagged_sent =…
Remy
  • 139
  • 1
  • 1
  • 10
0
votes
1 answer

MATLAB, frequency table with a class of interval of size 2

The following data display the number of errors per book for 20 publisher 2, 5, 2, 8, 2, 3, 5, 6, 1, 0, 2, 0, 1, 5, 0, 0, 4, 5, 1, 2 Now i want to compute a frequency table with a class of interval of size 2 and relative frequency by using MATLAB. I…
user 31466
  • 699
  • 2
  • 10
  • 18
0
votes
1 answer

Extracting frequency with custom tables for multi-response questions in SPSS

I have the following the answers to a multi-response question in a sav file p85_1 |p85_2 |p85_3 ------------------- 1 | 1 | 0 1 | 0 | 0 0 | 1 | 0 1 | 1 | 1 1 | 1 | 0 I need to retrieve the…
richardtk_1
  • 751
  • 3
  • 11
  • 33
0
votes
3 answers

How to get a frequency count when first and last names are in dif columns in excel

I have an Excel 2010 workbook with one row for Last name and one row for first name. There are approximately 1800 entries. The same person (first and last name) can appear multiple times- jim simith appears 5 times. I want to do a frequency count…
0
votes
1 answer

Calculating relative frequencies in SQL

I am working on a tag recommendation system that takes metadata strings (e.g. text descriptions) of an object, and splits it into 1-, 2- and 3-grams. The data for this system is kept in 3 tables: The "object" table (e.g. what is being described), …
BillyBBone
  • 3,144
  • 3
  • 23
  • 27
0
votes
1 answer

Calculating an index of colocation for a large dataset R

I have a complicated, multi-part question. My apologies if I do not make myself clear. I am also a fairly novice R user, so forgive me if this seems rudimentary. I want to calculate a index of colocation for whale dive data and prey distribution…
akbreezo
  • 115
  • 1
  • 1
  • 10
0
votes
1 answer

Ranked Frequency Distributions from Nominal Variables in R

I have searched through the website but have been unable to find a solution to my problem. I have a sample dataset as follows: id,l1 1,3 2,5 3,6 1,5 2,4 3,6 id is a nominal variable and represents a unique user and the other is a count variable.…
Shion
  • 395
  • 1
  • 3
  • 13
0
votes
2 answers

WinBUGS - Defining a discrete stepwise distribution

I want to define a distribution in my model of the form: P(x=10)=0.10, P(x=15)=0.20, P(x=20)=0.70 The WinBUGS FAQ says it is possible construct my own discrete uniform distribution as a categorical variable with a uniform prior and which can take on…
JEquihua
  • 1,217
  • 3
  • 20
  • 40
0
votes
1 answer

about creating frequency distribution against large inputs

Recently I need to create a histogram which shows frequency distribution of a large data set. This should be a simple job if the data set is small. However, the data set I need to plot contains about 800000000 numbers (lets assume each number takes…
Tom Z
  • 83
  • 1
  • 6
0
votes
1 answer

How do I efficiently process db queries for freq dist computation?

I've been working on this for a bit of time now, trying to create a frequency distribution database side: from itertools import permutations import sqlite3 def populate_character_probabilities(connection, table="freq_dist",…
user1438003
  • 6,603
  • 8
  • 30
  • 36
-1
votes
1 answer

How do I count the frequency of an item in a given range?

I've been given a lab where I'm supposed to create a program that reads a file with 1000 random integers between 10 to 59 inclusive and generate a frequency table like this: The ranges are 10 to 19, 20 to 29, 30 to 39, 40 to 49, and 50 to 59. Here…
-1
votes
1 answer

How do I print out the occurences of each element in an area specified by a bounding box of a 2d matrix?

void searchValidEntries(int arr[101][101], int XL, int YL, int XH, int YH){ int sizeX = (XL - XH) + 1; int sizeY = (YH - YL) + 1; for (int i = XH; i < XH + sizeX; i++ ){ for (int j = YL; j < YL + sizeY; j++){ cout <<…
Lio
  • 19
  • 1
  • 7
-1
votes
1 answer

C# WinsForm, Frequency Distribution Table [Updated]

Update 01 Thanks to Caius, found the main problem, the logic on the "if" was wrong, now fixed and giving the correct results. The loop still create more positions than needed on the secondary List, an extra position for each number on the main…
-1
votes
1 answer

How to get the average and standard deviation of frequency distribution of gray scale pixels?

I want help about frequency distribution in matlab , How to get the average and standard deviation of the frequency distribution for gray scale pixels , how to do that in matlab... please any ideas to help me
sara
  • 9
  • 2
-1
votes
1 answer

Frequency distribution using binCounts

I have a dataset of Ages for the customer and I wanted to make a frequency distribution by 9 years of a gap of age. Ages=c(83,51,66,61,82,65,54,56,92,60,65,87,68,64,51, 70,75,66,74,68,44,55,78,69,98,67,82,77,79,62,38,88,76,99, …
user817995
  • 17
  • 1
  • 4
1 2 3
14
15