valid probability density function?

• Feb 22nd 2008, 09:28 AM
Jason Bourne
valid probability density function?
1. For each of the following functions how do you determine whether it is a valid probabilty density function??????????????

(a) $f(x) = \frac{x}{2} , ~~~~~~~~ 0\leq x\leq 2$
(b) $f(x) = 4e^{-4x} , ~~~~~~~~~ x\geq 0$
(c) $f(x) = e^{x} + 1 , ~~~~~~~~~ 0\leq x \leq 1$

2.

(a) Find the value of a that makes $f(x) = ax(1-x)$ for $0\leq x\leq 1$ a valid probability density function
(b) Evaluate the mean of this distribution
(c) Evaluate the variance of this distribution

Thanks for help (Hi)
• Feb 22nd 2008, 09:39 AM
ThePerfectHacker
Quote:

Originally Posted by Jason Bourne

(a) $f(x) = \frac{x}{2} , ~~~~~~~~ 0\leq x\leq 2$
(b) $f(x) = 4e^{-4x} , ~~~~~~~~~ x\geq 0$
(c) $f(x) = e^{x} + 1 , ~~~~~~~~~ 0\leq x \leq 1$

A function $\geq 0$ is a probability density function when its integral is 1. So just get whether the integrals are 1. Just be careful on (b) the integral has limits 0 to +oo.

Quote:

2.

(a) Find the value of a that makes $f(x) = ax(1-x)$ for $0\leq x\leq 1$ a valid probability density function
(b) Evaluate the mean of this distribution
(c) Evaluate the variance of this distribution
(a) Solve the equation $\int_0^1 ax(1-x) ~ dx = 1$.
(b) Once you find 'a' compute $E[X]=\int_0^1 ax^2(1-x) ~ dx$
(c) Find $\int_0^1 ax^2(1-x^2)~dx - E[X]$.

EDIT: Mistake, but too lazy to fix it.
• Feb 22nd 2008, 11:30 AM
CaptainBlack
Quote:

Originally Posted by ThePerfectHacker
A function $\geq 0$ is a probability density function when its integral is 1. So just get whether the integrals are 1. Just be careful on (b) the integral has limits 0 to +oo.

(a) Solve the equation $\int_0^1 ax(1-x) ~ dx = 1$.
(b) Once you find 'a' compute $E[X]=\int_0^1 ax^2(1-x) ~ dx$
(c) Find $\int_0^1 ax^2(1-x^2)~dx - E[X]$.

Err.. hn..

(c) Evaluate the variance of this distribution

$\sigma^2=E((X-\mu)^2)=E(X^2)-\mu^2$

$\sigma^2=\int_0^1 ax^3(1-x)~dx - (E[X])^2$

RonL
• Feb 23rd 2008, 03:52 AM
Jason Bourne
Quote:

Originally Posted by CaptainBlack

$\sigma^2=\int_0^1 ax^3(1-x^2)~dx - (E[X])^2$

RonL

Sorry, shouldn't this be $\sigma^2=\int_0^1 ax^3(1-x)~dx - (E[X])^2$

where does the $x^2$ come from ?
• Feb 23rd 2008, 04:39 AM
CaptainBlack
Quote:

Originally Posted by Jason Bourne
Sorry, shouldn't this be $\sigma^2=\int_0^1 ax^3(1-x)~dx - (E[X])^2$

where does the $x^2$ come from ?

Of course it should, just goes to show that you should not just copy someone else's LaTeX (Doh)

The $x^2$ comes from $E(X^2)=\int_0^1 x^2 ~p(x) dx$, where $p(x)$ is the pdf of $X$

RonL