Download Probability Theory and Statistical Analysis: Correlation and Hypothesis Testing and more Study notes Statistics in PDF only on Docsity!
Allama Iqbal Open University Islamabad
Course Code ( 5412 )
Assignment No 2
Spring 2025
Name: Junaid Ahmad Student I.D 0000344015 Program: 5412 Semester: Spring 2025
Total Marks: 100 Pass Marks: 5 0
Assignment No.
(Unit 6-9)
Q.1 Distinguish among classical or a dprior probability, relative
frequency or a
posteriori probability, axiomatic probability and subjective or
personalistic
along with their advantages and disadvantages. (20)
Probability theory is a fundamental branch of mathematics used to measure the likelihood of events. Over time, several interpretations or types of probability have evolved, each with unique features, assumptions, and areas of application. The four major approaches to probability are:
- Classical (a priori) Probability
- Relative Frequency (a posteriori) Probability
- Axiomatic Probability
- Subjective (Personalistic) Probability Each type helps us understand randomness and uncertainty in a distinct way.
- Not applicable when outcomes are not equally likely.
- Cannot be used in real-life complex problems (e.g., weather forecasting).
- Limited to finite sample spaces.
- Relative Frequency or A Posteriori Probability Definition: Relative frequency probability is based on empirical evidence or observation. It is defined as the long-run proportion of times an event occurs in repeated trials. P(E)=Number of times event E occursTotal number of trialsP(E) = \frac{\text{Number of times event E occurs}}{\text{Total number of trials}} It is also called experimental or statistical probability. Example: If it rained on 73 out of 100 days, P(Rain)=73100=0.73P(\text{Rain}) = \frac{73}{100} = 0. Advantages:
- Based on actual data and observation.
- Useful in real-world applications such as insurance, finance, and medicine.
- Can be refined with more trials or data. Disadvantages:
- Requires large amounts of historical data.
- Probability may change if the frequency is based on too few trials.
- Cannot be used for one-time events with no historical record.
- Axiomatic Probability Definition: Axiomatic probability is a modern and mathematical approach, introduced by Andrey Kolmogorov in the 1930s. It is based on a set of axioms (rules), and does not rely on equal likelihood or empirical data. The Three Kolmogorov Axioms:
- For any event E, P(E)≥0P(E) \geq 0
- Probability of the sample space S is 1: P(S)=1P(S) = 1
- For mutually exclusive events A1,A2,…A_1, A_2, \ldots: P(A1∪A2∪…)=P(A1)+P(A2)+…P(A_1 \cup A_2 \cup \ldots) = P(A_1) + P(A_2)
- \ldots Example: If A and B are disjoint events such that:
- P(A) = 0.
- P(B) = 0. Then, P(A ∪ B) = 0.3 + 0.4 = 0.
Advantages:
- Useful in decision-making under uncertainty when data is scarce.
- Allows inclusion of expert knowledge and intuition.
- Flexible and adaptable to one-time or complex events. Disadvantages:
- Highly subjective; different people may assign different probabilities.
- May be biased or incorrect if not well-informed.
- Cannot be tested or verified statistically. Comparative Table: Type of Probabili ty Based On Key Formula Application Pros Cons Classical (A Priori) Logical deduction P(E)=favorabletotal P(E) = \frac{favorable}{tot al} Games of chance, theory Simple, clear, logical Only for equally likely outcomes Relative Frequen cy Repeated trials/observati ons P(E)=E_occurtotalP (E) = \frac{E_occur}{tot al} Insurance, manufacturi ng, science Real- world based, Needs many trials; not suitable
Type of Probabili ty Based On Key Formula Application Pros Cons data- driven for one- time events Axiomati c Mathematical axioms Kolmogorov Axioms All modern statistics Very flexible, foundatio n for modern theory Abstract, needs set theory knowledg e Subjectiv e Personal belief No fixed formula Business, politics, health decisions Incorporat es intuition and expertise Not consistent or scientifica lly testable Conclusion: Each approach to probability offers a unique lens through which uncertainty and randomness can be measured:
- Classical probability is ideal for theoretical and controlled environments.
(a) Explain the concept of a random variable. What is the distribution function? (6 + 14 = 20 marks)
1. Concept of a Random Variable A random variable is a numerical outcome of a random experiment. In statistics and probability theory, it is used to map outcomes of probabilistic experiments to real numbers. Definition: A random variable (RV) is a function that assigns a real number to each outcome in a sample space of a random experiment. There are two types of random variables: i. Discrete Random Variable: - Takes on countable values. - Examples: Number of heads in 3 coin tosses, number of students absent in a class.
Example: Let X = number of heads in 2 coin tosses. Possible values: X = 0, 1, 2 ii. Continuous Random Variable:
- Takes on uncountably infinite values within a given interval.
- Values can include decimals and fractions.
- Examples: Height of a person, time taken to run a marathon. Example: Let Y = time taken to complete a task, Y ∈ [0, ∞) 2. What is a Distribution Function? A distribution function (also called a cumulative distribution function or CDF ) describes the probability that a random variable takes on a value less than or equal to a certain number. Definition of CDF: Let X be a random variable. The distribution function F(x)F(x) is defined as: F(x)=P(X≤x)F(x) = P(X \leq x)
ii. Continuous Distribution Function: For continuous variables, the CDF is derived by integrating the probability density function (PDF). F(x)=∫−∞xf(t)dtF(x) = \int_{-\infty}^{x} f(t) dt Where f(t)f(t) is the PDF of the random variable. Importance of Distribution Functions:
- They allow us to compute probabilities over intervals: P(a≤X≤b)=F(b)−F(a)P(a \leq X \leq b) = F(b) - F(a)
- Used in statistical inference, hypothesis testing, and regression analysis.
- Help in simulating random data and real-world modeling. (b) Problem: Probability Distribution for Alive Men After 30 Years Given:
- Number of men = 5
- Probability that a man is alive after 30 years = p=23p = \frac{2}{3}
- So, probability that a man dies = q=1−23=13q = 1 - \frac{2}{3} = \frac{1}{3}
Let X = number of men alive after 30 years. X follows a Binomial Distribution : X∼B(n=5,p=23)X \sim B(n=5, p=\frac{2}{3}) The formula for the binomial probability is: P(X=r)=(nr)⋅pr⋅qn−rP(X = r) = \binom{n}{r} \cdot p^r \cdot q^{n - r} i) Probability that all 5 men are alive (X = 5): P(X=5)=(55)⋅(23)5⋅(13)0=1⋅(32243)⋅1=32243≈0.1317P(X = 5) = \binom{5}{5} \cdot \left( \frac{2}{3} \right)^5 \cdot \left( \frac{1}{3} \right)^0 = 1 \cdot \left( \frac{32}{243} \right) \cdot 1 = \frac{32}{243} \approx 0. ii) Probability that at least 3 men are alive: "At least 3" means X = 3, 4, or 5. P(X≥3)=P(3)+P(4)+P(5)P(X \geq 3) = P(3) + P(4) + P(5) Compute Each:
- P(3)=(53)⋅(23)3⋅(13)2=10⋅ 827 ⋅19=10⋅8243=80243P(3) = \binom{5}{3} \cdot \left( \frac{2}{3} \right)^3 \cdot \left( \frac{1}{3} \right)^2 = 10 \cdot \frac{8}{27} \cdot \frac{1}{9} = 10 \cdot \frac{8}{243} = \frac{80}{243}
P(1):
P(1)=(51)⋅(23)1⋅(13)4=5⋅ 23 ⋅181=5⋅2243=10243P(1) = \binom{5}{1} \cdot \left( \frac{2}{3} \right)^1 \cdot \left( \frac{1}{3} \right)^4 = 5 \cdot \frac{2}{3} \cdot \frac{1}{81} = 5 \cdot \frac{2}{243} = \frac{10}{243} P(X≤1)=1+10243=11243≈0.0453P(X \leq 1) = \frac{1 + 10}{243} = \frac{11}{243} \approx 0. Final Answers: Scenario Probability i) All 5 men alive (X = 5) 0. ii) At least 3 men alive (X ≥ 3) 0. iii) Only 2 men alive (X = 2) 0. iv) At most 1 man alive (X ≤ 1) 0. Conclusion:
- The binomial distribution is useful in determining probabilities in fixed trials with binary outcomes (alive or not).
- The random variable X represents the number of successes (here, number of men alive).
- Using distribution functions and binomial formulas , we can calculate complex event probabilities in real-world problems like insurance, genetics, quality control, etc.
Q.3 Suppose we want to predict the job performance of chevy
mechanics based on mechanical aptitude test scores and test
scores from personality tests that
measure conscientiousness.
Person 1 2 3 4 5 6 7 8 9
Mechanical aptitude
test score
Job performance 1 2 1 3 2 2 3 4 3
i) State the dependent and independent variables.
ii) Draw a scatter diagram of the above data.
iii) Does the Mechanical Aptitude test score affect Job
Performance?
iv) Find the correlation between two variables.
v) Interpret both the results.
mechanical aptitude increases, we want to observe whether it results in improved job performance. ii) Draw a Scatter Diagram of the Above Data A scatter diagram (scatter plot) is a graphical representation used to study the relationship between two quantitative variables. On the X-axis , we plot the independent variable (Mechanical Aptitude Test Score), and on the Y-axis , we plot the dependent variable (Job Performance Score). Each person is represented by a point on the graph. Data Table for Plotting Person Mechanical Aptitude (X) Job Performance (Y) 1 40 1 2 45 2 3 38 1 4 50 3 5 48 2 6 55 2 7 53 3 8 55 4
Person Mechanical Aptitude (X) Job Performance (Y) 9 58 3 Instructions to draw the scatter plot (manually or using software like Excel):
- Label the X-axis from 35 to 60 (for mechanical scores).
- Label the Y-axis from 0 to 5 (for performance scores).
- Plot each (X, Y) pair as a point. Observation: The scatter diagram will show that as mechanical aptitude increases, job performance tends to increase too, though not perfectly linearly. There are some fluctuations, but a general positive trend appears visible. iii) Does the Mechanical Aptitude Test Score Affect Job Performance? To determine whether mechanical aptitude affects job performance, we look at two things:
- Visual observation of the scatter diagram
- Correlation analysis (which we will do in part iv) From Visual Observation: From the scatter plot, we notice that individuals with higher mechanical aptitude scores (e.g., Persons 6, 7, 8, and 9) tend to show better job performance. While there are exceptions, the general trend appears to be positive —i.e., as aptitude increases, so does performance.