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.

531 questions
Filter by
Sorted by
Tagged with
1 vote
26 views

Why does my probability plot not agree with my histogram?

I am trying to determine the best distribution to characterize a dataset. My dataset visually looks like Cauchy distribution would be a good fit, so I used python to fit a Cauchy distribution to my ...
• 11
19 views

How to convert units of KDE into physical units

I have a sample of people's heights. If I histogram it, I would usually divide by the bin width, so that my result becomes independent of my bin width, and I would label the axis something like (...
• 173
18 views

Is it any meaningful taking the histogram of many histograms?

So I’m working on pixel-level assessment of chest x-ray images from the NIH Chest X-ray dataset. The diseases labels on the images are a set of z different categories (i.e. Pneumonia, effusion, etc…). ...
22 views

Find mean value of total N with only relative frequency and mid point histogram [duplicate]

I have the following data of number of vouchers redeemed : How can i calculate the mean value of total vouchers?
26 views

Calculate mean of sample size based on relative frequency in histogram [duplicate]

I have the following data of number of vouchers redeemed : How can i calculate the mean value of total vouchers?
10 views

Comparing groups when each member provides multiple datapoints per visit

First timer - apologies for the length of the question and any incorrect use of terminology... I wish to compare two groups in a longitudinal study where there is a small 'n' (4 or 5 in each group). ...
21 views

Mean squared error of 2 distributions when there are many zero values

I am comparing two (2-D) distributions using mean squared error. I take the difference between distributions, square them, average them and multiply them by the area of a pixel/bin. These ...
• 11
37 views

Probability for a bin in a binned histogram

This question is very basic, but I cannot figure the error in my thinking. According to the author of the book "Pattern Recognition and Machine Learning", we can get the Probability ...
• 43
25 views

Selecting the optimal bandwidth in kernel density estimation

I have a question regarding kernel density estimation. At the moment I have a set of sample date $V$, where for each $v \in V$ I have an associated standard deviation $\sigma_v$ (some measurements ...
20 views

Estimating the Probability in a statistical analysis

I am carrying out a statistical analysis where I run the simulation (Matlab) 5000 times, to get 5000 results. The objective is to estimate the probability of having a result that is less than or equal ...
• 143
1 vote
41 views

Histogram vs Bar Graph [closed]

I have data for number of patients used to collect the data in a hospital for each day. I want to display them as a graphical representation of number of patients used to collect the data for each ...
• 13
3 views

What metric is best fitted for comparing encodings?

I am trying to compare two distributions, that each correspond to different numerical encodings, e.g. compare fp32 encodings to various other encodings on a same set of values. However I do not know ...
11 views

Detecting Mean differences on streaming data

Im taking online measurements on highly skewed real valued data of two possibly unrelated distributions. The precision is low, which means small values tend to come in duplicates, while large values ...
1 vote
14 views

Empirical distribution for feature binning

In paper "A simple yet effective baseline for non-attributed graph classification" (https://arxiv.org/pdf/1811.03508.pdf) authors use empirical distribution for feature binning. Precisely, ...
• 199
1 vote
82 views

Histogram of a Sample with Overlay of Population Density

To familiarize myself with histograms and probability density functions, I decided to sample various distributions, plot samples' histograms and their corresponding probability distribution functions. ...
• 121
26 views

Infer (supposed) Poissonian probability from data

Suppose to count the drops of rain in a square meter in 15 seconds, producing 16 observations: 40, 20, 24, 15, 23, 12, 39, 26, 29, 33, 16, 36, 17, 32, 40, 15. What is the probability of counting 28 ...
• 153
1 vote
24 views

How to adjust for the baseline difference between groups for a histogram

I have data from an experiment that tested responses to stimuli in females and males. I measured baseline for both groups prior to presenting the stimuli. The baseline for males is higher than for ...
28 views

Is there a way to identify key points of change in length-frequency (histogram) data through statistical means?

I am performing a length-frequency analysis (read: histogram) of data in fishes. This is a common way in which fish biologists analyze life history data in fishes. An example of the data is as follows....
• 181
267 views

How do I overlap a Poisson distribution with a histogram

I expect to get a Poisson distribution over my histogram but as I can see from the graph, I get a straight line. Would really appreciate insight.
• 21
65 views

Should histograms be normalized first before fitting them?

Assume I have some data that follow a power law and I would like to estimate the exponent $a$. An obvious way to do so is to bin the data and then fit the power law to the histogram. However I found ...
• 105
416 views

Inverse transform method, theoretical graph not matching sample

Suppose a density function is f_X(x)=\left\{\begin{aligned}\frac{1}{(1+x)^2} & \quad x \ge 0 \\ 0 & \quad \text{otherwise.}\end{aligned}\right. I am trying to write an algorithm to ...
• 113
28 views

How do you estimate the mode of a histogram with logarithmic bin width?

For the purpose of estimating the median and other quantiles, I summarize samples in a histogram whose bins grow logarithmically in width. For example, to guarantee a 1% worst case absolute relative ...
1 vote
49 views

Mann-Whitney U test on "histogram-compressed" data?

I want to perform a very large number of Mann-Whitney U-tests between many groups from data that I will get in from a database. I would prefer to use a pre-implemented version of this test. I think ...
1 vote
58 views

Shape of a Histogram with Equally Likely Outcomes

In a large class of introductory Statistics students, the professor has each student toss a coin 16 times and calculate the proportion of his or her tosses that were heads. The students then report ...
• 333
89 views

Do my data follow normal distribution? and what does it mean if not? Can I have to peaks?

I have to understand if my graphs follow the normal distribution but I don't know. Can they have two peaks like two columns? Are they normal or not? what it means if they are not normal? The aim is to ...
67 views

Approximation of a polynomial via histogram

Note: I originally tried to pose this question generally, without discussing the specific type of stochastic process. I hope that this can still be an interesting question generally. Assume that we ...
17 views

How to aggregate time-bucketed values across a set

I am trying to perform some analysis over a dataset of multiple projects. This dataset has multiple months of data for every single project. Because projects occur at different times and have ...
• 111
1 vote
317 views

Why are rating distributions 'smoother' when there are more players?

Consider the following rating distributions by variant/time control on lichess. The bullet, blitz and rapid rating distributions look very, well, 'smooth' (or holomorphic/analytic or harmonic or ...
• 2,176
18 views

Histogram where the bin heights take values into account

In a regular histogram the bin heights reflect the density of observations/data within them. Therefore, the areas of the bins on the chart reflect the quantity of observations they cover. They are for ...
29 views

Distribution for the number of Gaussian random variables in a given bin (or interval)?

Suppose I have N Gaussian random variables (assume 1d) with mean $x_n$ and standard deviation $\sigma_{x,n}$. Suppose I then generate samples from these random variables, and bin the generated data ...
28 views

Departure from uniformity histogram

Let us consider the histogram of a random variable. It is uniform up to a certain value $\bar{x}$, while beyond it a growth is present,as shown in the figure. I would like to obtain an estimate of the ...
25 views

Fit a histogram of sparse data with a monotonically decreasing function

I have a business problem where essentially we have counts across a certain metric which at times suffer from low observation counts! So essentially when you look across the bins you'll have adequate ...
• 21
50 views

Is estimating histogram bin width of already binned dataset reasonable?

as a starting point I have a 1D dataset representing population counts along the spatial dimension x. The dataset is already binned, thus representing population counts per 100 meter intervals (=bins)....
1 vote
32 views

Interpretting overlapping histogram

I obtained the following histogram when performing data analysis. This histogram refers to the duration of cab trips in the NYC taxi dataset. The histogram clearly shows two overlapping populations ...
• 11
1 vote
29 views

Estimate the number of ranges that overlap

I am a CS major and I am dealing with this problem about finding the join estimation for overlapping ranges. Imagine that you have two tables (sets) with ranges ex. integers ([2,10), [5, 20)) and you ...
• 11
2k views

Poisson Distribution fit with large counts (Python) [closed]

I'm trying to fit a dataset to a Poisson distribution, but have probably messed up the parameters somewhere along the way. My data consists of 112 10 minute intervals where radiation hits a detector ...
1 vote
43 views

How are regression lines calculated for 2D histograms?

I've been looking into how to fit a line to a 2D histogram and have come across different pieces of information which I can't quite piece together. To show what I mean, I want to achieve something ...
• 245
29 views

Negative KL divergence for train_test_split in sklearn for y_train and y_val

So, I am trying to understand if I have fair split of my train and val sets using train_test_split of sklearn, so I decided to run the KL divergence and JS div tests and I get the following results. ...
• 514
7k views

Could any equation have predicted the results of this simulation?

Suppose there is a coin that has a 5% chance of landing on HEADS and a 95% chance of landing on TAILS. Based on a computer simulation, I want to find out the following : The average number of flips ...
• 5,892
21 views

How to detect non-homogeneity

Below are the samples of NDVI images and belonging histograms. Quite often, there is a mixture of various patterns in the single image that might represent either multiple fields, disease or any other ...
• 1,303
22 views

How to test if one histogram bin has higher count than expected?

I'm studying the ratio $(A/B)$ of two physical constituents $A$ and $B$ that reside in each sample. It's hypothesized that $A$ and $B$ can "split" not unlike cells - if A duplicates before B ...
• 151
261 views

Mean, Mode, Median of a histogram?

Based on my understandings, I would say for the below histogram that the mode is zero, the mean is between 0 & 1 and the median is 1. I'm I right?
• 77
1k views

About histogram and shape of distribution

Suppose that it was found in a company that the distribution of reviews among reviewers is highly skewed so that a small number of reviewers do most of the reviews while a larger number of reviewers ...
• 77
42 views

Videogame market analysis

I'm looking if there is a name for what I'm trying to do. TLDR: Market contains offers to exchange currency 1 for currency 2. I want to make a histogram showing total volumes of currency1 in specific ...
62 views

Variance of 2D binned uniform density

I will start off by saying that I am aware of this post, but applying Sheppard's correction in my case would seem to lead to a negative variance; so either I don't understand that post, or I have a ...
• 246
1 vote
36 views

Is there a simple method to produce a histogram of the Wilson distribution? [closed]

The Wilson score for some observed binomial distribution $(\hat{p},N)$ gives you a confidence interval on $p$. However, I need a histogram over the possible values of $p$. (With a relatively low ...
79 views

Can a histogram have just one value as its bin in a probability histogram?

On [this link], (http://www.henry.k12.ga.us/ugh/apstat/chapternotes/7supplement.html) there is a histogram where on the x-axis, all the sums of the two dice are there {2, 3, 4, 5, ... 12}, and on the ...
1 vote
69 views

Why doesn't this histogram have a "bell curve" shape?

I am looking at the following graphs (in R): n = floor(rnorm(10000, 500, 100)) t = table(n) barplot(n) barplot(t) Does ...
• 5,892