Is there a software that solves this equation.
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have a series of equations of the form:
$p int_0^infty f(x) dx = int_delta^infty g(x) dx$
where p is a probability (between 0 and 1).
In other words, I have some fraction of the area under the curve, being equal to the area under the curve of another function, starting at point delta, rather then 0. Please note that the two functions are not the same.
I'd like to set the values of p and delta such that the equations balance. This can be fixing, say p, to a constant and solving for delta or vice versa ( I have small set of values of special interest for each) but even better would be a function or a plot that shows when the equation balances.
My question is is there a softwareor a webservice where I can input my equation and it would return this functionplotvalues?
Thanks
math-software line-integrals
 |Â
show 2 more comments
up vote
0
down vote
favorite
I have a series of equations of the form:
$p int_0^infty f(x) dx = int_delta^infty g(x) dx$
where p is a probability (between 0 and 1).
In other words, I have some fraction of the area under the curve, being equal to the area under the curve of another function, starting at point delta, rather then 0. Please note that the two functions are not the same.
I'd like to set the values of p and delta such that the equations balance. This can be fixing, say p, to a constant and solving for delta or vice versa ( I have small set of values of special interest for each) but even better would be a function or a plot that shows when the equation balances.
My question is is there a softwareor a webservice where I can input my equation and it would return this functionplotvalues?
Thanks
math-software line-integrals
Depending on how the integrands behave you may need a quadrature.
– Sean Roberson
Jul 31 at 22:15
what is a quadrature?
– Rafa
Jul 31 at 22:16
It's any type of numerical integration rule.
– Sean Roberson
Jul 31 at 22:17
If $f$ and $g$ are common probability density functions this would be easy enough in R. For example if $f$ was the density of a normal distribution with mean $4$ and standard deviation $3$, and $g$ the density of an exponential distribution with rate $2$ and $p=0.7$ then $delta$ could be found with something like the following code:qexp(1 - 0.7 * (1 - pnorm(0, mean=4, sd=3)), rate=2)
while if $delta=0.226$ then $p$ could be found with(1 - pexp(0.226, rate=2)) / (1 - pnorm(0, mean=4, sd=3))
– Henry
Jul 31 at 22:22
Two unknowns makes this tricky. Hard to say exactly what $(p,delta)$ looks like without knowing your functions $f$ and $g$. Wolfram alpha can integrate $f$ from zero to infinity however... depending on how nice a function $f$ is..
– Mason
Jul 31 at 22:34
 |Â
show 2 more comments
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a series of equations of the form:
$p int_0^infty f(x) dx = int_delta^infty g(x) dx$
where p is a probability (between 0 and 1).
In other words, I have some fraction of the area under the curve, being equal to the area under the curve of another function, starting at point delta, rather then 0. Please note that the two functions are not the same.
I'd like to set the values of p and delta such that the equations balance. This can be fixing, say p, to a constant and solving for delta or vice versa ( I have small set of values of special interest for each) but even better would be a function or a plot that shows when the equation balances.
My question is is there a softwareor a webservice where I can input my equation and it would return this functionplotvalues?
Thanks
math-software line-integrals
I have a series of equations of the form:
$p int_0^infty f(x) dx = int_delta^infty g(x) dx$
where p is a probability (between 0 and 1).
In other words, I have some fraction of the area under the curve, being equal to the area under the curve of another function, starting at point delta, rather then 0. Please note that the two functions are not the same.
I'd like to set the values of p and delta such that the equations balance. This can be fixing, say p, to a constant and solving for delta or vice versa ( I have small set of values of special interest for each) but even better would be a function or a plot that shows when the equation balances.
My question is is there a softwareor a webservice where I can input my equation and it would return this functionplotvalues?
Thanks
math-software line-integrals
asked Jul 31 at 22:12
Rafa
1021
1021
Depending on how the integrands behave you may need a quadrature.
– Sean Roberson
Jul 31 at 22:15
what is a quadrature?
– Rafa
Jul 31 at 22:16
It's any type of numerical integration rule.
– Sean Roberson
Jul 31 at 22:17
If $f$ and $g$ are common probability density functions this would be easy enough in R. For example if $f$ was the density of a normal distribution with mean $4$ and standard deviation $3$, and $g$ the density of an exponential distribution with rate $2$ and $p=0.7$ then $delta$ could be found with something like the following code:qexp(1 - 0.7 * (1 - pnorm(0, mean=4, sd=3)), rate=2)
while if $delta=0.226$ then $p$ could be found with(1 - pexp(0.226, rate=2)) / (1 - pnorm(0, mean=4, sd=3))
– Henry
Jul 31 at 22:22
Two unknowns makes this tricky. Hard to say exactly what $(p,delta)$ looks like without knowing your functions $f$ and $g$. Wolfram alpha can integrate $f$ from zero to infinity however... depending on how nice a function $f$ is..
– Mason
Jul 31 at 22:34
 |Â
show 2 more comments
Depending on how the integrands behave you may need a quadrature.
– Sean Roberson
Jul 31 at 22:15
what is a quadrature?
– Rafa
Jul 31 at 22:16
It's any type of numerical integration rule.
– Sean Roberson
Jul 31 at 22:17
If $f$ and $g$ are common probability density functions this would be easy enough in R. For example if $f$ was the density of a normal distribution with mean $4$ and standard deviation $3$, and $g$ the density of an exponential distribution with rate $2$ and $p=0.7$ then $delta$ could be found with something like the following code:qexp(1 - 0.7 * (1 - pnorm(0, mean=4, sd=3)), rate=2)
while if $delta=0.226$ then $p$ could be found with(1 - pexp(0.226, rate=2)) / (1 - pnorm(0, mean=4, sd=3))
– Henry
Jul 31 at 22:22
Two unknowns makes this tricky. Hard to say exactly what $(p,delta)$ looks like without knowing your functions $f$ and $g$. Wolfram alpha can integrate $f$ from zero to infinity however... depending on how nice a function $f$ is..
– Mason
Jul 31 at 22:34
Depending on how the integrands behave you may need a quadrature.
– Sean Roberson
Jul 31 at 22:15
Depending on how the integrands behave you may need a quadrature.
– Sean Roberson
Jul 31 at 22:15
what is a quadrature?
– Rafa
Jul 31 at 22:16
what is a quadrature?
– Rafa
Jul 31 at 22:16
It's any type of numerical integration rule.
– Sean Roberson
Jul 31 at 22:17
It's any type of numerical integration rule.
– Sean Roberson
Jul 31 at 22:17
If $f$ and $g$ are common probability density functions this would be easy enough in R. For example if $f$ was the density of a normal distribution with mean $4$ and standard deviation $3$, and $g$ the density of an exponential distribution with rate $2$ and $p=0.7$ then $delta$ could be found with something like the following code:
qexp(1 - 0.7 * (1 - pnorm(0, mean=4, sd=3)), rate=2)
while if $delta=0.226$ then $p$ could be found with (1 - pexp(0.226, rate=2)) / (1 - pnorm(0, mean=4, sd=3))
– Henry
Jul 31 at 22:22
If $f$ and $g$ are common probability density functions this would be easy enough in R. For example if $f$ was the density of a normal distribution with mean $4$ and standard deviation $3$, and $g$ the density of an exponential distribution with rate $2$ and $p=0.7$ then $delta$ could be found with something like the following code:
qexp(1 - 0.7 * (1 - pnorm(0, mean=4, sd=3)), rate=2)
while if $delta=0.226$ then $p$ could be found with (1 - pexp(0.226, rate=2)) / (1 - pnorm(0, mean=4, sd=3))
– Henry
Jul 31 at 22:22
Two unknowns makes this tricky. Hard to say exactly what $(p,delta)$ looks like without knowing your functions $f$ and $g$. Wolfram alpha can integrate $f$ from zero to infinity however... depending on how nice a function $f$ is..
– Mason
Jul 31 at 22:34
Two unknowns makes this tricky. Hard to say exactly what $(p,delta)$ looks like without knowing your functions $f$ and $g$. Wolfram alpha can integrate $f$ from zero to infinity however... depending on how nice a function $f$ is..
– Mason
Jul 31 at 22:34
 |Â
show 2 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2868545%2fis-there-a-software-that-solves-this-equation%23new-answer', 'question_page');
);
Post as a guest
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
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
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
Depending on how the integrands behave you may need a quadrature.
– Sean Roberson
Jul 31 at 22:15
what is a quadrature?
– Rafa
Jul 31 at 22:16
It's any type of numerical integration rule.
– Sean Roberson
Jul 31 at 22:17
If $f$ and $g$ are common probability density functions this would be easy enough in R. For example if $f$ was the density of a normal distribution with mean $4$ and standard deviation $3$, and $g$ the density of an exponential distribution with rate $2$ and $p=0.7$ then $delta$ could be found with something like the following code:
qexp(1 - 0.7 * (1 - pnorm(0, mean=4, sd=3)), rate=2)
while if $delta=0.226$ then $p$ could be found with(1 - pexp(0.226, rate=2)) / (1 - pnorm(0, mean=4, sd=3))
– Henry
Jul 31 at 22:22
Two unknowns makes this tricky. Hard to say exactly what $(p,delta)$ looks like without knowing your functions $f$ and $g$. Wolfram alpha can integrate $f$ from zero to infinity however... depending on how nice a function $f$ is..
– Mason
Jul 31 at 22:34