I'm new to Mathematica, and for most purposes the program has served me well and been straightforward. However, I'm hitting a snag while trying to create a contour plot for the distribution function
$\qquad f(x,y) = (x\,y)^{p-1}/(\alpha + \beta\,x + \gamma\,y + \delta\,x\,y)^{p + q}$
Notice $x,y$ are variables, and $\alpha,\beta,\gamma,\delta, p,$ and $q$ are constants. I need to set a list of assumptions for constants in the function, but my attempts have been fruitless. Every command yields a graph without an image.
I first tried assigning my function with its assumptions by:
Assuming[ {x > 0, y > 0, p > 0, α > 0, β > 0, γ > 0, δ > 0}, f[x_, y_] := (x*y)^(p - 1)/(α + β*x + γ*y + δ*x*y)^(p + q)] After the assignment, I tried plotting with ContourPlot and DensityPlot.
I'll provide just the ContourPlot expression below because not much changes across them:
ContourPlot[f[x, y], {x, 0, 200}, {y, 0, 200}] In regards to the ContourPlot code, I've changed the domain to both larger and smaller numbers to no avail. Neither ContourPlot nor DensityPlot provides an image. I then try the code without assigning the function beforehand, while including ContourPlot within the Assuming command:
Assuming[ {α > 0, β > 0, γ > 0, δ > 0, p > 0}, ContourPlot[(x*y)^(p - 1)/(α + β*x + γ*y + δ*x*y)^(p + q), {x, 0, 3}, {y, 0, 3}]] I know this equation should produce some sort of image since it's simply a type of truncated distribution function. I believe I've narrowed down the issue to one of the following: Mathematica does not allow assumptions to be used with ContourPlot/DensityPlot, the distribution function is too complicated for Mathematica, or my user error is hindering me. My next step is to try creating different plots on the same graph for various pre-determined values of the parameters.
Any help is much appreciated. As previously mentioned, I'm not very experienced with Mathematica, so I'm more than willing to learn something new or help further explain my goals.


MemberQ[Keys[Options[ContourPlot]], Assumptions]returnsFalse, so you can't use assumptions onContourPlot[]. Your more pressing problem is that you have neglected to provide concrete values for your parameters, so there really is nothing for the plotter to do. (Also,xyandx yare very different things, which contributes to why you can't plot.) $\endgroup$AssumptionswithContourPlotnow. I don't know how I didn't catch myself sooner, but I now realize I had typedxyinstead ofx*y. This actually fixes another, unrelated issue I was having with the code. That said, thank you so much for your help! $\endgroup$(xy)^(p - 1)/(α + βx + γy + δxy)^(p + q)]be(x y)^(p - 1)/(α + β x + γ y + δ x y)^(p + q)]The additional spaces make a big difference. $\endgroup$xyand not the product of these. $\endgroup$Exp[-x^2 / (2 sigma^2)] / (sigma Sqrt[2 pi], you would need to specifysigma. $\endgroup$