=\frac{x{(1-p)}^{2}+{p}^{2}(n-x)}{{p}^{2}{(1-p)}^{2}}
=\frac{x}{{(\frac{x}{n})}^{2}}+\frac{n-x}{{(1-\frac{x}{n})}^{2}}
=x \frac{{n}^{2}}{{x}^{2}}+\frac{n-x}{({\frac{n-x}{n}})^{2}}
=\frac{{n}^{2}}{x}-(n-x)({\frac{n}{n-x}})^{2}
=\frac{{n}^{2}}{x}-\frac{{n}^{2}}{n-x}
Did I make a mistake somewhere?
Homework Statement
I want the simplify the following equation
Homework Equations
\frac{x}{{p}^{2}}+\frac{n-x}{{(1-p)}^{2}}, where p=\frac{x}{n}The Attempt at a Solution
I got this \frac{{n}^{2}}{x}-\frac{{n}^{2}}{n-x}, I don't think this is the right answer.
Thanks for your answer.
Should I move this thread to classical physics? Maybe you know how?
This is actually a discrete estimation of Hamiltonian using leapfrog.
As pointed out here on page 8
http://www.cs.toronto.edu/~radford/ftp/ham-mcmc.pdf
But it didn't explicitly say what are the...
I am trying to understand how Hamiltonian gradient works.
[SIZE="4"]H(q,p)=U(q)+K(p)
U(q): potential energy
K(p): kinetic energy
q: position vector
p: momentum vector
both p and q are functions of time
H(q,p): total energy
[SIZE="4"]\frac{d{{q}_{i}}}{dt}=\frac{\partial H}{\partial {{p}_{i}}}...
What exactly is generalized linear model?
I understand you have to use the link function.
Wikipedia says: "The link function provides the relationship between the linear predictor and the mean of the distribution function."
So, what is this RELATIONSHIP?
Maybe someone can provide an...
I digged out this old tread, but it is closed. I'll repost, but with my question.
https://www.physicsforums.com/showthread.php?t=74004&highlight=metropolis
[SIZE="4"]\pi(x)
and
[SIZE="4"]\pi(y)
and
[SIZE="4"]q(y,x) is the jump distribution
in the relation...
Do you know how to read the source code? Yes, it is open source, but how do you actually see it? Say, the copula package for example.
http://cran.r-project.org/web/packages/copula/index.html