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

Coding an interface where user selects date reoccurnace

I need to create an interface where a user needs to select how many times his magizine/newspaper gets distributed. Some magazines/newspapers get distributed Several times a week. Several times a a month: --either by day (e.g. every second tuesday)…
2
votes
1 answer

How to calculate density and frequency before using ggplot2?

After this post, where I saw how to do a clickable histogram, I was wondering if there is a way to use brushedPoints in order to get the output from the brush. I saw that I need a x-axis and y-axis. However, since ggplot2 allows me to get a…
emr2
  • 1,436
  • 7
  • 23
2
votes
2 answers

Creating a frequency distribution table in Python

I'm new to Python and Pandas, and i'm struggling to create a frequency distribution table form my df. My dataframe is something like this: Balances Weight 10 7 11 15 12 30 13 20 10 15 13 20 edit: The balance numbers are its…
2
votes
1 answer

Count letter frequencies in descending order

I have a data looks like this df<-structure(list(col = structure(c(9L, 2L, 13L, 11L, 5L, 7L, 10L, 6L, 8L, 3L, 12L, 4L, 1L), .Label = c("HHRGGVCTS", "MGSSN", "MVKTTYYDVG", "RRHYNGAYDD", "RTSTN", "S", "SNCWC", "sp|P31689|DNJA1_HUMAN DnaJ homolog…
Learner
  • 757
  • 3
  • 15
2
votes
2 answers

identify the frequency of the common pattern from a number of integers

I have many rows of integers with 7 columns each, it is some biological points recorded from experiment. The numbers are from 1 to 7 only and I would like to identify the common pattern of those integers appeared. first few rows of df: …
2
votes
1 answer

"type" not working in R plot function with ecdf object

My aim is to generate a cumulative distribution function made with steps, using the parameter type="s", but when i try for example plot(ecdf(rgeom(0:40,0.3)), type="s") it says the error Error in plot.default(NA, NA, type = "n", xlim = xlim, ylim =…
Poli
  • 89
  • 1
  • 2
  • 8
2
votes
1 answer

NLTK frequency distribution for group of words

Could you please help me how to calculate frequency distribution of "group of words"? In other words, I have a text file. Here is a snapshot: Here is my code to find the 50 most common words in the text…
2
votes
0 answers

Finding dirichlet priors of a dataset with PyMC3

How to find the dirichlet priors using pymc3? I've tried the following: import pymc3 as pm import numpy as np population = [139212, 70192, 50000, 21000, 16000, 5000, 2000, 500, 600, 100, 10, 5, 5, 5, 5] with pm.Model() as model: zipfy =…
alvas
  • 115,346
  • 109
  • 446
  • 738
2
votes
1 answer

Calculating the standard deviation from columns of values and frequencies in Power BI

I am trying to calculate the standard deviation of a set of values in PowerBI and I am stuck. There are two columns in a table (days and count). This is a frequency distribution of a transportation lane. Days goes from 1 to 100, count is the number…
2
votes
1 answer

Python: Sorting dates after counting them in pandas

I extracted dates and times from a string and converted them to the Pandas DatFrame, by wrintig: df = pd.to_datetime(news_date, format='%m/%d/%Y') and the output is like: ['1997-10-31 18:00:00', '1997-10-31 18:00:00', '1997-10-31…
mk_sch
  • 1,060
  • 4
  • 16
  • 31
2
votes
4 answers

Sum up the number of words frequency using FreqDist, python

How to sum up the number of words frequency using fd.items() from FreqDist? >>> fd = FreqDist(text) >>> most_freq_w = fd.keys()[:10] #gives me the most 10 frequent words in the text >>> #here I should sum up numbers of each of these 10 freq words…
Gusto
  • 1,483
  • 9
  • 23
  • 34
2
votes
1 answer

Frequency tables by groups with weighted data in R

I wish to calculate two kind of frequency tables by groups with weighted data. You can generate reproducible data with the following code : Data <- data.frame( country = sample(c("France", "USA", "UK"), 100, replace = TRUE), migrant =…
2
votes
0 answers

How can I change irregular wave into Fourier series

I made irregular wave consisting of 16 regular waves with random phase difference. In addition, I tried to divide the irregular wave to several waves which are forms of fourier series. So I made the code below line 11. But when I ran this code, I…
양희승
  • 21
  • 1
2
votes
1 answer

SQL query: How to count frequency over a many-to-many relation?

I have a table for blogposts and a table for tags, with a many-to-many relation between them. How can I extract the most frequent tag across a subset of blogposts? (e.g. only those from the past year) Is there a way to extract the frequencies of all…
GJ.
  • 5,226
  • 13
  • 59
  • 82
2
votes
1 answer

Shifting disaggregate distribution to match more aggregate level distribution

I have what is essentially allocation problem. What I have: I have observations of small geographic areas, like census tracts. For each, I have the count of people in four different age groups. Each tract belongs to a subregion. Now, I know the…
ako
  • 3,569
  • 4
  • 27
  • 38
1 2
3
14 15