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
1
vote
2 answers

Demographic simulation via arbitrary set of centiles using SQL

As the title suggests, I'd like to take some test data & mold it into a convincing demographic sample. In a table of centile rankings I have an arbitrary distribution pattern, 21 rows describing centiles set at intervals of 5 that describe the…
1
vote
1 answer

PHP Generate Array based on Value Frequency

I'm trying to understand the best way to build an ordered array of values based on a frequency in which they should occur. Resulting array could have zero to some repeating characters, based on the characters' frequency and ordering isn't relevant.…
ocergynohtna
  • 1,703
  • 2
  • 21
  • 29
1
vote
1 answer

counting numbers in corresponding range

let suppose that we have following numbers 49 57 38 73 81 74 59 76 65 69 54 56 69 68 78 65 85 49 69 61 48 81 68 37 43 78 82 43 64 67 52 56 81 77 79 85 40 85 59 80 60 71 57 61 69 61 83 90 87 74 and let us…
user466534
1
vote
3 answers

R Count of strings by two factors

I need some help. I have the following table: …
J. Doe.
  • 1,255
  • 1
  • 12
  • 25
1
vote
2 answers

Visualizing relative frequency in R / ggplot2

I tried to wrap my head around the problem of how to visualize a bunch of relative frequencies in a way that makes it easy to see how they fare compared to each other. The differences aren't gigantic in terms of distribution, which, of course, I…
S. Leu
  • 13
  • 4
1
vote
1 answer

Network drive indexing frequency

The company I work for have millions of documents that are stored and shared on multiple network drives mapped to users' drives (e.g.] d:\ to \server1\, etc). What I'd like to implement is to crawl over network drives and let users find files fast…
1
vote
1 answer

Create n-way frequency tables using R

I need some help to create a n-way frequency table. I am using the code below: tab <- table(VAR1,VAR2,VAR3) finaltab <- ftable(tab,row.vars=c(2,3)) print(finaltab) VAR1, VAR2 and VAR3 are all factor variables. By doing this, I produce the…
1
vote
0 answers

How to calculate relative frequency from two lists

This is the outputs of my code: List1=[('a',6),('b',7),('c',4)] List2=[(('a','x'),2),(('a','y'),3),((b,z),2)] What I am trying to figure out is probablity of occurence 'a' w.r.t 'x'? Which means I have to calculate occurrence('a','x')/occurrence…
SKY
  • 175
  • 2
  • 8
1
vote
0 answers

Term Document matrix or Document Term matrix which one is better?

I am working on counting the frequency of unique words in a text document in R 3.2.2. I have collapsed so many articles into one single text document now and framed into corpus using tm package. desc<-paste(column_input, collapse=" ") desrc <-…
Bala
  • 193
  • 1
  • 9
1
vote
0 answers

Probability of finding a set of values within a distribution

I have two distributions (sets of values) and wish to know the probability that one set "fits" into another. Something like this: dist = [355, 221, 302, ...] values = [550, 537, 404, ...] odds = odds_all_values_in_dist(dist,values) I didn't try…
Jonas Byström
  • 25,316
  • 23
  • 100
  • 147
1
vote
1 answer

Class for Counting frequency of numbers in a interval

I need to build a bar gragh that illustrate a distribution of pseudorandom numbers that determined by linear congruential method Xn+1 = (a * Xn + c) mod m U = X/m on the interval [0,1] For example: Interval Frequency [0;0,1] …
niar_q
  • 153
  • 9
1
vote
1 answer

Efficient algorithm for counting frequency of numbers in an intervals

I need to build a bar gragh that illustrate a distribution of pseudorandom numbers that determined by linear congruential method Xn+1 = (a * Xn + c) mod m U = X/m on the interval [0,1] For example: Interval Frequency [0;0,1] …
niar_q
  • 153
  • 9
1
vote
2 answers

Calculating grouped variance from a frequency table in R

How can I, in R calculate the overall variance and the variance for each group from a dataset that looks like this (for example): Group Count Value A 3 5 A 2 8 B 1 11 B 3 15 I know to calculate the variance as a…
blast00
  • 559
  • 2
  • 8
  • 18
1
vote
3 answers

How do I create a distribution group of a range of numbers by a given number of groups

In Javascript, if I have a range of numbers, say 0-10000. like this: var min = 0; var max = 10000; and I want to split this range into a number of buckets by a input: var buckets = 5; in this case, I want to return an array of numbers that splits…
arcee123
  • 101
  • 9
  • 41
  • 118
1
vote
2 answers

Calculating binary signal frequency & duration

I am trying to analyze some signal data collected at 120 Hz. I have Excel and SPSS at my disposal (as well as MATLAB, but I'm not really familiar with it). I've been searching online for about and hour and half and can't seem to find what I'm…
MsHF
  • 115
  • 7