Skip to main content

Questions tagged [histogram]

A graph that shows the frequency of numerical data using rectangles

Filter by
Sorted by
Tagged with
0 votes
0 answers
35 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. ...
user161913's user avatar
0 votes
0 answers
105 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. ...
Evan Aad's user avatar
  • 175
1 vote
0 answers
73 views

Understanding lgbm histogram building

...
figs_and_nuts's user avatar
0 votes
1 answer
65 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 ...
rez's user avatar
  • 113
0 votes
0 answers
50 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 ...
Mehran's user avatar
  • 277
0 votes
0 answers
64 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 ...
sato's user avatar
  • 101
2 votes
0 answers
44 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 ...
Alfred Andersson's user avatar
0 votes
1 answer
921 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 ...
user130819's user avatar
0 votes
1 answer
895 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: ...
Alfonso_MA's user avatar
0 votes
1 answer
554 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,...
Evan Gertis's user avatar
1 vote
2 answers
154 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 ...
Shlomi Schwartz's user avatar
1 vote
0 answers
101 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 ...
Adelson Araújo's user avatar
1 vote
0 answers
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 ...
S.Sharleen's user avatar
1 vote
0 answers
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 ...
10GeV's user avatar
  • 121
1 vote
0 answers
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 ...
Khaled's user avatar
  • 111
0 votes
1 answer
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 ...
JChang's user avatar
  • 13
1 vote
1 answer
194 views

Generating the right target for an LSTM model

Trying to explain my question on a simplified data set. Having the following dataset: ...
Shlomi Schwartz's user avatar
1 vote
0 answers
24 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),...
David542's user avatar
  • 111
0 votes
0 answers
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, ...
ColRow's user avatar
  • 53
0 votes
1 answer
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: ...
HaneenSu's user avatar
1 vote
1 answer
278 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: ...
Marcin Zablocki's user avatar
3 votes
1 answer
930 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 ...
mazecreator's user avatar
3 votes
1 answer
842 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 ...
user120112's user avatar
2 votes
1 answer
227 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: ...
Varun Khanna's user avatar
2 votes
0 answers
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 ...
Muhammad Ali's user avatar
  • 2,487
0 votes
1 answer
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}) ...
dina's user avatar
  • 101
1 vote
1 answer
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". ...
maira khan's user avatar
5 votes
2 answers
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 ...
Thomas's user avatar
  • 51
0 votes
1 answer
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,...
Joseph's user avatar
  • 225
1 vote
1 answer
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): ...
alvas's user avatar
  • 2,410
7 votes
2 answers
14k views

Plotting different values in pandas histogram with different colors

I am working on a dataset. The dataset consists of 16 different features each feature having values belonging to the set (0, 1, 2). In order to check the distribution of values in each column, I used <...
enterML's user avatar
  • 3,041