Questions tagged [histogram]
A graph that shows the frequency of numerical data using rectangles
30
questions
1
vote
0
answers
34
views
0
votes
1
answer
31
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 ...
0
votes
0
answers
40
views
how to visualise a distribution over time?
Background
I'm analysing data where data recency and an attribute of the data, in this case person's age, could serve to identify a simply defined cohort that can be considered defunct. I'd like to ...
0
votes
0
answers
38
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 ...
0
votes
0
answers
42
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 ...
2
votes
0
answers
33
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 ...
0
votes
1
answer
780
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 ...
0
votes
1
answer
587
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:
...
0
votes
1
answer
480
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,...
1
vote
2
answers
127
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
0
answers
75
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
0
answers
37
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
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 ...
1
vote
0
answers
37
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 ...
0
votes
1
answer
26
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 ...
1
vote
1
answer
175
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
0
answers
22
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),...
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, ...
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:
...
1
vote
1
answer
232
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:
...
3
votes
1
answer
785
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 ...
3
votes
1
answer
782
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 ...
2
votes
1
answer
220
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:
...
2
votes
0
answers
106
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 ...
0
votes
1
answer
20k
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})
...
1
vote
1
answer
144
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".
...
5
votes
2
answers
45k
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
...
0
votes
1
answer
387
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,...
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):
...
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 <...