✓ تم التحقق من المنهج الرسميمعايير الجودة والصرامة ↗
S2·3

المعاينة الإحصائية والتقدير بفترات الثقة

📌 Sampling & Estimation S2  ·  Random sampling  ·  Unbiased estimators \bar{x} and s^2  ·  Central Limit Theorem  ·  Confidence interval for \(\mu\)

Populations and Samples

Population: entire group of interest. Sample: subset used to make inferences. Random sampling ensures unbiased estimates.

Sample Mean Distribution

If \(X\sim N(\mu,\sigma^2)\) then \(\bar{X}\sim N\!\left(\mu,\dfrac{\sigma^2}{n}\right)\). Standard error \(=\dfrac{\sigma}{\sqrt{n}}\).

Unbiased Estimators

\(\bar{X}\) is unbiased for \(\mu\). Unbiased variance: \(s^2=\dfrac{1}{n-1}\sum(x_i-\bar{x})^2\).

Confidence Intervals

95% CI for \(\mu\): \(\bar{x}\pm z_{0.025}\cdot\dfrac{\sigma}{\sqrt{n}}\) where \(z_{0.025}=1.96\).

Interpretation

A 95% CI means: 95% of all such intervals constructed would contain the true \(\mu\). Not a probability statement about \(\mu\).

Sample Size

Width of CI \(\propto 1/\sqrt{n}\). To halve width, multiply \(n\) by 4. Required \(n\geq\left(\dfrac{z\sigma}{E}\right)^2\).

▲ Sampling & Estimation — Reference
An unbiased estimator of \(\mu\) is \(\bar{X}\). An unbiased estimator of \(\sigma^2\) is \(s^2=\dfrac{\sum(x_i-\bar{x})^2}{n-1}=\dfrac{\sum x_i^2-n\bar{x}^2}{n-1}\). CLT: For large \(n\), \(\bar{X}\sim N\!\left(\mu,\dfrac{\sigma^2}{n}\right)\) approximately. A 95% confidence interval for \(\mu\) (known \(\sigma\)): \(\bar{x}\pm1.96\dfrac{\sigma}{\sqrt{n}}\). Use \(z=2.576\) for 99% CI.
● الحدس المفاهيمي العميق — Sampling و Estimation

Probabilistic Normalization & Moment Structure: Every probability model is governed by total probability conservation: \(\sum_x P(X=x) = 1\) for discrete random variables and \(\int_{-\infty}^{\infty} f(x)\,dx = 1\) (with \(f(x) \ge 0\)) for continuous density functions. Expected value \(\mathbb{E}[X]\) acts as a linear operator (\(\mathbb{E}[aX + bY] = a\mathbb{E}[X] + b\mathbb{E}[Y]\)), whereas variance scales quadratically and adds for independent variables: \(\operatorname{Var}(aX \pm bY) = a^2\operatorname{Var}(X) + b^2\operatorname{Var}(Y)\).

القطع المكافئ \(f(x) = (x - 2)^2 - 3\) برأسه \(V(2, -3)\) وتقاطعه مع المستقيم \(g(x) = x - 1\) في المعاينة الإحصائية والتقدير بفترات الثقة.
⊙ المختبر التفاعلي · توزيع المعاينة للوسط \(\bar{X}\) وفترة الثقة 95%
تفاعلي
Standard Error \(\sigma / \sqrt{n}\) (المعاينة الإحصائية والتقدير بفترات الثقة)SE = 0.500
95% فترة الثقة\([-0.58, 1.38]\)
فترة نصف-العرض ME\(\pm 0.980\)

كـ عينة حجم \(n\) يزداد، sampling التوزيع \(N(\mu, \sigma^{2}/n)\) narrows و 95% فترة الثقة \(\bar{x} \pm 1.96 \cdot (\sigma /\sqrt{n})\) tightens.

Unbiased \(\hat{\mu}\) (المعاينة الإحصائية والتقدير بفترات الثقة)
\(\bar{x}=\dfrac{\sum x}{n}\)
Unbiased \(\hat{\sigma}^2\) (المعاينة الإحصائية والتقدير بفترات الثقة)
\(s^2=\dfrac{\sum x^2-n\bar{x}^2}{n-1}\)
Dist. of \(\bar{X}\) (المعاينة الإحصائية والتقدير بفترات الثقة)
\(N\!\left(\mu,\dfrac{\sigma^2}{n}\right)\)
95% CI (المعاينة الإحصائية والتقدير بفترات الثقة)
\(\bar{x}\pm1.96\dfrac{\sigma}{\sqrt{n}}\)
◆ Why It Works — First-Principles Derivation (Sampling & Estimation)

Why Variance Scales as \(a^2\) and Independent Variances Always Add: By definition, \(\operatorname{Var}(Y) = \mathbb{E}[(Y - \mu_Y)^2]\). For \(Y = aX - bW\) with independent \(X, W\), subtracting its mean \(\mu_Y = a\mu_X - b\mu_W\) gives:

\[ \operatorname{Var}(aX - bW) = \mathbb{E}\!\left[(a(X - \mu_X) - b(W - \mu_W))^2\right] = a^2\mathbb{E}[(X-\mu_X)^2] - 2ab\,\operatorname{Cov}(X,W) + b^2\mathbb{E}[(W-\mu_W)^2] \]

Because independence implies \(\operatorname{Cov}(X, W) = 0\), the cross term vanishes and \((-b)^2 = +b^2\), proving \(\operatorname{Var}(aX - bW) = a^2\operatorname{Var}(X) + b^2\operatorname{Var}(W)\). Uncertainty compounds whether random variables are added or subtracted.

مثال محلول 1 — فترة الثقة
المسألة. A sample of 36 light bulbs has mean lifetime \(\bar{x}=1200\) hours. The population SD is known to be \(\sigma=60\) hours. Find a 95% CI for the population mean.
▸ عرض خطوات الحل بالتفصيل
\[\bar{x}\pm1.96\cdot\frac{\sigma}{\sqrt{n}}=1200\pm1.96\cdot\frac{60}{\sqrt{36}}=1200\pm19.6.\]

95% CI: \((1180.4,\;1219.6)\) hours.

مثال محلول 2 — Unbiased estimators
المسألة. A sample of 5 values: 12, 15, 11, 14, 13. Find unbiased estimates of \(\mu\) and \(\sigma^2\).
▸ عرض خطوات الحل بالتفصيل

\(\bar{x}=65/5=13\). \(\sum x^2=144+225+121+196+169=855\). \(s^2=\dfrac{855-5(169)}{4}=\dfrac{855-845}{4}=\dfrac{10}{4}=2.5\).

Worked Example \(C\) — Sampling & Estimation (Easy Application)
المسألة. A random sample of \( n = 50 \) observations is taken from a population. The sample values are summarised as follows: \[ \sum x = 450, \quad \sum x^2 = 4295. \] Find an unbiased estimate of the population variance.
▸ عرض خطوات الحل بالتفصيل

The unbiased estimate of the population variance, denoted \( s^2 \), is calculated using the formula: \[ s^2 = \frac{1}{n - 1} \left( \sum x^2 - \frac{(\sum x)^2}{n} \right) \] Substitute the given values \( n = 50 \), \( \sum x = 450 \), and \( \sum x^2 = 4295 \): \[ s^2 = \frac{1}{50 - 1} \left( 4295 - \frac{450^2}{50} \right) \] \[ s^2 = \frac{1}{49} \left( 4295 - \frac{202500}{50} \right) \] \[ s^2 = \frac{1}{49} (4295 - 4050) = \frac{245}{49} = 5.0 \] Why other choices fail: - \( 4.9 \) is the biased sample variance obtained by dividing by \( n = 50 \) instead of \( n - 1 = 49 \). - \( 2.24 \) is the unbiased estimate of the standard deviation, \( \sqrt{5.0} \approx 2.24 \). - \( 9.0 \) is the sample mean \( \bar{x} = \frac{450}{50} \).

Worked Example \(D\) — Sampling & Estimation (Medium Application)
المسألة. A quality control process monitors the weight, \(W\) grams, of chocolate bars produced by a machine. A random sample of 50 chocolate bars was taken, and their weights were recorded. The sample mean weight was 102.5 grams, and the sample standard deviation was 3.5 grams.

A) Calculate the standard error of the mean.
B) Construct a 95% confidence interval for the mean weight of the chocolate bars.
C) The machine is calibrated to produce chocolate bars with a mean weight of \(\mu_0 = 100\) grams. Based on your confidence interval, what conclusion can be drawn about the calibration of the machine?
▸ عرض خطوات الحل بالتفصيل

A) The standard error of the mean (SE) is calculated using the formula: \(SE = \frac{s}{\sqrt{n}}\), where \(s\) is the sample standard deviation and \(n\) is the sample size.
Given \(s = 3.5\) grams and \(n = 50\).
\(SE = \frac{3.5}{\sqrt{50}} \approx \frac{3.5}{7.071} \approx 0.495\) grams.

B) To construct a 95% confidence interval for the mean weight, we use the formula: \(CI = \bar{x} \pm z^* \times SE\), where \(\bar{x}\) is the sample mean and \(z^*\) is the critical z-value for a 95% confidence level. For a 95% confidence level, \(z^* \approx 1.96\).
Given \(\bar{x} = 102.5\) grams and \(SE \approx 0.495\) grams.
\(CI = 102.5 \pm 1.96 \times 0.495\)
\(CI = 102.5 \pm 0.9702\)
The 95% confidence interval is approximately \((101.53, 103.47)\) grams.

C) The machine is calibrated to produce chocolate bars with a mean weight of \(\mu_0 = 100\) grams. Our calculated 95% confidence interval for the mean weight is \((101.53, 103.47)\) grams. Since the hypothesized mean weight of 100 grams lies outside this interval, we have statistically significant evidence to conclude that the machine is likely not calibrated correctly to produce chocolate bars with a mean weight of 100 grams.

Error Diagnosis — Common Student Traps vs. Exam-Board Method (Sampling & Estimation)
الخطأ الشائع لدى الطلابلماذا يفشل رياضياًالطريقة الصحيحة المعتمدة في الاختبار
Writing \(\operatorname{Var}(X - Y) = \sigma_X^2 - \sigma_Y^2\) (المعاينة الإحصائية والتقدير بفترات الثقة)Produces smaller or even negative variance for the difference of independent variables.Always add variances of independent variables: \(\sigma_{X-Y}^2 = \sigma_X^2 + \sigma_Y^2\).
Using \(\sigma / n\) instead of \(\sigma / \sqrt{n}\) for \(\bar{X}\) (المعاينة الإحصائية والتقدير بفترات الثقة)Confuses the variance of the sample mean \(\sigma^2/n\) with its standard error.Take the square root: \(\text{SE}(\bar{X}) = \sigma / \sqrt{n}\).
Accepting \(H_0\) with certainty when \(p > \alpha\)Absence of sufficient evidence against \(H_0\) does not prove \(H_0\) is true.Write in context: "There is insufficient evidence at the \(\alpha\) level to reject \(H_0\)."
▲ استراتيجية إدارة الوقت والتحقق في الاختبار — Sampling و Estimation

Exam Marking Tip (Cambridge International A Level (9709 Paper 3 / Paper 6)): Always state the distribution parameters explicitly (e.g., \(X \sim \operatorname{N}(\mu, \sigma^2)\) or \(\bar{X} \sim \operatorname{N}(\mu, \sigma^2/n)\)) and sketch a quick shaded bell curve before standardizing to \(z = \dfrac{x - \mu}{\sigma}\). This secures the method mark even if a rounding slip occurs later.

A sample of size 100 from a population (known \(\sigma=20\)) gives \(\bar{x}=142\). Find a 99% CI for \(\mu\) and state what "99% confidence" means.
💡 Hint 1 of 3
تلميح للحل: استخدم العلاقة \(142\pm2.576\cdot\dfrac{20}{\sqrt{100}}\) لتبسيط الخطوة.
💡 Hint 2 of 3
Rewrite and substitute: \(142\pm2.576\cdot\dfrac{20}{\sqrt{100}} = 142\pm5.15\). Evaluate \(142\pm5.15\) to obtain the final answer.
💡 Hint 3 of 3
"99% confidence" means: if this process were repeated many times, 99% of the intervals produced would contain the true \(\mu\).
\(142\pm2.576\cdot\dfrac{20}{\sqrt{100}}=142\pm5.15=(136.85,\,147.15)\). "99% confidence" means: if this process were repeated many times, 99% of the intervals produced would contain the true \(\mu\).
منحنى التوزيع الطبيعي المعياري والمساحة المظللة تحت المنحنى في المعاينة الإحصائية والتقدير بفترات الثقة. (1.96, 95)
⚠️ Cambridge 9709 Traps — Unbiased Sample Variance (\(n - 1\)) & CLT Applicability

Divisor \(n-1\) for Unbiased Variance: When estimating population variance from sample data, you MUST divide by \(n-1\), not \(n\):

\[s^2 = \frac{1}{n-1}\left(\sum x^2 - n\bar{x}^2\right)\]

Using \(n\) in the denominator gives the biased sample variance and forfeits marks.

Central Limit Theorem Meaning: The CLT states that the distribution of the sample mean \(\bar{X}\) tends toward normality as sample size \(n\) grows large (\(n \ge 30\)), regardless of the parent distribution. It does NOT make the individual data points normally distributed! If the parent population is already normal, \(\bar{X}\) is exactly normal for *any* sample size, and CLT is not required.

The masses, \(x\) grams, of 50 packets of tea gave \(\sum x = 5090\) and \(\sum x^2 = 518380\). (a) Calculate unbiased estimates of the population mean and variance. (b) Calculate a 95% confidence interval for the population mean.
💡 Hint 1 of 3
تلميح للحل: استخدم العلاقة \(\bar{x} = \frac{5090}{50}\) لتبسيط الخطوة.
💡 Hint 2 of 3
تلميح للحل: استخدم العلاقة \(s^2 = \frac{1}{50 - 1}\left(518380 - 50(101.8)^2\right) = \frac{1}{49}(518380 - 518162) = \frac{218}{49} \approx 4.449\text{ g}^2\) ، \(\text{SE} = \sqrt{\frac{s^2}{n}} = \sqrt{\frac{4.449}{50}}\) لتبسيط الخطوة.
💡 Hint 3 of 3
تلميح للحل: استخدم العلاقة \(\bar{x} \pm 1.96(0.2983) = 101.8 \pm 0.585\) لتبسيط الخطوة.

(a) Sample mean:

\[\bar{x} = \frac{5090}{50} = 101.8\text{ g}\]

Unbiased sample variance:

\[s^2 = \frac{1}{50 - 1}\left(518380 - 50(101.8)^2\right) = \frac{1}{49}(518380 - 518162) = \frac{218}{49} \approx 4.449\text{ g}^2\]

(b) Standard error: \(\text{SE} = \sqrt{\frac{s^2}{n}} = \sqrt{\frac{4.449}{50}} \approx 0.2983\).

\[\bar{x} \pm 1.96(0.2983) = 101.8 \pm 0.585 = (101.2,\; 102.4)\text{ g (1 d.p.)}\]
[Practice 3 · Hard] Two independent random samples, each of size \(n\), are taken from a normal population with mean \(\mu\) and known standard deviation \(\sigma\). From each sample, a symmetric \(90\%\) confidence interval for \(\mu\) is constructed. Given that \(\Phi(1.645) = 0.9500\) and \(\Phi(2.326) = 0.9900\), where \(\Phi\) denotes the standard normal cumulative distribution function, find the probability that these two confidence intervals overlap.
💡 Hint 1 of 3
تلميح للحل: استخدم العلاقة \(90\%\) ، \(\sigma\) ، \(z = 1.645\) لتبسيط الخطوة.
💡 Hint 2 of 3
أعد كتابة العلاقة وبسّطها للحصول على: \(E = 1.645\frac{\sigma}{\sqrt{n}}\) The two intervals are \(I_1 = [\bar{X}_1 - E, \bar{X}_1 + E]\) and \(I_2 = [\bar{X}_2 - E, \bar{X}_2 + E]\).
💡 Hint 3 of 3
Using the symmetry of the standard normal distribution: \(P(|Z| \le 2.326) = 2\Phi(2.326) - 1 = 2(0.9900) - 1 = 1.9800 - 1\).
1. **Margin of error for each confidence interval:** For a symmetric \(90\%\) confidence interval with known \(\sigma\), the critical value is \(z = 1.645\). Each interval has half-width: \[ E = 1.645\frac{\sigma}{\sqrt{n}} \] The two intervals are \(I_1 = [\bar{X}_1 - E, \bar{X}_1 + E]\) and \(I_2 = [\bar{X}_2 - E, \bar{X}_2 + E]\). 2. **Condition for interval overlap:** Two intervals of identical half-width \(E\) overlap if and only if the distance between their centres does not exceed the sum of their half-widths: \[ |\bar{X}_1 - \bar{X}_2| \le 2E = 2(1.645)\frac{\sigma}{\sqrt{n}} \] 3. **Distribution of the difference between sample means:** Since \(\bar{X}_1 \sim N\left(\mu, \frac{\sigma^2}{n}\right)\) and \(\bar{X}_2 \sim N\left(\mu, \frac{\sigma^2}{n}\right)\) are independent: \[ D = \bar{X}_1 - \bar{X}_2 \sim N\left(0, \frac{\sigma^2}{n} + \frac{\sigma^2}{n}\right) = N\left(0, \frac{2\sigma^2}{n}\right) \] The standard deviation of \(D\) is \(\sigma_D = \sqrt{\frac{2\sigma^2}{n}} = \frac{\sigma\sqrt{2}}{\sqrt{n}}\). 4. **Standardization and probability calculation:** \[ P(|D| \le 2E) = P\left(|Z| \le \frac{2(1.645)\frac{\sigma}{\sqrt{n}}}{\sqrt{2}\frac{\sigma}{\sqrt{n}}}\right) = P(|Z| \le 1.645\sqrt{2}) \] Evaluating the boundary: \[ 1.645\sqrt{2} \approx 1.645 \times 1.41421 \approx 2.326 \] Using the symmetry of the standard normal distribution: \[ P(|Z| \le 2.326) = 2\Phi(2.326) - 1 = 2(0.9900) - 1 = 1.9800 - 1 = 0.980 \]
[Practice 4 · Easy] A random sample of 10 values of a variable \( x \) is taken. The results are summarised as follows: \[ \sum x = 50, \quad \sum x^2 = 322 \] Calculate an unbiased estimate of the population variance.
💡 Hint 1 of 3
To find an unbiased estimate of the population variance \( s^2 \), we use the formula: \(s^2 = \frac{1}{n - 1} \left( \sum x^2 - \frac{(\sum x)^2}{n} \right)\).
💡 Hint 2 of 3
تلميح للحل: استخدم العلاقة \(n = 10\) ، \(\sum x = 50\) ، \(\sum x^2 = 322\) ، \(\frac{(\sum x)^2}{n} = \frac{50^2}{10} = \frac{2500}{10}\) لتبسيط الخطوة.
💡 Hint 3 of 3
Substitute these values into the formula: \(s^2 = \frac{1}{10 - 1} (322 - 250) = \frac{1}{9} \times 72\).
To find an unbiased estimate of the population variance \( s^2 \), we use the formula: \[ s^2 = \frac{1}{n - 1} \left( \sum x^2 - \frac{(\sum x)^2}{n} \right) \] Given \( n = 10 \), \( \sum x = 50 \), and \( \sum x^2 = 322 \): \[ \frac{(\sum x)^2}{n} = \frac{50^2}{10} = \frac{2500}{10} = 250 \] Substitute these values into the formula: \[ s^2 = \frac{1}{10 - 1} (322 - 250) = \frac{1}{9} \times 72 = 8 \] - The distractor 7.2 results from dividing by \( n = 10 \) instead of \( n - 1 = 9 \), which gives the biased sample variance rather than the unbiased estimate of the population variance. - The distractor 2.83 is the unbiased estimate of the population standard deviation \( \sqrt{8} \approx 2.83 \). - The distractor 32.2 arises from incorrectly dividing \( \sum x^2 \) by 10.

المعاينة الإحصائية والتقدير بفترات الثقة — مسألة مهيكلة من 8 درجات

8 نقاط الآلة الحاسبة مسموحة
في موضوع المعاينة الإحصائية والتقدير بفترات الثقة، لتكن الدالة الخطية \(f(x) = 3x + 5\) على \(x \ge 0\) والدالة التربيعية المساعدة \(g(x) = x^2 - 6x + 5\).
  1. (a)2 نقطة
    أوجد القيمة الابتدائية \(f(0)\) والميل \(f'(x)\).
    معيار التصحيح والإجابة النموذجية
    • [M1] يحسب f(0) ومعامل الميل (1 نقطة)
    • [A1] يحصل على f(0) = 5 والميل = 3 (1 نقطة)
  2. (b)3 نقطة
    حدّد إحداثيي الرأس \((h, k)\) والقيمة الصغرى للدالة \(g(x)\).
    معيار التصحيح والإجابة النموذجية
    • [M1] يجد محور التماثل x = 3 (2 نقطة)
    • [A1] يحسب القيمة الصغرى -4 (1 نقطة)
  3. (c)3 نقطة
    احسب متوسط معدل تغيّر \(g(x)\) على الفترة من \(x = 0\) إلى \(x = 5\).
    معيار التصحيح والإجابة النموذجية
    • [M1] يطبّق قانون متوسط معدل التغيّر (2 نقطة)
    • [A1] يبسّط الناتج إلى -1 (1 نقطة)
الحل الكامل التفصيلي
(أ) \(f(0)=5\) والميل \(3\). (ب) بإكمال المربع ينتج الرأس \((3, -4)\). (ج) متوسط معدل التغيّر يساوي \(-1\).
🔗 انظر أيضًا: Hypothesis Testing
A random sample of \( n = 50 \) observations is taken from a population. The sample values are summarised as follows: \[ \sum x = 450, \quad \sum x^2 = 4295. \] Find an unbiased estimate of the population variance.
💡 Hint 1 of 3
The unbiased estimate of the population variance, denoted \( s^2 \), is calculated using the formula: \(s^2 = \frac{1}{n - 1} \left( \sum x^2 - \frac{(\sum x)^2}{n} \right)\).
💡 Hint 2 of 3
عوّض the given values \(n = 50\), \(\sum x = 450\), and \(\sum x^2 = 4295\): \(s^2 = \frac{1}{50 - 1} \left( 4295 - \frac{450^2}{50} \right)\) \(s^2 = \frac{1}{49} \left( 4295 - \frac{202500}{50} \right)\).
💡 Hint 3 of 3
تلميح للحل: استخدم العلاقة \(9.0\) ، \(\bar{x}\) لتبسيط الخطوة.
The unbiased estimate of the population variance, denoted \( s^2 \), is calculated using the formula: \[ s^2 = \frac{1}{n - 1} \left( \sum x^2 - \frac{(\sum x)^2}{n} \right) \] Substitute the given values \( n = 50 \), \( \sum x = 450 \), and \( \sum x^2 = 4295 \): \[ s^2 = \frac{1}{50 - 1} \left( 4295 - \frac{450^2}{50} \right) \] \[ s^2 = \frac{1}{49} \left( 4295 - \frac{202500}{50} \right) \] \[ s^2 = \frac{1}{49} (4295 - 4050) = \frac{245}{49} = 5.0 \] Why other choices fail: - \( 4.9 \) is the biased sample variance obtained by dividing by \( n = 50 \) instead of \( n - 1 = 49 \). - \( 2.24 \) is the unbiased estimate of the standard deviation, \( \sqrt{5.0} \approx 2.24 \). - \( 9.0 \) is the sample mean \( \bar{x} = \frac{450}{50} \).
📝 اختبار الفصل