Docsity
Top Seller

Variabili Aleatorie Continue e Inferenza Statistica: Guida Dettagliata, Schemi e mappe concettuali di Statistica

Toggle sidebar
bg1
Continuous Random Variables
A continuous random variable can take any value within an interval. The most appropriate
graphical representation is an histogram.
Unlike discrete variables, the probability of one exact value is zero — what matters is the area
under the curve of its probability density function (PDF).
1. Probability Functions
•Probability Density Function (PDF) → shows how probability is distributed.
◦F(X) = P(X≤x) = ∫ f(x)dx
◦The curve must always be positive and the total area under it is 1.
◦Probability that X is between a and b:
P (a<X<b)= F(b) - F(a) =∫ f (x) dx
◦R: dnorm(x, mean, sd) P(X=x)
•Cumulative Distribution Function (CDF) → gives the probability that X is less than or
equal to a value.
◦F(x)=P(X≤x).
◦It always increases from 0 to 1, and it’s continuous
◦The PDF is the derivative of the CDF: f(x)=F′(x)
◦R: pnorm(x, mean, sd) P(X≤x)
2. Key Numerical Measures
•Expected Value (Mean) → the “center” or average of the distribution.
E[X]=∫ x f(x)dx.
◦Linearity: Y=a+bx → E[Y]= a+bE[X]
◦zero-mean deviation: E[X - E[X]]=0
◦Least squares property
•Variance σ²→ measures how spread out the values are.
V(X)=E[X²] - (E[X])² = ∫ x² f(x)dx - µ²
◦linear transformation: Y=a+bx → V[Y]= b² V[X]
◦Standard deviation σ is the square root of variance.
•Standardization (Z-score) → transforms X to a common scale:
Z=X−µ / σ
◦The result has mean 0 and variance 1
◦Z us a linear transformation of X
◦Used to compare values from different distributions.
3. Continuous Bivariate random Variables
When we study two continuous random variables (X, Y):
•Joint PDF f(x,y): gives the probability of both variables together.
◦f(x,y) = ∫ ∫ f(x,y)dxdy = 1
•Joint CDF F(x,y)=P(X≤x,Y≤y) = ∫ ∫ f(x,y)dxdy
•Independence → X and Y are independent if
f(x,y)=fX (x)×fY (y).
•Covariance → Cov[X, Y]= ∫ ∫ (x - E[X])(y-E[Y]) f(x,y) dxdy
◦Positive: move in the same direction.
◦Negative: move in opposite directions.
◦If independent, covariance = 0.
b!
a
+∞
−∞
x
−∞
+∞
−∞
+∞
−∞
+∞
−∞
y
−∞
x
−∞
+∞
−∞
+∞
−∞
pf3
pf4
pf5

Anteprima parziale del testo

Scarica Variabili Aleatorie Continue e Inferenza Statistica: Guida Dettagliata e più Schemi e mappe concettuali in PDF di Statistica solo su Docsity!

Continuous Random Variables

A continuous random variable can take any value within an interval. The most appropriate graphical representation is an histogram. Unlike discrete variables, the probability of one exact value is zero — what matters is the area under the curve of its probability density function (PDF).

1. Probability Functions

  • Probability Density Function (PDF) → shows how probability is distributed. ◦ F(X) = P(X≤x) =^ ∫^ f(x)dx ◦ The curve must always be positive and the total area under it is 1. ◦ Probability that X is between^ a^ and^ b : P (a<X<b)= F(b) - F(a) =∫ f (x) dx ◦ R: dnorm(x, mean, sd) P(X=x)
  • Cumulative Distribution Function (CDF) → gives the probability that X is less than or equal to a value. ◦ F(x)=P(X≤x). ◦ It always increases from 0 to 1, and it’s continuous ◦ The PDF is the derivative of the CDF: f(x)=F′(x) ◦ R: pnorm(x, mean, sd) P(X≤x)

2. Key Numerical Measures

  • Expected Value (Mean) → the “center” or average of the distribution. E[X]=∫ x f(x)dx. ◦ Linearity: Y=a+bx^ →^ E[Y]= a+bE[X] ◦ zero-mean deviation: E[X - E[X]]= ◦ Least squares property
  • Variance^ σ²→^ measures how spread out the values are. V(X)=E[X²] - (E[X])² = ∫ x² f(x)dx - μ² ◦ linear transformation: Y=a+bx^ →^ V[Y]= b²^ V[X] ◦ Standard deviation^ σ^ is the square root of variance.
  • Standardization (Z-score) → transforms X to a common scale: Z=X−μ / σ ◦ The result has mean 0 and variance 1 ◦ Z us a linear transformation of X ◦ Used to compare values from different distributions.

3. Continuous Bivariate random Variables

When we study two continuous random variables (X, Y):

  • Joint PDF f(x,y): gives the probability of both variables together. ◦ f(x,y) =^ ∫^ ∫^ f(x,y)dxdy = 1
  • Joint CDF F(x,y)=P(X≤x,Y≤y) = ∫ ∫ f(x,y)dxdy
  • Independence → X and Y are independent if f(x,y)=fX (x)×fY (y).
  • Covariance → Cov[X, Y]= ∫ ∫ (x - E[X])(y-E[Y]) f(x,y) dxdy ◦ Positive: move in the same direction. ◦ Negative: move in opposite directions. ◦ If independent, covariance = 0. b a +∞ −∞ x −∞ +∞ −∞ +∞ −∞ +∞ −∞ (^) y −∞ x −∞ +∞ −∞ +∞ −∞

4. Types of Continuous Distributions of random variables

  • Uniform Distribution (X~Unif(a, b)) ◦ All values equally likely. ◦ f(x)=1/ b-a for x between a and b ◦ = 0 for any other cases ◦ Mean = (a + b)/2, Variance = (b - a)²^ / 12.
  • Normal Distribution (X~N(μ, σ²)) ◦ Bell-shaped and symmetric around μ. ◦ f(x)= ( 1 /^ √^2 πσ) exp { - 1/2^ σ²^ (x-μ)²} ◦ Mean = median = mode = μ ◦ Variance= E[(X-μ)²] =^ σ² ◦ σ²^ controls the spread (larger^ σ²^ →^ flatter curve, more dispersed).
  • Standard Normal Distribution (Z~N(0,1)) ◦ A special normal with μ = 0,^ σ²^ = 1 ◦ f(Z)= 1 /^ √^2 π^ exp {-1/2 z²} ◦ Any normal variable can be transformed into this form using the Z-score. ◦ This allows probabilities to be found from standard tables. ◦ R: pnorm(x*-μ /^ σ^ , / mean=0, sd=1)
  • Student’s t Distribution (X~ tn) ◦ Similar to normal but with heavier tails (more probability in the extremes). ◦ Used when sample size is small and population variance is unknown. ◦ As sample size n increases, t^ →^ normal. ◦ mean always 0

5. Central Limit Theorem (CLT)

The CLT says that if we take many independent and identically distributed (iid) random variables from any population, the sample mean will follow approximately a normal distribution (even if the original variable is not normal), when the sample size is large enough: X≈N(μ, σ²/n ) This is the foundation of most statistical inference (confidence intervals, hypothesis tests, etc.). _

5. Random Sampling from a Random Variable (infinite population)

If the population can be modeled by a random variable X , then each sample observation ( X1, X2, ..., Xn ) is an independent copy of X and have same distribution iid → ( E[Xi] = μ), ( Var(Xi) = σ² ). → The sample mean ¯X= 1/n ∑Xi becomes a random variable itself.

6. Parameters, Statistic T, and Sampling Distributions

  • parameter is a number that describes a specific features of the distribution of a random variable X
  • A statistic T is any function of sample data (e.g. ( sample arithmetic mean, sample variance…).
  • It’s random because it depends on the sample.
  • The sampling distribution of T = the probability distribution of that statistic over all possible samples → pmf for discrete random variables → pdf for continuous random variables Types of sampling distributions: 1. Exact distribution → known exactly (e.g. for normal populations). 2. Asymptotic (approximate) distribution → valid when n → ∞ (by CLT).

7. Expected Value and Variance of the Sample Mean

For a random sample ( X_1, ..., X_n ): E[X¯]=μ Var(X¯)=σ²/n → The sample mean is an unbiased estimator of μ. → As n increases, its variance decreases → more precise estimate.

8. Exact Sampling Distributions

Population Statistic/ distribution Exact distribution Bernoulli population X ∼Bern(p) Normal population X∼N(μ,σ²) Sample mean Xn Normal population X∼N(μ,σ²) Standardised sample mean using S Approximate sampling Sample proportion standardized _

Point and Interval Estimation

1. What is Estimation

- In statistics, we often don’t know the true value of a population parameter (like μ, σ², or p). - Estimation means using sample data to make inferences about those parameters. - There are two types: ◦ Point estimation:^ gives a single best guess for the parameter. ◦ Interval estimation:^ gives a range (confidence interval) that probably contains the parameter.

2. Point Estimation — Key Ideas

  • A parameter θ is a fixed (but unknown) characteristic of the population. → Example: the true average income μ.
  • A point estimator is a rule or statistic T that estimates the parameter based on sample data. → Example: the sample mean X̄ estimates μ.
  • A point estimate T is the actual numerical value obtained from the sample. → Example: if X̄ = 50,000, that’s the point estimate of μ.
  • In short: Estimator = random variable , while estimate = its realized value (a number).

3. Desirable Properties of a Good Estimator

a) Unbiasedness

  • An estimator is unbiased if, on average, it equals the true parameter. E[T]=θ
  • The bias of an estimator bias[T]=E[T]-θ
  • Intuition: if we repeated the sampling many times, the average of all estimates would be the true parameter.
  • Example: The sample mean X̄ is an unbiased estimator of μ because E[X¯]=μ. b) Asymptotic Unbiasedness
  • Some estimators may be slightly biased for small samples but become unbiased as the sample size increases. lim E[Tn ]=θ n→∞ Central limit theorem Sample mean Bernoulli population Sample proportion as n-> ∞ standardized