How to visualize change in a distribution with a few outliers that account for a very large percent of the...
$begingroup$
I'm working on an edtech product where some of our traffic lands on webpages about textbooks.
Textbooks belong to subjects like Algebra, Calculus and Spanish. In each of our subjects, we have "whales" - individual books that account for a large percent (~20%) of total subject traffic.
Year over year, these whales grow or shrink (sometimes books are replaced in a school, or schools drop textbooks altogether). This change in whale traffic contributes to a big change in overall subject traffic.
I'm trying to figure out how to visualize this change, given a dataset that looks something like the table attached below (it shows only 2 months traffic per book, but I have access to all the months).
I've tried overlapping histograms (and boxplots), where each histogram is a month. But this visualization doesn't indicate how huge my whales (outliers) are, and how much influence they have.
Any help on chart types or how to otherwise tell this story would be much appreciated.

visualization outlier distribution
New contributor
samthebrand is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
$endgroup$
add a comment |
$begingroup$
I'm working on an edtech product where some of our traffic lands on webpages about textbooks.
Textbooks belong to subjects like Algebra, Calculus and Spanish. In each of our subjects, we have "whales" - individual books that account for a large percent (~20%) of total subject traffic.
Year over year, these whales grow or shrink (sometimes books are replaced in a school, or schools drop textbooks altogether). This change in whale traffic contributes to a big change in overall subject traffic.
I'm trying to figure out how to visualize this change, given a dataset that looks something like the table attached below (it shows only 2 months traffic per book, but I have access to all the months).
I've tried overlapping histograms (and boxplots), where each histogram is a month. But this visualization doesn't indicate how huge my whales (outliers) are, and how much influence they have.
Any help on chart types or how to otherwise tell this story would be much appreciated.

visualization outlier distribution
New contributor
samthebrand is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
$endgroup$
add a comment |
$begingroup$
I'm working on an edtech product where some of our traffic lands on webpages about textbooks.
Textbooks belong to subjects like Algebra, Calculus and Spanish. In each of our subjects, we have "whales" - individual books that account for a large percent (~20%) of total subject traffic.
Year over year, these whales grow or shrink (sometimes books are replaced in a school, or schools drop textbooks altogether). This change in whale traffic contributes to a big change in overall subject traffic.
I'm trying to figure out how to visualize this change, given a dataset that looks something like the table attached below (it shows only 2 months traffic per book, but I have access to all the months).
I've tried overlapping histograms (and boxplots), where each histogram is a month. But this visualization doesn't indicate how huge my whales (outliers) are, and how much influence they have.
Any help on chart types or how to otherwise tell this story would be much appreciated.

visualization outlier distribution
New contributor
samthebrand is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
$endgroup$
I'm working on an edtech product where some of our traffic lands on webpages about textbooks.
Textbooks belong to subjects like Algebra, Calculus and Spanish. In each of our subjects, we have "whales" - individual books that account for a large percent (~20%) of total subject traffic.
Year over year, these whales grow or shrink (sometimes books are replaced in a school, or schools drop textbooks altogether). This change in whale traffic contributes to a big change in overall subject traffic.
I'm trying to figure out how to visualize this change, given a dataset that looks something like the table attached below (it shows only 2 months traffic per book, but I have access to all the months).
I've tried overlapping histograms (and boxplots), where each histogram is a month. But this visualization doesn't indicate how huge my whales (outliers) are, and how much influence they have.
Any help on chart types or how to otherwise tell this story would be much appreciated.

visualization outlier distribution
visualization outlier distribution
New contributor
samthebrand is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
samthebrand is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
samthebrand is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked yesterday
samthebrandsamthebrand
1063
1063
New contributor
samthebrand is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
samthebrand is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
samthebrand is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
To visualize change in the size of multiple entities that are contributing to a total through time, e.g. total (t) = book_1 (t) + book_2 (t) + ..., we can use Stacked Area Plot. This plot can be used for normalized and un-normalized (absolute) values.

Preprocessing
For large number of entities, to avoid cognitive load, we can keep only
those entities that become significant (whale) at some point in the plot, and group all the others under an "ordinary" entity. This way, cognitive load is minimized and only those entities that matter at some point are distinguished. For example, distinguishing books that have more than 10% of traffic at some point in the plotted time span.If total fluctuation is very high, logarithm of values can be plugged into the plot.
$endgroup$
$begingroup$
This is helpful. But these charts get very noisy with hundreds of observations per period. (We have hundreds of books per subject.) And it takes a lot of cognitive load, at a glance, to tell what's growing and what's shrinking. I do appreciate the suggestion!
$endgroup$
– samthebrand
yesterday
$begingroup$
@samthebrand I updated the answer for this problem
$endgroup$
– Esmailian
yesterday
$begingroup$
Thanks @esmailian. This is a good answer, but I don't think it is THE answer, given that I'm interested in visualizing YOY change. For a stacked area chart I would have to look at latest period and then compare its relative size to the period twelve months prior. This feels hard. There's got to be a better way.
$endgroup$
– samthebrand
yesterday
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "557"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
samthebrand is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f47636%2fhow-to-visualize-change-in-a-distribution-with-a-few-outliers-that-account-for-a%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
To visualize change in the size of multiple entities that are contributing to a total through time, e.g. total (t) = book_1 (t) + book_2 (t) + ..., we can use Stacked Area Plot. This plot can be used for normalized and un-normalized (absolute) values.

Preprocessing
For large number of entities, to avoid cognitive load, we can keep only
those entities that become significant (whale) at some point in the plot, and group all the others under an "ordinary" entity. This way, cognitive load is minimized and only those entities that matter at some point are distinguished. For example, distinguishing books that have more than 10% of traffic at some point in the plotted time span.If total fluctuation is very high, logarithm of values can be plugged into the plot.
$endgroup$
$begingroup$
This is helpful. But these charts get very noisy with hundreds of observations per period. (We have hundreds of books per subject.) And it takes a lot of cognitive load, at a glance, to tell what's growing and what's shrinking. I do appreciate the suggestion!
$endgroup$
– samthebrand
yesterday
$begingroup$
@samthebrand I updated the answer for this problem
$endgroup$
– Esmailian
yesterday
$begingroup$
Thanks @esmailian. This is a good answer, but I don't think it is THE answer, given that I'm interested in visualizing YOY change. For a stacked area chart I would have to look at latest period and then compare its relative size to the period twelve months prior. This feels hard. There's got to be a better way.
$endgroup$
– samthebrand
yesterday
add a comment |
$begingroup$
To visualize change in the size of multiple entities that are contributing to a total through time, e.g. total (t) = book_1 (t) + book_2 (t) + ..., we can use Stacked Area Plot. This plot can be used for normalized and un-normalized (absolute) values.

Preprocessing
For large number of entities, to avoid cognitive load, we can keep only
those entities that become significant (whale) at some point in the plot, and group all the others under an "ordinary" entity. This way, cognitive load is minimized and only those entities that matter at some point are distinguished. For example, distinguishing books that have more than 10% of traffic at some point in the plotted time span.If total fluctuation is very high, logarithm of values can be plugged into the plot.
$endgroup$
$begingroup$
This is helpful. But these charts get very noisy with hundreds of observations per period. (We have hundreds of books per subject.) And it takes a lot of cognitive load, at a glance, to tell what's growing and what's shrinking. I do appreciate the suggestion!
$endgroup$
– samthebrand
yesterday
$begingroup$
@samthebrand I updated the answer for this problem
$endgroup$
– Esmailian
yesterday
$begingroup$
Thanks @esmailian. This is a good answer, but I don't think it is THE answer, given that I'm interested in visualizing YOY change. For a stacked area chart I would have to look at latest period and then compare its relative size to the period twelve months prior. This feels hard. There's got to be a better way.
$endgroup$
– samthebrand
yesterday
add a comment |
$begingroup$
To visualize change in the size of multiple entities that are contributing to a total through time, e.g. total (t) = book_1 (t) + book_2 (t) + ..., we can use Stacked Area Plot. This plot can be used for normalized and un-normalized (absolute) values.

Preprocessing
For large number of entities, to avoid cognitive load, we can keep only
those entities that become significant (whale) at some point in the plot, and group all the others under an "ordinary" entity. This way, cognitive load is minimized and only those entities that matter at some point are distinguished. For example, distinguishing books that have more than 10% of traffic at some point in the plotted time span.If total fluctuation is very high, logarithm of values can be plugged into the plot.
$endgroup$
To visualize change in the size of multiple entities that are contributing to a total through time, e.g. total (t) = book_1 (t) + book_2 (t) + ..., we can use Stacked Area Plot. This plot can be used for normalized and un-normalized (absolute) values.

Preprocessing
For large number of entities, to avoid cognitive load, we can keep only
those entities that become significant (whale) at some point in the plot, and group all the others under an "ordinary" entity. This way, cognitive load is minimized and only those entities that matter at some point are distinguished. For example, distinguishing books that have more than 10% of traffic at some point in the plotted time span.If total fluctuation is very high, logarithm of values can be plugged into the plot.
edited 1 hour ago
answered yesterday
EsmailianEsmailian
1,591114
1,591114
$begingroup$
This is helpful. But these charts get very noisy with hundreds of observations per period. (We have hundreds of books per subject.) And it takes a lot of cognitive load, at a glance, to tell what's growing and what's shrinking. I do appreciate the suggestion!
$endgroup$
– samthebrand
yesterday
$begingroup$
@samthebrand I updated the answer for this problem
$endgroup$
– Esmailian
yesterday
$begingroup$
Thanks @esmailian. This is a good answer, but I don't think it is THE answer, given that I'm interested in visualizing YOY change. For a stacked area chart I would have to look at latest period and then compare its relative size to the period twelve months prior. This feels hard. There's got to be a better way.
$endgroup$
– samthebrand
yesterday
add a comment |
$begingroup$
This is helpful. But these charts get very noisy with hundreds of observations per period. (We have hundreds of books per subject.) And it takes a lot of cognitive load, at a glance, to tell what's growing and what's shrinking. I do appreciate the suggestion!
$endgroup$
– samthebrand
yesterday
$begingroup$
@samthebrand I updated the answer for this problem
$endgroup$
– Esmailian
yesterday
$begingroup$
Thanks @esmailian. This is a good answer, but I don't think it is THE answer, given that I'm interested in visualizing YOY change. For a stacked area chart I would have to look at latest period and then compare its relative size to the period twelve months prior. This feels hard. There's got to be a better way.
$endgroup$
– samthebrand
yesterday
$begingroup$
This is helpful. But these charts get very noisy with hundreds of observations per period. (We have hundreds of books per subject.) And it takes a lot of cognitive load, at a glance, to tell what's growing and what's shrinking. I do appreciate the suggestion!
$endgroup$
– samthebrand
yesterday
$begingroup$
This is helpful. But these charts get very noisy with hundreds of observations per period. (We have hundreds of books per subject.) And it takes a lot of cognitive load, at a glance, to tell what's growing and what's shrinking. I do appreciate the suggestion!
$endgroup$
– samthebrand
yesterday
$begingroup$
@samthebrand I updated the answer for this problem
$endgroup$
– Esmailian
yesterday
$begingroup$
@samthebrand I updated the answer for this problem
$endgroup$
– Esmailian
yesterday
$begingroup$
Thanks @esmailian. This is a good answer, but I don't think it is THE answer, given that I'm interested in visualizing YOY change. For a stacked area chart I would have to look at latest period and then compare its relative size to the period twelve months prior. This feels hard. There's got to be a better way.
$endgroup$
– samthebrand
yesterday
$begingroup$
Thanks @esmailian. This is a good answer, but I don't think it is THE answer, given that I'm interested in visualizing YOY change. For a stacked area chart I would have to look at latest period and then compare its relative size to the period twelve months prior. This feels hard. There's got to be a better way.
$endgroup$
– samthebrand
yesterday
add a comment |
samthebrand is a new contributor. Be nice, and check out our Code of Conduct.
samthebrand is a new contributor. Be nice, and check out our Code of Conduct.
samthebrand is a new contributor. Be nice, and check out our Code of Conduct.
samthebrand is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Data Science Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f47636%2fhow-to-visualize-change-in-a-distribution-with-a-few-outliers-that-account-for-a%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown