Probability Density Function problem

In summary: After you have found a value for ##a## that gives an integral greater than 1, and the other less than 1, you can continue the process by dividing the reduced range in half. However that may take perhaps 10-20 tries to achieve 4 digits of precision.
  • #1
Saracen Rue
150
10

Homework Statement


Q6. A function, ##f\left(x\right)=\frac{ax+1}{\left(ax-1\right)^3-\frac{a}{\left(x-1\right)^2-1}}##, can be defined as a PDf over the domain ##(0, 2)##.

Express answers to 4 decimal places unless specified otherwise;
(a) Find the value of ##a## given that ##f(x)## is a PDf
(b) Calculate the mean, variance and standard deviation correct to 3 significant figures.
(c) Determine, correct to one decimal place, the percentage probability of discrete random variable ##x## being within two standard deviations either side of the mean.
(d) State the value of the median, ##m##
(e) Find the maximal value of ##f(x)## and determine the percentile of discrete random variable ##x## at this point.
(f) The derivative of function ##f(x)## can also be defined as a PDf over the domain ##(0, c]##. Find the value of ##c## correct to 3 decimal places, letting ##g(x)=f'(x)##.

Homework Equations


Knowledge of derivatives, integrals and PDfs.

The Attempt at a Solution


The first thing I did was simplify ##f(x)## as I believed it looked rather messy and hard to work with. Sadly I didn't get too far with this - the best I could do was to express it as ##f(x)=\frac{x\left(ax+1\right)\left(x-2\right)}{a\left(3x^3-6x^2-1\right)+\left(x-2\right)\left(a^3x^4-3a^2x^3-x\right)}##

I then promptly became stuck at the first question. I understand that the question wants me to integrate ##f(x)## using ##0## as the lower limit and ##2## as the upper limit, set whatever my answer is to equal ##1##, and then solve for ##a##. However, I'm not sure how to integrate the function - I don't even think there is a way to calculate the definite integral of this function. Normally this wouldn't be a problem because I'd just use my calculator to integrate, but it's having trouble doing it with two unknowns present. I could substitute in random values of ##a## and then integrate until I get close to the integral equaling ##1##, but that seems like it would be an excessive amount of work and would take a lot of time. Is there another method I could use here to get past this first question? Thank you all for your time and help.
 
Physics news on Phys.org
  • #2
Saracen Rue said:
The first thing I did was simplify ##f(x)## as I believed it looked rather messy and hard to work with. Sadly I didn't get too far with this - the best I could do was to express it as ##f(x)=\frac{x\left(ax+1\right)\left(x-2\right)}{a\left(3x^3-6x^2-1\right)+\left(x-2\right)\left(a^3x^4-3a^2x^3-x\right)}##

I then promptly became stuck at the first question. I understand that the question wants me to integrate ##f(x)## using ##0## as the lower limit and ##2## as the upper limit, set whatever my answer is to equal ##1##, and then solve for ##a##. However, I'm not sure how to integrate the function - I don't even think there is a way to calculate the definite integral of this function.
The function is a rational function - meaning a ratio of polynomial functions. Any rational function can be integrated using partial fractions to decompose it into more manageable pieces. For instance see here.

There may be a neater, easier way to do it, as the partial fractions approach will be somewhat long. But a more elegant approach is not leaping out at me right now.
 
  • #3
andrewkirk said:
The function is a rational function - meaning a ratio of polynomial functions. Any rational function can be integrated using partial fractions to decompose it into more manageable pieces. For instance see here.

There may be a neater, easier way to do it, as the partial fractions approach will be somewhat long. But a more elegant approach is not leaping out at me right now.
Thanks for the advice!

I'll read up on on partial fraction integration via the link you provided and then give the question another shot.
 
  • #4
Saracen Rue said:
Thanks for the advice!

I'll read up on on partial fraction integration via the link you provided and then give the question another shot.

I don't think the partial fraction approach will work in practice; the denominator is a 5th degree polynomial containing ##a## is some of its coefficients, so the roots of the denominator will be functions of ##a##---possibly being unobtainable in closed-form (because it is known to be impossible to give a nice formula for roots of a polynomial of degree >= 5). However, just computing the integral numerically for various numerical values of ##a## works well, especially if you use a computer package such as Maple or Mathematica.
 
  • #5
Saracen Rue said:
the best I could do was to express it as f(x)=
Hi Saracen Rue:
I agree with Ray that numerical integration with various trial values for a is the best approach. Here is an online integration site I have used hat might be helpful.
You may first want to find two values of a such that one gives an integral greater than 1, and the other less than 1. Then keep dividing the reduced range in half. However that may take perhaps 10-20 tries to achieve 4 digits of precision, so some patience will be needed.

After you have found a value for a that is OK, you can integrate x f(x) and x2 f(x) to calculate mean, variance, and standard deviation.

Regards,
Buzz
 
Last edited:

What is a probability density function (PDF)?

A probability density function (PDF) is a mathematical function that describes the probability that a random variable falls within a certain range of values. It is used to model continuous random variables and is often visualized as a curve on a graph.

How is a probability density function different from a probability mass function?

A probability mass function (PMF) is used to model discrete random variables, while a probability density function (PDF) is used to model continuous random variables. This means that a PMF gives the probability of a specific value occurring, while a PDF gives the probability of a range of values occurring.

What is the area under a probability density function curve?

The area under a probability density function (PDF) curve is equal to 1. This represents the total probability of all possible outcomes occurring.

How do you calculate the probability of a specific value occurring using a probability density function?

To calculate the probability of a specific value occurring using a probability density function (PDF), you need to integrate the PDF over the range of values that includes the specific value. This will give you the probability of the random variable falling within that range.

Can a probability density function have negative values?

No, a probability density function (PDF) cannot have negative values. The PDF must be greater than or equal to 0 for all possible values of the random variable. This ensures that the total probability is equal to 1 and that the PDF represents a valid probability distribution.

Similar threads

  • Calculus and Beyond Homework Help
Replies
19
Views
938
  • Calculus and Beyond Homework Help
Replies
8
Views
982
  • Calculus and Beyond Homework Help
Replies
8
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
992
  • Calculus and Beyond Homework Help
Replies
6
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
  • Calculus and Beyond Homework Help
Replies
8
Views
1K
  • Calculus and Beyond Homework Help
Replies
4
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
Back
Top