Share Your Experience: Take the 2024 Developer Survey

# Questions tagged [histogram]

A graph that shows the frequency of numerical data using rectangles

31 questions
Filter by
Sorted by
Tagged with
32 views

### Why do seaborn.histplot and pyplot.hist generate two different histograms on the same data?

I'm trying to visualize a customer data, two of the variables I'm looking at are verified_status and video_transcription_length. ...
67 views

### How does Seaborn's histplot determine the bins' width?

I don't understand how Seaborn histplot's binwidth parameter works when the range is not an integer multiple of the bin width. ...
• 175
1 vote
65 views

...
52 views

### What is the reason behind this formula: 2 times interquartile range divided by length to the power of one third

In ggplot2 package documentation for geom_freqpoly, there is a formula in the last example which use a function to dynamically ...
• 63
49 views

### How to equalize the histogram of a continuous variable?

Let's say I have a continuous (real-valued) variable that I'll be bucketizing as part of my feature engineering. If I want to end up with the same number of items in each bucket (a flat histogram), I ...
• 277
62 views

### Distribution check - different results using plt.hist and seaborn.displot

I have an apparently very simple task: checking the distribution of values contained in an array data. Only thing is, I get two completely different results by ...
• 101
43 views

### Discretize interval into fixed number of bins while minimizing error

Background I have been working on an optimization problem related to the following function: $$y = f(x) = c_{1}(1-e^{-c_{2}(x-x_{0})})^{2}$$ where $c_{1}$, $c_{2}$ and $x_{0}$ are constants. Assume ...
906 views

### Plotly: histogram with no fill color

I'm using Plotly's graphic_objects.Histogram. I am trying to draw several histograms on the same plot. I'm not satisfied with the results of the 'overlay' option. I would like to draw histograms with ...
858 views

### Print histogram for each of the columns in my table with one single command

I would like to draw a histogram for each of the columns in my data.frame without having to write the the names of all of them, similar to what I did for inspect their unique values with: ...
• 101
541 views

### MaxDiff Histogram usage

I would like to understand how the MaxDiff algorithm works. The only example that I could find online was a set of slides by Chris Crifton. Given An attribute C 12, 5, 5, 5, 12, 1, 1, 20, 20, 2, 2, 12,...
• 147
1 vote
148 views

### Normality score

Having the following distributions (actual and predicted), Hist 1 to 3 (left to right). I would like to get a score ranging from 0-1 of how close the actual distribution is to be normal. I've found a ...
1 vote
96 views

### How to evaluate KDE against histogram?

I am currently testing some approaches for density estimation, and I think the basic approach of histograms may not be the best option to me and KDE is certainly a good alternative to go. While ago I ...
1 vote
44 views

### Getting different visualization results for jupiter and datacamp existing code shell. How to solve this? [closed]

The left one image is in jupiter notebook and the right one is from datacamp exercises. Can anyone please let me know why I am getting different results in Jupiter? Used hacker statistics to calculate ...
1 vote
22 views

### Triplet optimization producing a weird diagonal line?

I'm pretty sure this is the right forum for this, or let me know otherwise, I'll happily move this to a better place. I have a strange problem. I've written an algorithm designed to take three files ...
• 121
1 vote
38 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 ...
• 111
32 views

### Histogram indicating 20~25% in a certain range

This is a histogram of speeds of certain ships drawn to the density scale: I was told that the percent of speeds in the [17, 18) range is between 20 and 25, but I believe it's between 30 and 50. Can ...
• 13
1 vote
192 views

### Generating the right target for an LSTM model

Trying to explain my question on a simplified data set. Having the following dataset: ...
1 vote
23 views

### Histogram with financial (decimal) amounts vs. normal numeric

Take the following historgram data: This is an item of "bin size" 1 from 0 onwards. However, I do not think this looks appropriate, as every time I have seen a histogram (or someone has requested it),...
• 111
32 views

### Exploratory statistics, how to idenify and remove driver (bias)

I am looking at customer data, and created frequency tables (+histograms) for customers with different professional statuses and what the best time is to reach them. Status ranges here from employed, ...
• 53
2k views

### Fitting a pandas dataframe to a Poisson Distribution

I have a simple dataframe df2 that consist of indices and one column of values. I want to fit this dataframe to a poisson distribution. Below is the code I am using: ...
• 85
1 vote
266 views

### Should weight distribution change more when fine-tuning transformers-based classifier?

I'm using pre-trained DistilBERT model from Huggingface with custom classification head, which is almost the same as in the reference implementation: ...
908 views

### Re-sampling of a Histograms Bins

I would like to be able to resample a histograms bins without having access tot he raw data. And just to be clear, by resample, I mean to change the number of bins and still provide a good estimate ...
• 133
831 views

### Histograms in Machine Learning

I have a large data set with over 100k samples and I want to predict a continuous target feature from 4 other continuous features using Scikit Learn. For this project, I would like to visualize and ...
226 views

### Why do histogram bars vanish when we keep the bins value high in matplotlib?

Also, the histogram bar widths are different on certain values of bin. How to keep the bar widths uniform? I have tried using the rwidth but that dos not solve my problem. Data: ...
120 views

### How to force histogram plots to have same axes?

I am comparing my trained model with other benchmark models with the error histogram but the axis of histogram is different for each method as shown in figure.For instance to plot the error histogram ...
• 2,487
21k views

### How to plot an histogram from a dictionary data?

This is my data which is recorded in a dictionary. A sample of my dictionary looks like this: (id-s:{id-des:value}) ...
• 101
1 vote
145 views

### plot the histogram of purchases

i have a dataframe with 34154695 obs. in a dataset a Class variable with value 0 indicate "not purchased" and 1 indicate "purchase". ...
46k views

### Histogram plot with plt.hist()

I am a Python-Newbie and want to plot a list of values between -0.2 and 0.2. The list looks like this ...
• 51
393 views

### What is the best way to normalize histogram vectors to get distribution?

l have the following sample of 4 vectors of dimension 5 . They are sparse vectors, in a way that each value in a vector represent the frequency (number of occurrence of values). For instance v_1=[0,4,...
• 225
1 vote
252 views

### How to better represent three sets of categorical data?

Given three set of data with categorical integer x-axis with the same range (0-10): ...
• 2,410