Questions tagged [pdf]

Probability density function (PDF) of a continuous random variable gives the relative probability for each of its possible values. Use this tag for discrete probability mass functions (PMFs) too.

Filter by
Sorted by
Tagged with
5
votes
1answer
109 views

Approximate density from moments and quantiles, then sample from it

Situation I need to send R code to a third party to run estimations for me (I will not be able to work with the data directly). I want to simulate data to test some of the estimators before sending ...
2
votes
1answer
41 views

wigner semi-circle distribution random numbers generation

I am trying to generate random numbers in Wigner semi-circle distribution. Since this one does not have the analytical solution for the inverse function of the pdf. I wonder if anyone familiar with a ...
0
votes
1answer
31 views

Expressing as a probability density function [closed]

The measuring error x is a normal random variable. Variance of the error = 4. If distribution of x can be shown by a probability density function f(x), how would you find the analytical expression of ...
0
votes
1answer
22 views

How to find emprical PDF by using the normalized histogram?

first of all, thank you for your time, here is my question; Is it possible to find emprical PDF by using normalized histogram? I am trying to learn discrete event simulation and what I see is there ...
0
votes
0answers
17 views

Mapping a range of values such that the resulting distribution is uniform [duplicate]

I have a set of values. Let's call the set X with values ... . Those values in [0, 1] have a non uniform distribution (empirically measured). I would like to re-map those values on [0, 1] such that ...
4
votes
2answers
77 views

Find mgf from joint pmf

The joint pmf of random variables $ X$ and $ Y$ is given by $$p_{XY}(x,y)= \begin{align} & \frac{e^{-2}}{x! (y-x)!}\quad\text{if}\,\,\,x= 0,1,...y,\ y=0,1,... \\ \end{align} $$ Find its mgf. \...
1
vote
1answer
34 views

An approximation to the cdf of the normal from a pdf?

In this paper (p. 36), authors wrote $$p(n,T) = \Phi \Big(\frac{n}{T},\mu,\sigma \Big) - \Phi \Big (\frac{n-1}{T},\mu,\sigma \Big)\; (3) $$ Bellow we will use the approximation $$p(n,T) =...
0
votes
1answer
25 views

Why is sample mean minus location parameter of shifted exponential gamma distributed?

My book says the following Suppose $X_{i} \sim$ iid $Exp(1,\eta)$ Where $Exp(\theta,\eta)$ is the shifted exponential ie has density $$\frac{1}{\theta}e^\frac{-(x-\eta)}{\theta}$$ for $x \ge \eta$ ...
1
vote
0answers
18 views

Variance Estimator for Density

Is there an estimator to predict the variance matrix of a 2D distribution given the value of its density sampled on a regular finite grid? I'm not even sure that estimator is the right word to use ...
8
votes
2answers
129 views

What is this “phenomenon” called?

Below is a histogram of some data, the bins are integers the other parameters are irrelevant. As you can see there seems to be two separate but overlapping normal distributions for odd and even ...
0
votes
1answer
42 views

Simulation: Generate random numbers that cluster around an average? [closed]

I want to simulate a simple event that has variable empirical result/outcome. Generate random numbers that cluster around an average For example, let's say we collect the data for how far people can ...
1
vote
1answer
56 views

Find $P(X<2Y)$ of a bivariate distribution

$f(x,y)=\frac{1}{2 \pi }\exp(-\sqrt{x^{2}+y^{2}})$ where $x,y$ in $\Bbb R$ My attempt: $$\Bbb P(X<2Y) = \int_{-\infty}^\infty \int_{-\infty}^{2y}\frac{1}{2 \pi }\exp(-\sqrt{x^{2}+y^{2}})\text{d}x\...
0
votes
0answers
141 views

Reparametrization trick for VAE, prooving that the resulting vector follows a normal distribution

So I've been reading about Variational AutoEncoders and I'm stuck on a little exercise meant to help understand the reparameterization trick. Z is a random vector of K elements with a distribution $q(...
0
votes
1answer
22 views

Probability question in Mat

My teacher give me this question: Using MATLAB, generate 10000 Random Vectors of size 500 with the PDF of Gamma distribution. Find the PDF of maximum and minimum of the generated Random vectors. (Use ...
1
vote
0answers
35 views

Substitution for unknown true density in 'Density Estimation Trees'

I'm having a hard time understanding parts of the derivation of the objective function for Density Estimation Trees (reference below) regarding the loss function. Taken from the article (Sec. 3.1): ...
0
votes
1answer
38 views

Little problem calculating hazard function

I'm starting to study maths again after a long time without having touch them and I'm currently with survival analysis. I want to get a hazard function h(x), and I know that it can be calculated as ...
0
votes
1answer
33 views

Problems calculating and plotting distribution function

After a long time without having touch anything related to maths or statistics, I decided to give myself another chance. I am currently refreshing some concepts of density and distribution functions, ...
2
votes
0answers
139 views

fitting non-normal multivariate distributions in R

I have many (n=317,823) observations on two variables. I want to fit a bivariate distribution to my observations, in order to identify descriptive features of the distribution (quantiles). However, my ...
0
votes
2answers
367 views

Fitting pmf of a scaled Poisson distribution and Python histogram plotting

I have a nuclei meanlife of $550\mu s$, for which I've taken the frequency(rate) to be $1/meanlife = 1818$. I then sampled randomly from a poisson distribution with that frequency, taking the ...
0
votes
1answer
14 views

Setting boundaries for calculating $P(Y/X>2)$ choosing $dx/dy$ order [duplicate]

Given two independent variables $X$ and $Y$, with marginal pdfs $f_X(x)=2x, 0 \le x \le 1$ and $f_Y(y)=1, 0 \le y \le 1$, calculate $P(\frac{Y}{X} > 2)$. So this can be written as $P(Y>2X)$, ...
2
votes
1answer
79 views

Finding the joint CDF using the joint PDF; why can't I do this?

Find the joint CDF of the independent random variables $X$ and $Y$, where $f_x(x)=x/2, 0\le x \le 2, $ and $f_Y(y)=2y, 0 \le y \le 1$. To do this, we can find the CDF separately for each of the ...
0
votes
3answers
81 views

Compute $P(Y<3X)$ using joint PDF

I'm given a joint pdf $f_{X,Y}(x,y)=2e^{-x-y}, 0<x<y, 0<y $ and asked to compute $P(Y<3X)$. To do this, I let $Y=3X$ (the boundary) and found that the region of integration is under this ...
0
votes
1answer
36 views

Order Statistics; Finding the probability that the first sample is < 0.6, and the last sample is > 0.6

Here is the problem statement below: A random sample of size 5 is drawn from the pdf $f_Y(y)=2y, 0\le y \le1$. Calculate $P(Y_1^{'} < 0.6 < Y_5^{'})$. Here, using formulas for order ...
0
votes
0answers
23 views

bandwidth setting for density comparison

I intend to compare a list of density distributions. Following one published paper (with similar type of data and same objective), I learned that I have to use Gaussian kernel density estimator, and a ...
1
vote
1answer
18 views

Normalizing two independent weights in order to produce output between 0 and 1

I have two scores, alpha and beta, ranging both between 0 and 1. I want to weight these with weight_one, weight_two in order to favour one of these scores over the other. Then, afterwards, I want to ...
0
votes
0answers
49 views

Formulae for density function replacing probabilistic function

I am working with markov chains and in specific I am working with (Langrock, Roland MacDonald, Iain L. Zucchini, W (2016)). They define a forecast distribution given as: $$ Pr(X_{T+h}=x|X^{(T)}=x^{(...
1
vote
2answers
74 views

Condition Probability - What am I doing wrong?

I am reviewing some notes of mine and refreshing myself with some statistics and I came across a problem that asks me to calculate $P(X>1|Y>1)$ for the random variables $X$ and $Y$ whose joint ...
2
votes
1answer
36 views

Proof of direct proportionality between hazard rate function and probability density function

I'm reading up on reliability and I came across this question: Show that if the hazard function is decreasing, the PDF, $f(t)$, is also a decreasing function and its mode must therefore occur at t =...
1
vote
1answer
51 views

Finding the CDF given marginal PDF's; setting bounds

In this question, I'm having a hard time understanding how specifically to set the bounds for the CDF. Let $X$ and $Y$ be independent variables. Find the CDF of $W=Y/X$ using the marginal PDFs ...
0
votes
0answers
44 views

PDF transformation for y=|x|

Suppose I have the random variable X with a pdf: $$f(x)=exp(-(x+1)) u(x+1)$$ where u is the unit step function; such that u = 0 for x<-1 and u=1 for x>-1 $$y= |x|$$ for $$-1<x<1$$ ...
4
votes
1answer
134 views

Limits of a density function

If the limit of a density function exists does it the follow that it is zero? To put it formally $$\exists a \in \mathbb R \lim_{t \rightarrow \infty} f(t) = a \Rightarrow a= 0.$$
0
votes
0answers
29 views

Terminology Confusion: Probability, Likelihood, AND?

currently I have a terminology issue to accurately write a text. I read up on the definitions on probability and likelihood. Given some continuous random variable(s) as far as I can infer, probability ...
0
votes
2answers
28 views

Sample Mean expressed using Standard Normal Distribution

Let $\bar{X}_n = X_1 + \dots X_n$ where $X_i \sim N(0,1)$. We can easily verify that $\bar{X}_n \sim N(0, 1/n)$. Thus $\text{Var}(\bar{X}_n) = 1/n$. Let the density of $X \sim N(0,1)$ be denoted $\...
0
votes
0answers
27 views

PDF transformation for many to one function [duplicate]

I would like to find the PDF of the random variable $Y$ given the PDF of $x$. $$Y=sin(x)$$ $$f(x) = 2x/(pi^2) for 0<x<pi$$ and 0 otherwise. Following the tips in the question here: https://...
0
votes
1answer
26 views

Calculate the probability of any one independent scenario occurring

I have $3$ independent scenarios and I need to calculate the probability of any one of them occurring. I’ve calculated the probability of the $i$-th event as: : $1-\big(\frac{70000-1}{70000}\big)^1 ...
0
votes
2answers
127 views

How to modify the mean and variance/dispersion of a given distribution

I am trying to find a parametric adjustment that allows modifying the mean and variance/dispersion of a given distribution. Ideally, this adjustment would be implemented through a parametric function ...
0
votes
0answers
16 views

Conditioning the probability obtained from a machine learning model

I have developed a random forest classifier to predict whether a customer will churn. The data used to produce this model has the following form ...
1
vote
1answer
69 views

Proof for simulation of NHPP by thinning

Background: I'm trying to show equivalency between the density function for a non-homogenous exponential process (NHEP?), (i.e. the arrival times of events generated by a non-homogenous Poisson ...
1
vote
1answer
80 views

PMF and independence with two discrete random variables?

Each of n people (whom we label 1, 2, . . . , n) are randomly and independently assigned a number from the set {1, 2, 3, . . . , 365} according to the uniform distribution. We will call this number ...
0
votes
0answers
40 views

Simulating from an Epanechnikov kernel density estimate in MATLAB / exact form of the Epanechnikov kernel in MATLAB?

It's my first time posting, so apologies if I'm breaking any etiquette. I've used MATLAB's ksdensity function to estimate a density using the Epanechnikov kernel and would now like to make repeated ...
1
vote
0answers
45 views

Finding a critical region for a simple test, with PDF $f(x) = (\frac{x}{\theta} + \frac{1}{2}) \space \mathbb{1}_{(-1,1)} (x)$

I'm dealing with a simple inference problem which involve a PDF I've never dealt with before. We have $X_1, ..., X_n$ iid variables where $X_i$ has a PDF $$f(x) = (\frac{x}{\theta} + \frac{1}{2}) \...
3
votes
0answers
107 views

Calculating a Confidence Interval for a Proportion for a Sample of Different Size

I'm interested in a (preferably analytic) solution or approximation to the following problem: Let $s_1$ be a sample from an unknown distribution of size $N_1$ and with proportion of successes $p_1$. ...
3
votes
0answers
46 views

Integrating the inverse-Wishart density

It is alleged in this question and in the Wikipedia article and elsewhere that the density function for the inverse-Wishart distribution with $n$ degrees of freedom on $p\times p$ positive-definite ...
1
vote
1answer
68 views

The probability density function of half-chi-square distribution

Let $X$ be a random variable from a chi-square distribution with 1 degree of freedom. The probability density function (pdf) of $X$ is $f(x) = \frac{\exp{(-x/2)}}{\sqrt{2\pi x}}$, $x>0$. In the ...
2
votes
1answer
46 views

Expectation of $h \circ X$

I'm only starting to learn statistics. The definition I've been given for the expected value (expectation) of a continuous random variable X with probability density function (PDF) $f_X$ is the ...
0
votes
0answers
63 views

Viewing PMF as an instance of a PDF

I'm having difficulties in thinking about the probability mass function (PMF) as a special case of the probability density function (PDF). I understand that PMF's are used in discrete examples, but ...
0
votes
0answers
20 views

Probability density function of a data point given the locations of its four nearest neighbors

The goal is to find the probability density function $p(\mathbf{x} | \mathbf{c}_1,\mathbf{c}_2,\mathbf{c}_3,\mathbf{c}_4)$. Here $\mathbf{x},\mathbf{c}_i \in \mathbb{R}^d$. $\mathbf{c}_1,\mathbf{c}_2,\...
0
votes
1answer
73 views

What does it mean to “interpret the sigmoid $\sigma(\theta^Tx)$ as a probability”? [duplicate]

In Goodfellow's Deep learning text, it is written Is this way of defining a probability $p(y=1| x;\theta)$ even legal? Recall the definition of a probability given a random variable where $p_X$ is ...
3
votes
2answers
56 views

Having difficulty deciding limits of integration for a joint to marginal pdf

A joint pdf, $f_{X,Y}(x,y)=5$, is given with the following intervals: $-1<x<1$ $x^2<y<x^2+{1\over{10}}$ I am trying to find marginal pdf of $f_Y(y)$ but I am stuck. Trying for hours....
2
votes
1answer
35 views

Visualizing separability / independence

I’d like to visually ‘see’ the independence of random variables. I tried plotting f(x), f(y), and f(x, y) for independent and dependent pairs of variables. However, the difference is still not ...