Why does the PoissonDistribution not plot around its mean for moderate large numbers?How can I show a rotated PDF plot superimposed on a ListPlot of the underlying data?Given an exact formula, how can Mathematica find a probability distribution whose PDF matches it?Mean of a half-Cauchy distributionRandom Variate generating strange results when using ProbabilityDistributionEstimate parameters of a derived distributionWhy Plot does not work for a my function?

Should I show Hotel reservation when entering Schengen zone?

What to do with developers who don't follow requirements?

What are the applications of the Mean Value Theorem?

Finding big cacti between Phoenix, Las Vegas, and Los Angeles

Are there any real life instances of aircraft aborting a landing to avoid a vehicle?

Features of a Coda section

What is the physical explanation for energy transport in simple electrical circuits?

What would it take to slow down fermentation? (Specific: Wine / grape juice)

Is void *function a pointer to function or a function returning a void*?

Find intersecting polygon within a layer

Clarification: Paladin falls and chooses not to take the oath breaker class

Why can't I book this multi-city fare on American Airlines?

Where do overtones in a 555 generated square wave come from?

Why combine commands on a single line in a Bash script?

Can someone help explain what this FFT workflow is doing to my signal, and why it works?

Why is the Falcon Heavy center core recovery done at sea?

How is warfare affected when armor has (temporarily) outpaced guns? How can guns compete?

For the Dungeon of the Mad Mage adventure, which dimension is used to determine a room's ceiling height?

Are the Properties of the EM Spectrum Fluid?

Oathbow: does the first attack count as being against your Sworn Enemy?

Why don't my appliances work when my tester shows voltage at the outlets?

Has the 75 move draw rule ever been invoked in a FIDE rated standard game involving a GM?

Why is English not a regular language?

I can be found near gentle green hills and stony mountains



Why does the PoissonDistribution not plot around its mean for moderate large numbers?


How can I show a rotated PDF plot superimposed on a ListPlot of the underlying data?Given an exact formula, how can Mathematica find a probability distribution whose PDF matches it?Mean of a half-Cauchy distributionRandom Variate generating strange results when using ProbabilityDistributionEstimate parameters of a derived distributionWhy Plot does not work for a my function?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;

.everyonelovesstackoverflowposition:absolute;height:1px;width:1px;opacity:0;top:0;left:0;pointer-events:none;








2














$begingroup$


I plotted the Poisson Distribution for various mean values (plot label and vertical line). The plots does not peak around the mean as the mean increase. Any advice to get the right plot, or at least the right distribution values?



Same when plotting the log of the distribution -s + n Log[s] - LogGamma[n + 1]



Plot of the Poisson Distribution for various mean deviating from the mean



Table[ListPlot[Table[PDF[PoissonDistribution[s], n], n, Round[Max[s - 8 Sqrt[s], 0]], Round[s + 8 Sqrt[s]]], PlotLabel -> s, GridLines -> s, None], s, 50, 60, 70, 80, 100, 150]









share|improve this question












$endgroup$










  • 1




    $begingroup$
    Also try DiscretePlot, for example: Table[DiscretePlot[ PDF[PoissonDistribution[s], n], n, Round[Max[s - 8 Sqrt[s], 0]], Round[s + 8 Sqrt[s]], PlotLabel -> s, GridLines -> s, None], s, 50, 60, 70, 80, 100, 150]
    $endgroup$
    – becko
    Jun 11 at 8:41

















2














$begingroup$


I plotted the Poisson Distribution for various mean values (plot label and vertical line). The plots does not peak around the mean as the mean increase. Any advice to get the right plot, or at least the right distribution values?



Same when plotting the log of the distribution -s + n Log[s] - LogGamma[n + 1]



Plot of the Poisson Distribution for various mean deviating from the mean



Table[ListPlot[Table[PDF[PoissonDistribution[s], n], n, Round[Max[s - 8 Sqrt[s], 0]], Round[s + 8 Sqrt[s]]], PlotLabel -> s, GridLines -> s, None], s, 50, 60, 70, 80, 100, 150]









share|improve this question












$endgroup$










  • 1




    $begingroup$
    Also try DiscretePlot, for example: Table[DiscretePlot[ PDF[PoissonDistribution[s], n], n, Round[Max[s - 8 Sqrt[s], 0]], Round[s + 8 Sqrt[s]], PlotLabel -> s, GridLines -> s, None], s, 50, 60, 70, 80, 100, 150]
    $endgroup$
    – becko
    Jun 11 at 8:41













2












2








2





$begingroup$


I plotted the Poisson Distribution for various mean values (plot label and vertical line). The plots does not peak around the mean as the mean increase. Any advice to get the right plot, or at least the right distribution values?



Same when plotting the log of the distribution -s + n Log[s] - LogGamma[n + 1]



Plot of the Poisson Distribution for various mean deviating from the mean



Table[ListPlot[Table[PDF[PoissonDistribution[s], n], n, Round[Max[s - 8 Sqrt[s], 0]], Round[s + 8 Sqrt[s]]], PlotLabel -> s, GridLines -> s, None], s, 50, 60, 70, 80, 100, 150]









share|improve this question












$endgroup$




I plotted the Poisson Distribution for various mean values (plot label and vertical line). The plots does not peak around the mean as the mean increase. Any advice to get the right plot, or at least the right distribution values?



Same when plotting the log of the distribution -s + n Log[s] - LogGamma[n + 1]



Plot of the Poisson Distribution for various mean deviating from the mean



Table[ListPlot[Table[PDF[PoissonDistribution[s], n], n, Round[Max[s - 8 Sqrt[s], 0]], Round[s + 8 Sqrt[s]]], PlotLabel -> s, GridLines -> s, None], s, 50, 60, 70, 80, 100, 150]






plotting distributions precision-and-accuracy






share|improve this question
















share|improve this question













share|improve this question




share|improve this question








edited Jun 11 at 13:07









user64494

4,2812 gold badges14 silver badges23 bronze badges




4,2812 gold badges14 silver badges23 bronze badges










asked Jun 11 at 7:27









jssjss

1551 silver badge8 bronze badges




1551 silver badge8 bronze badges










  • 1




    $begingroup$
    Also try DiscretePlot, for example: Table[DiscretePlot[ PDF[PoissonDistribution[s], n], n, Round[Max[s - 8 Sqrt[s], 0]], Round[s + 8 Sqrt[s]], PlotLabel -> s, GridLines -> s, None], s, 50, 60, 70, 80, 100, 150]
    $endgroup$
    – becko
    Jun 11 at 8:41












  • 1




    $begingroup$
    Also try DiscretePlot, for example: Table[DiscretePlot[ PDF[PoissonDistribution[s], n], n, Round[Max[s - 8 Sqrt[s], 0]], Round[s + 8 Sqrt[s]], PlotLabel -> s, GridLines -> s, None], s, 50, 60, 70, 80, 100, 150]
    $endgroup$
    – becko
    Jun 11 at 8:41







1




1




$begingroup$
Also try DiscretePlot, for example: Table[DiscretePlot[ PDF[PoissonDistribution[s], n], n, Round[Max[s - 8 Sqrt[s], 0]], Round[s + 8 Sqrt[s]], PlotLabel -> s, GridLines -> s, None], s, 50, 60, 70, 80, 100, 150]
$endgroup$
– becko
Jun 11 at 8:41




$begingroup$
Also try DiscretePlot, for example: Table[DiscretePlot[ PDF[PoissonDistribution[s], n], n, Round[Max[s - 8 Sqrt[s], 0]], Round[s + 8 Sqrt[s]], PlotLabel -> s, GridLines -> s, None], s, 50, 60, 70, 80, 100, 150]
$endgroup$
– becko
Jun 11 at 8:41










1 Answer
1






active

oldest

votes


















8
















$begingroup$

Because of the way you are generating the lists. What you are plotting is just a list of "y" values without the corresponding "x", that with ListPlot are plotted by Mathematica from 1 to n (with n the number of elements). If you start the list from a "x" value larger than one, Mathematica still plots from 1 to n.



Try with the following code where I explicitly add the "x" values to the lists: this should fix the problem.



Table[ListPlot[
Table[n, PDF[PoissonDistribution[s], n], n,
Round[Max[s - 8 Sqrt[s], 0]], Round[s + 8 Sqrt[s]]]
, PlotLabel -> s, GridLines -> s, None]
, s, 50, 60, 70, 80, 100, 150]





share|improve this answer










$endgroup$














  • $begingroup$
    Well I see, I miss the x coordinate. Thank you. That is the answer!
    $endgroup$
    – jss
    Jun 11 at 7:50













Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "387"
;
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/4.0/"u003ecc by-sa 4.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
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f200120%2fwhy-does-the-poissondistribution-not-plot-around-its-mean-for-moderate-large-num%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









8
















$begingroup$

Because of the way you are generating the lists. What you are plotting is just a list of "y" values without the corresponding "x", that with ListPlot are plotted by Mathematica from 1 to n (with n the number of elements). If you start the list from a "x" value larger than one, Mathematica still plots from 1 to n.



Try with the following code where I explicitly add the "x" values to the lists: this should fix the problem.



Table[ListPlot[
Table[n, PDF[PoissonDistribution[s], n], n,
Round[Max[s - 8 Sqrt[s], 0]], Round[s + 8 Sqrt[s]]]
, PlotLabel -> s, GridLines -> s, None]
, s, 50, 60, 70, 80, 100, 150]





share|improve this answer










$endgroup$














  • $begingroup$
    Well I see, I miss the x coordinate. Thank you. That is the answer!
    $endgroup$
    – jss
    Jun 11 at 7:50
















8
















$begingroup$

Because of the way you are generating the lists. What you are plotting is just a list of "y" values without the corresponding "x", that with ListPlot are plotted by Mathematica from 1 to n (with n the number of elements). If you start the list from a "x" value larger than one, Mathematica still plots from 1 to n.



Try with the following code where I explicitly add the "x" values to the lists: this should fix the problem.



Table[ListPlot[
Table[n, PDF[PoissonDistribution[s], n], n,
Round[Max[s - 8 Sqrt[s], 0]], Round[s + 8 Sqrt[s]]]
, PlotLabel -> s, GridLines -> s, None]
, s, 50, 60, 70, 80, 100, 150]





share|improve this answer










$endgroup$














  • $begingroup$
    Well I see, I miss the x coordinate. Thank you. That is the answer!
    $endgroup$
    – jss
    Jun 11 at 7:50














8














8










8







$begingroup$

Because of the way you are generating the lists. What you are plotting is just a list of "y" values without the corresponding "x", that with ListPlot are plotted by Mathematica from 1 to n (with n the number of elements). If you start the list from a "x" value larger than one, Mathematica still plots from 1 to n.



Try with the following code where I explicitly add the "x" values to the lists: this should fix the problem.



Table[ListPlot[
Table[n, PDF[PoissonDistribution[s], n], n,
Round[Max[s - 8 Sqrt[s], 0]], Round[s + 8 Sqrt[s]]]
, PlotLabel -> s, GridLines -> s, None]
, s, 50, 60, 70, 80, 100, 150]





share|improve this answer










$endgroup$



Because of the way you are generating the lists. What you are plotting is just a list of "y" values without the corresponding "x", that with ListPlot are plotted by Mathematica from 1 to n (with n the number of elements). If you start the list from a "x" value larger than one, Mathematica still plots from 1 to n.



Try with the following code where I explicitly add the "x" values to the lists: this should fix the problem.



Table[ListPlot[
Table[n, PDF[PoissonDistribution[s], n], n,
Round[Max[s - 8 Sqrt[s], 0]], Round[s + 8 Sqrt[s]]]
, PlotLabel -> s, GridLines -> s, None]
, s, 50, 60, 70, 80, 100, 150]






share|improve this answer













share|improve this answer




share|improve this answer










answered Jun 11 at 7:44









FraccaloFraccalo

3,3326 silver badges19 bronze badges




3,3326 silver badges19 bronze badges














  • $begingroup$
    Well I see, I miss the x coordinate. Thank you. That is the answer!
    $endgroup$
    – jss
    Jun 11 at 7:50

















  • $begingroup$
    Well I see, I miss the x coordinate. Thank you. That is the answer!
    $endgroup$
    – jss
    Jun 11 at 7:50
















$begingroup$
Well I see, I miss the x coordinate. Thank you. That is the answer!
$endgroup$
– jss
Jun 11 at 7:50





$begingroup$
Well I see, I miss the x coordinate. Thank you. That is the answer!
$endgroup$
– jss
Jun 11 at 7:50



















draft saved

draft discarded















































Thanks for contributing an answer to Mathematica 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.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f200120%2fwhy-does-the-poissondistribution-not-plot-around-its-mean-for-moderate-large-num%23new-answer', 'question_page');

);

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









Popular posts from this blog

Tamil (spriik) Luke uk diar | Nawigatjuun

Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?