Questions tagged [histogram]

A histogram is a graphical representation of the frequencies of a continuous variable. The variable is divided into bins and a bar is drawn for each bin, proportional to its frequency in the data.

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

How to properly plot a histogram with dates using ggplot? [migrated]

I would like to create an interactive histogram with dates on the x-axis. I have used ggplot+ggplotly. I've read I need to use to pass the proper information using the "text=as.character(mydates)&...
0
votes
0answers
10 views

Uniform Kernel vs Histogram pdf estimator

I want to know if in general Histogram pdf estimator and the Uniform Kernel density estimator are the same, I have derived following 2 equations but still have trouble wrapping my head around the ...
1
vote
1answer
35 views

Hypothesis Testing Probability Density Estimates [closed]

Is there a good way to test an probability density estimate against observed data? I know there exist various approaches to probability density estimation and testing individual parameters of density ...
0
votes
0answers
18 views

Help selecting a correct distribution for this data

I'm a geologist working with some sparse borehole data. The boreholes sample igneous intrusions and we're trying to fit a distribution to the thickness of the intrustion vs frequency (for use in other ...
1
vote
2answers
40 views

Making a continuous distribution from a discrete histogram

I was handed a discrete histogram of a random variable $x$. How do I generate 2,000 continuous samples from the histogram which represent the original random variable $x$? My first thought is to fit a ...
1
vote
0answers
9 views

SNR of a collection of waveforms follows the same distribution as an individual waveform

I'm generating some waveforms, produces by picking some $n$ samples from a Gaussian distribution. Not surprisingly, when I plot the sample values (i.e. a histogram with bins being the value of the ...
-1
votes
1answer
19 views

How can I match two distribution to make them not statistically different?

apologies for the weirdly formulated question. I have two distributions, X1 (blue histograms) and Y1 (yellow). They are statistically different. I need to extract a subsample from Y1 (let's call it Y2)...
0
votes
0answers
19 views

Comparing Mean and standard deviation from a normalized histogram and scipy.stats.lognormal fit

I am trying to fit a lognormal distribution to my experimental Data. The experimental data provides the frequency of occurrence of a certain length. The data is given in the code below. The counts_exp ...
0
votes
2answers
75 views

Histogram - what constitutes grouped data?

One of the questions on my course asked us to identify what type of data a histogram is used for. Two of the options were continuous or grouped data. The correct answer was continuous as this is the ...
0
votes
2answers
39 views

Histogram showing twice the probabilities

I have this list of numbers: ...
0
votes
1answer
59 views

Using $\chi^2$-Distance for Histogram-Comparison with 0-Valued Elements leads to NaNs

I want to compare two histograms by using the $\chi^2$-distance. There is a definition in the OpenCV-library. Also this question gives a lot of insight about this distance-metric. Because i didn't ...
2
votes
1answer
60 views

Plotting histogram for given ages correctly

I am plotting a histogram with given 'ages': ...
0
votes
0answers
141 views

Pennsylvania County Voting Anomaly Analysis (Benfords Law violation in the last election)

recently this paper https://www.scribd.com/document/483484973/PA-Voter-Analysis-Young has come out showing Biden's vote count in Allegheny County Pennsylvania has significant deviations from Benford'...
3
votes
1answer
72 views

Deriving Fisher Information Matrix over a Histogram Structure

I am reading a classic paper by Barron and Risannen, entitled: The Minimum Description Length Principle in Coding and Modeling In this paper they state the following idea: On this point I am ...
2
votes
0answers
95 views

Least Square Cross Validation for Density Estimation with Histograms

In a 1981 paper by Rudemo an easy to compute expression for the integrated squared error of a histogram relative to the true distribution is derived (Eq. 2.8 of the paper and the last equation in this ...
1
vote
1answer
62 views

Discrete data: Graphs and skewness

I am studying an introductory course in statistic " Essentials of Statistics". The author mentioned that Histograms are used to represent the frequency distribution of a contiuous data. Then ...
1
vote
0answers
18 views

Creating values from a normal inverse gaussian (NIG) distribution

I have a vector of empirical observations 'a' containing about 16000 values. empirical data The empirical histogram looks like the following: I'm trying to test, whether the normal inverse gaussian (...
2
votes
1answer
76 views

Formatting histograms in R

I'm trying to fit Variance-Gamma distribution to empirical data of 1-minute logarithmic returns. In order to visualize the results I plotted together 2 histograms: empirical and theoretical. ('a' is a ...
0
votes
0answers
41 views

does it make sense to draw a histogram for categorical variables?

Does it make sense to draw a histogram where its x-variable is categorical? I know that normally categorical variables are represented with bar charts, but I am just wondering if in practice it is ...
0
votes
0answers
21 views

Statistical significance multiple groups categorical distribution

Apologies, am a complete novice. I think this question is about as close as I found. I have a distribution of percentage data for a categorical variable as shown: I want to test for two different ...
1
vote
0answers
55 views

How to find margin of error for 99% confidence interval for skewed distribution?

Google Sheet of data I have the value and the frequency of the data. As you can see in the data sheet, the count number is quite high, so I am not able to write out the entire list of the data (ex. 2, ...
1
vote
0answers
60 views

Relationship between Histogram , Scatter plot , Normality , Linearity

I have the following doubt: suppose you have a categorical variable called 'neighborhood' with 20 categorical levels/values ("vila madalena", "mooca", etc). and I want to check ...
2
votes
1answer
248 views

Error Bars for Histogram with Uncertain Data

Context I have a set of data points $\{x_1, \dots, x_N \}$ along with the respective measurement uncertainties $\{\epsilon_1, \dots, \epsilon_N\}$ in them ($N \approx 100$). These data are basically ...
2
votes
1answer
28 views

Does a random variable's distribution also carry over to its histogram-estimated probabilities?

If I have a finite sample of a continuous random variable $x$ as a vector containing $N$ observations, then I bucket those observations based on their frequency of appearance into equally-sized bins ...
0
votes
1answer
75 views

How to merge probability distributions / histograms?

I'm wondering how to create a better predictive distribution based on past conditional events in a stock. For example, suppose I observe that historically after a 5% drop in a stock, tomorrow's ...
0
votes
1answer
18 views

Confusion about using box models to explain the central limit theorem

A text I'm reading (Freedman, Pisani, Purves - Statistics (2007)) states the central limit theorem as: the probability histogram of sums of numbers from a box converges to the normal curve as the ...
0
votes
0answers
17 views

Intuition behind unequal class interval histograms

In a histogram with unequal class interval, say for example, the data: ...
1
vote
1answer
260 views

What's the meaning of “frequency represents area of bars” in histogram?

In some statistics lessons, I have heard that frequency represents area of bars. So I was curious and plotted these numbers: [1, 2, 1, 3, 3, 4, 5, 1, 4, 6, 7, 3, 7, 5, 7, 2, 8, 9, 10, 8, 10] The ...
3
votes
0answers
278 views

Who invented the “Histogram”?

While going through Wikipedia's article History of statistics I found In 1786 William Playfair (1759-1823) introduced the idea of graphical representation into statistics. He invented the line chart, ...
0
votes
0answers
7 views

What is the difference between HLC (Histogram of local features) , CSS ( color self-similarity) ans MDST (Max DisSimilarity of Different Templates)

I'm new to computer vision and have been researching for Master thesis purposes in Detection algorithms and the techniques used in each. As I arrived to the point where alot of papers showed the ...
1
vote
1answer
36 views

Computing mean and sd from a frequency histogram (in R)

On page 4 of this document, there is a frequency distribution (histogram) of some students' math scores. You can access the exact same info. shown on page 4 of this document below (in ...
1
vote
0answers
23 views

Properties of the diff of a sorted uniformly generated set [duplicate]

I am studying a set of uniformly generated points, more concretely the distance between the points. When the set is unsorted the histrogram shows it is normally distributed and that matches my ...
0
votes
0answers
40 views

How can I interpret a kernel density plot where x axis is the probability?

I am confused on how to interpret the kernel density estimation (kde) plot given below, which is of the predicted probabilities from my model for class 0 and class 1. What conclusions can I draw from ...
0
votes
0answers
31 views

Maximum-likelihood histogram from noisy data

Given a sequence of noisy observations $\{x_k\in\mathbb{R}\}$ and a set of thresholds $\{t_i\in\mathbb{R}\}$ we can bin the observations using the thresholds to create a histogram. However, since we ...
0
votes
0answers
30 views

Approximating a distribution with an integer histogram

Given a distribution $f:[0,a)\rightarrow\mathbb{R}$, is there a simple algorithm by which to find a sequence $\{h_i\in\mathbb{N_0}\}$ such that $f(x)$ is approximated by $h_{floor(x)}$ as a histogram ...
1
vote
0answers
107 views

Reference for the rule of thumb $\sqrt{n}$ for the number of bins of an histogram

Does anyone have an idea where the rule of thumb $\sqrt{n}$ for the number of bins of an histogram come from? I need a reference to put in my article. I remember that rule from my college times, but ...
0
votes
0answers
41 views

Which statistical tests should I use for this data?

I have been given data from Kickstarter ( Kickstarter is a crowd funding platform that helps people garner funds for their business ideas). The data has about 15,000 rows and about 10 - 15 columns. ...
0
votes
0answers
19 views

How to sample biased distribution from another distribution?

I have a PSNR histogram distribution for 6k images and I want to sample a few images from this distribution. But as you can see the distribution is right-skewed and the samples will less PSNR values ...
0
votes
1answer
38 views

Discerning differences in groups with millions of datapoints: is a GLM even valid?

I have a MASSIVE dataset of 22 million shrubs from a basin in the southwest US. I have selected 2 response variables which are both positive continuous variables: Shrub Canopy Volume (cubic meters) &...
0
votes
0answers
13 views

Freedmans rule to find number of bins

I have a data set that is 30162 rows long. I am trying to split age into bins but I am struggling to understand the concept of the rule with my data set. As a quick examples this is what I did: <...
1
vote
1answer
43 views

Generating samples from a histogram

I don't quite know how to ask this question or what to search for but I'm certain this method has a name.. I have a uni variate binned distribution, something like x = { 0, 10 , 20 , 30,....} with ...
1
vote
1answer
40 views

Distribution of urns for non-uniform distribution

Let $X_1,\dots, X_n$ be i.i.d. random variables on a set $X$. Let $j$ be a uniformly random number from $1$ to $n$; define a new random variable $$ Y(j) = \frac{\left\vert \{i: X_i=X_j\}\right\vert}{...
2
votes
1answer
39 views

Estimating mean values given a histogram (without using median point)

I have a list of stock trades made by US senators and the exact amount of money they spend on a trade is not disclosed, they only give a range of values. Below is the frequency table for the 8600 ...
1
vote
0answers
18 views

Non asymptotic error bound for$f(x)=\mathbb{E}[Y|X=x]$

I am considering the following model: $(X_i,Y_i)_{i=1}^n$ are iid random pairs with $X_i\in[0,1]$ and $Y_i\in\mathbf{R}$. Let $f(x)=\mathbb{E}[Y|X=x]$. Consider an estimate $\hat{f}_n$ of $f$. Under ...
3
votes
1answer
365 views

R histogram of p-values weird (uniform)?

I created a short Monte Carlo script to check how z-values from z-tests and their correspond when I change different parameters. My script is the following. I have a "population" of normal ...
3
votes
1answer
25 views

Help on understanding these plots

I am very weak in the english language and I need to understand how I can describe my plots. It's the best way for me to learn, understand plots and memorize the phrases. So my first question is, ...
1
vote
0answers
18 views

Visualizing historical commute times

I am looking for a visualization of travel times for a specific commute route (going from A to B, considering traffic of course), for example in a histogram. I would like to answer the question "how ...
0
votes
0answers
231 views

Kullback-Leibler Divergence for histograms: How to choose bin size?

So I have two set of data points. To be precise these are measurement of surface areas of some objects using two different methodologies (which could give a different object count and different areas)....
1
vote
0answers
68 views

How to compare the chi-square distance values obtained from comparing different histogram pairs?

I have a data sequence that is generated from a computer simulation (discrete event simulation). It is a simple sequence of a single state value, e.g., 10 11 12 11 12 13 ...15. It contains N number of ...
2
votes
1answer
248 views

How to generate random data, that's from Beta distribution with specific density function in R?

So, considering that $\theta = 2$ and density function is $f(x) = \theta x^{\theta - 1}, 0<x<1$ and $0$ anywhere else, how do I generate random data from this particular distribution? Here is ...

1
2 3 4 5
10