💡 Elaboration Strategy: परीक्षा हलमा यी मुख्य Anchor Points स्मरण राख्नुभयो भने प्रत्येक बुँदालाई प्राज्ञिक रूपमा विस्तार गरेर सजिलै २ देखि ३ पृष्ठको पूर्ण १०-मार्क्सको उत्तर तयार गर्न सकिन्छ।
1
Universal Decision Rule: Calculated vs Critical Value
कुनै पनि test मा यदि तपाईँले हिसाब गरेर निकालेको मान (|Calculated Value|) टेबलको मान (|Critical Table Value|) भन्दा ठूलो आयो भने सिधै H₀ लाई Reject गर्ने! यसको अर्थ हाम्रा दुई समूहबीच साच्चिकै महत्त्वपूर्ण (statistically significant) भिन्नता छ।
निष्कर्ष लेख्दा सधैं दुईवटा कुरा लेख्नुस्: पहिलो 'H₀ is Rejected at 5% significance level', र दोस्रो व्यावहारिक अर्थ 'नयाँ algorithm पुरानो भन्दा साँच्चिकै छिटो छ'।
2
Type I (झुटो आरोप / α) vs Type II (दोषी छुट्ने / β) Errors
Type I error (False Positive) भनेको सत्य कुरालाई अस्वीकार गर्नु हो (जस्तै निर्दोष मान्छेलाई जेल हाल्नु)। Type II error (False Negative) भनेको गलत कुरालाई पनि स्वीकार गर्नु हो (दोषी अपराधीलाई प्रमाण नपुगेर छाड्नु)।
Hypothesis testing को कुनै पनि १०-मार्क्स प्रश्नमा यो २x२ Decision Table बनाउनुस्: [Reality H₀ True/False vs Decision Reject/Accept]।
3
कुन बेला कुन Test चलाउने? (Test Selection Rule)
Categorical/Count डेटा छ भने Chi-Square (χ²); दुईवटा समूहको औषत (mean) दाँज्नु छ भने Student's t-test; तीन वा सोभन्दा बढी समूह छन् भने ANOVA (F-test); दुई समूहको variance को स्थिरता दाँज्नु छ भने F-test; र Ranking/Ordinal डेटा छ भने Spearman's Rank (ρ)।
Sample size n < 30 र जनसंख्याको variance थाहा नहुँदा सधैं t-test प्रयोग हुन्छ भनेर सम्झिनुस्।
4
हिसाब गर्दा पूरा गर्नुपर्ने ५ वटा पक्का Steps
Step 1: H₀ र H₁ प्रस्ट लेख्ने -> Step 2: Formula लेखेर value calculate गर्ने -> Step 3: Degrees of Freedom (df) निकाल्ने -> Step 4: Critical Value (टेबल मान) टिप्ने -> Step 5: Decision र व्यावहारिक Conclusion लेख्ने।
यो ५-step को ढाँचामा हिसाब गर्नुभयो भने परीक्षामा १ मार्क्स पनि काटिने ठाउँ रहँदैन।
Section 01
Master Statistical Test Decision Tree (“कुन Test कहिले लगाउने?”)
One of the most critical examination skills in Unit 4 is inspecting the problem statement and instantly determining which statistical formula to apply:
FLOWCHART: SELECTING THE CORRECT STATISTICAL TEST
What is the nature and level of your research data?
├── 1. Categorical / Frequencies (Counts in rows & columns):
└── Use Chi-Square (χ²) Test of Independence [df = (r - 1)(c - 1)]
├── 2. Ordinal / Ranks (Rankings given by judges/evaluators):
└── Use Spearman's Rank Order Correlation (ρ) [ρ = 1 - 6Σd² / n(n² - 1)]
└── 3. Continuous Numeric Data (Interval or Ratio Scale):
├── Want to compare Variability (Variance) of two systems?
└── Use F-Test (Variance Ratio) [F = S₁² / S₂²]
├── Want to compare Means of TWO groups (n < 30, unknown σ)?
├── Same subjects Before vs After? ──> Paired t-Test └── Two distinct independent groups? ──> Two-Sample Independent t-Test
└── Want to compare Means of THREE or MORE groups?
└── Use One-Way ANOVA (F-Test) [F = MS_between / MS_within]
👨🏫शिक्षकको बोर्ड नोट (Teacher's Board Note)
यो फ्लोचार्ट दिमागमा राख्नुभयो भने परीक्षामा प्रश्न देख्ने बित्तिकै १० सेकेन्डभित्र कुन सूत्र लगाउने भन्ने स्पष्ट हुन्छ!
Section 02
Type I vs Type II Errors Decision Matrix
Whenever an empirical test of significance is performed, two errors can occur:
Researcher Decision
Null Hypothesis (H₀) is Actually TRUE
Null Hypothesis (H₀) is Actually FALSE
Reject H₀
TYPE I ERROR (α)False Positive (False Alarm): Claiming an algorithm is better when it is not.
CORRECT DECISIONPower of Test (1 - β): Successfully detecting a genuine breakthrough.
Fail to Reject H₀
CORRECT DECISIONConfidence Level (1 - α): Correctly maintaining the status quo.
TYPE II ERROR (β)False Negative (Missed Detection): Missing a truly effective algorithm.
🎯 Must-Draw Examination Diagram:TU को ५-मार्क्सको प्रश्नमा यो २×२ म्याट्रिक्स टेबल अनिवार्य कोर्नुहोस् र अल्फा (α) र बिटा (β) लाई स्पष्ट रेखाङ्कन गर्नुहोस्।
Numerical 01
Chi-Square (χ²) Test of Independence (Fully Solved Model)
Non-Parametric TestTU Model Numerical
Chi-Square (χ²) Test of Independence
🎯 कुन बेला यो Test प्रयोग गर्ने? (When to use):
दुईवटा Categorical variables (जस्तै: Developer Level र Code Review Result) बीच कुनै सम्बन्ध (Association) छ कि छैन भनी जाँच्न।
👨🏫 शिक्षकको कोर लजिक (Teacher's Mental Model):
परीक्षकले Observed Frequency (O) को टेबल दिन्छन्। हामीले पहिले Expected Frequency (E = Row Total × Col Total / Grand Total) निकाल्नुपर्छ। त्यसपछि (O - E)² / E को जोड निकालेर Critical Value सँग तुलना गर्ने हो।
📝 Question Statement (परीक्षाको प्रश्न):A software engineering lab tests whether developer experience (Junior vs Senior) influences Code Review Acceptance on the first attempt. Sample of 120 submissions showed:
• Junior: 20 Accepted, 40 Major Rework
• Senior: 50 Accepted, 10 Major Rework
Test at α = 0.05 whether developer experience and code review acceptance are independent.
Construct calculation table for observed (O) and expected (E) frequencies.
👨🏫 Step Tip: कापीमा यो ५-कोलम भएको टेबल अनिवार्य बनाउनुहोस्। परीक्षकले सिधै यो टेबल हेरेर Full Marks दिन्छन्।
Cell
Observed (O)
Expected (E)
(O - E)
(O - E)²
(O - E)² / E
Junior, Accepted
20
35.0
-15.0
225.0
6.429
Junior, Rework
40
25.0
+15.0
225.0
9.000
Senior, Accepted
50
35.0
+15.0
225.0
6.429
Senior, Rework
10
25.0
-15.0
225.0
9.000
Total (χ² calculated)
120
120.0
0.0
-
30.858
χ² calculated = 30.858
4Degrees of Freedom (df) & Critical Table Lookup
df = (r - 1)(c - 1)
Determine df and find critical value at α = 0.05.
👨🏫 Step Tip: 2×2 टेबलमा df सधैं (2 - 1)(2 - 1) = 1 हुन्छ। α = 0.05 मा Table Value सधैं 3.841 हुन्छ।
• Rows (r) = 2, Columns (c) = 2
• df = (2 - 1) × (2 - 1) = 1 × 1 = 1
• Critical χ² at α = 0.05 and df = 1 is 3.841
Final Step: Decision Rule & Academic ConclusionReject H₀
Calculated:30.858
Critical Table:3.841
Degrees of Freedom:1
Alpha (α):0.05
✍️ What to Write in the TU Exam Answer Sheet (Final Report):Since the calculated Chi-Square value (30.858) is far greater than the critical value (3.841) at α = 0.05, we reject the null hypothesis. There is a statistically significant association between developer experience and code review acceptance. Senior developers have significantly higher first-time acceptance rates.
Exam Hall Verification Checklist (विद्यार्थीले जाँच्नुपर्ने कुराहरू):
Always verify that Σ (O - E) = 0. If it is not zero, your calculation has an arithmetic error.
Always state both H₀ and H₁ explicitly before touching numbers.
Remember: For df = 1 and α = 0.05, the critical value is always 3.841.
Numerical 02
One-Sample Student's t-Test (Fully Solved Model)
Parametric TestTU Model Numerical
One-Sample Student's t-Test
🎯 कुन बेला यो Test प्रयोग गर्ने? (When to use):
जब Sample Size सानो (n < 30) हुन्छ, Population Standard Deviation (σ) थाहा हुँदैन, र Sample Mean (X̄) लाई कुनै तोकिएको Benchmark (μ₀) सँग दाँज्नुपर्ने हुन्छ।
👨🏫 शिक्षकको कोर लजिक (Teacher's Mental Model):
पहिले Sample Mean (X̄) निकाल्ने, त्यसपछि Sample Variance s² = Σ(X - X̄)² / (n - 1) निकाल्ने, त्यसपछि Standard Error SE = s / √n ले भाग गरेर t-value निकाल्ने।
📝 Question Statement (परीक्षाको प्रश्न):A software lab claims a new caching algorithm reduces database query latency to an average of μ₀ = 50 ms. A random test of n = 10 query executions recorded the following response latencies (in ms):
44, 46, 43, 48, 45, 47, 42, 49, 44, 42.
Test at α = 0.05 whether the algorithm significantly outperforms the 50 ms benchmark.
Given Data:Sample size (n): 10Hypothesized Population Mean (μ₀): 50 msSignificance Level (α): 0.05
Step-by-Step Verified Solution:
1State Hypotheses (H₀ and H₁)
Formulate null and alternative claims.
👨🏫 Step Tip: H₀: μ = 50 ms (कुनै सुधार छैन), H₁: μ ≠ 50 ms (दुई-तर्फी / Two-tailed परीक्षण)।
👨🏫 Step Tip: Two-tailed test मा α = 0.05 र df = 9 हुँदा Table Value सधैं 2.262 हुन्छ।
• df = n - 1 = 10 - 1 = 9
• For two-tailed test at α = 0.05 and df = 9, critical t = 2.262
Final Step: Decision Rule & Academic ConclusionReject H₀
Calculated:6.455
Critical Table:2.262
Degrees of Freedom:9
Alpha (α):0.05
✍️ What to Write in the TU Exam Answer Sheet (Final Report):Because the absolute calculated t-statistic (6.455) exceeds the critical table value (2.262) at α = 0.05 with 9 degrees of freedom, we reject H₀. The new caching algorithm achieves a mean latency of 45 ms, which is statistically significantly faster than the 50 ms benchmark.
Exam Hall Verification Checklist (विद्यार्थीले जाँच्नुपर्ने कुराहरू):
Divide by n - 1 = 9 when calculating sample variance s², not 10.
Check that the sum of deviations Σ(X - X̄) equals exactly 0.
State whether you are using a two-tailed or one-tailed test.
Numerical 03
Independent Two-Sample t-Test with Pooled Variance
Parametric TestTU Model Numerical
Two-Sample Independent t-Test (Pooled Variance)
🎯 कुन बेला यो Test प्रयोग गर्ने? (When to use):
दुई फरक स्वतन्त्र समूहहरू (जस्तै: Traditional UI प्रयोगकर्ता vs New AI UI प्रयोगकर्ता) को औसत समय वा प्रदर्शनमा भिन्नता छ कि छैन जाँच्न।
👨🏫 शिक्षकको कोर लजिक (Teacher's Mental Model):
पहिले दुवै समूहको Mean (X̄₁, X̄₂) निकाल्ने, त्यसपछि Pooled Variance Sₚ² = [Σ(X₁ - X̄₁)² + Σ(X₂ - X̄₂)²] / (n₁ + n₂ - 2) निकाल्ने, अनि t = (X̄₁ - X̄₂) / √[Sₚ²(1/n₁ + 1/n₂)] गर्ने।
📝 Question Statement (परीक्षाको प्रश्न):An HCI experiment compares user task completion times (seconds) between Traditional UI (Group 1, n₁ = 8) and AI-Assisted UI (Group 2, n₂ = 8).
• Group 1 times: 32, 34, 30, 36, 31, 35, 33, 29
• Group 2 times: 26, 28, 25, 29, 27, 24, 28, 25
Assuming equal variances, test at α = 0.05 whether the AI UI significantly reduces task completion time.
👨🏫 Step Tip: Pooled df = n₁ + n₂ - 2 = 8 + 8 - 2 = 14 हो। Table मा 14 df र α = 0.05 मा 2.145 हेर्ने।
• df = 8 + 8 - 2 = 14
• For two-tailed test at α = 0.05 and df = 14, critical t = 2.145
Final Step: Decision Rule & Academic ConclusionReject H₀
Calculated:5.613
Critical Table:2.145
Degrees of Freedom:14
Alpha (α):0.05
✍️ What to Write in the TU Exam Answer Sheet (Final Report):The calculated t-value (5.613) exceeds the critical value (2.145) at α = 0.05. We reject H₀ and conclude that the AI-assisted interface significantly reduces task completion time compared to the traditional interface.
Exam Hall Verification Checklist (विद्यार्थीले जाँच्नुपर्ने कुराहरू):
Always use pooled df = n₁ + n₂ - 2 = 14.
Verify Sₚ² calculation carefully before taking square roots.
Numerical 04
F-Test for Equality of Two Variances (Variance Ratio Test)
Parametric TestTU Model Numerical
F-Test for Equality of Two Variances
🎯 कुन बेला यो Test प्रयोग गर्ने? (When to use):
दुईवटा Independent Populations को Variance (एकरूपता / Consistency) बराबर छ कि छैन जाँच्न।
👨🏫 शिक्षकको कोर लजिक (Teacher's Mental Model):
F-Test मा सधैं ठूलो Variance भएको समूहलाई माथि (Numerator) राख्ने (S₁² > S₂²)। यसले गर्दा F को मान सधैं १ भन्दा ठूलो वा बराबर आउँछ।
📝 Question Statement (परीक्षाको प्रश्न):A cloud engineer evaluates latency consistency between Cloud Server Cluster A (n₁ = 10) and Cluster B (n₂ = 12). Sample variance of latency is S₁² = 28.5 (ms²) for Cluster A, and S₂² = 9.5 (ms²) for Cluster B. At α = 0.05, test whether the two server clusters have equal latency variability.
• Critical F from F-distribution table at α = 0.05 with (9, 11) df is 2.90
Final Step: Decision Rule & Academic ConclusionReject H₀
Calculated:3.00
Critical Table:2.90
Degrees of Freedom:v₁ = 9, v₂ = 11
Alpha (α):0.05
✍️ What to Write in the TU Exam Answer Sheet (Final Report):Since the calculated F-statistic (3.00) is greater than the critical value (2.90) at α = 0.05, we reject the null hypothesis. There is a statistically significant difference in latency variance between the two clusters; Cluster B operates with significantly greater consistency.
Exam Hall Verification Checklist (विद्यार्थीले जाँच्नुपर्ने कुराहरू):
Rule of thumb: Always place the larger variance in the numerator so F ≥ 1.
Keep numerator df and denominator df in correct order when checking the F-table.
Numerical 05
Spearman's Rank Order Correlation Coefficient (ρ)
Non-Parametric TestTU Model Numerical
Spearman's Rank Order Correlation (ρ)
🎯 कुन बेला यो Test प्रयोग गर्ने? (When to use):
जब Data Ordinal (Rank गरिएको) हुन्छ, वा Normal distribution नभएको Continuous data लाई क्रमबद्ध गरेर दुई Variable बीचको सम्बन्ध नाप्नुपर्ने हुन्छ।
👨🏫 शिक्षकको कोर लजिक (Teacher's Mental Model):
दुवै निर्णायक वा Variable को Rank बीचको फरक d = R₁ - R₂ निकाल्ने, त्यसको वर्ग d² निकाल्ने, र सूत्र ρ = 1 - [6Σd² / n(n² - 1)] मा हाल्ने।
📝 Question Statement (परीक्षाको प्रश्न):Two expert HCI usability judges independently ranked n = 8 software prototypes (A through H) on aesthetic appeal as follows:
Prototypes: [A, B, C, D, E, F, G, H]
Judge 1 Ranks (R₁): [1, 2, 3, 4, 5, 6, 7, 8]
Judge 2 Ranks (R₂): [2, 1, 4, 3, 6, 5, 8, 7]
Calculate Spearman's Rank Correlation Coefficient and interpret their level of agreement.
Final Step: Decision Rule & Academic ConclusionVery Strong Positive Correlation
Calculated:+0.905
Critical Table:0.714 (at α = 0.05, n = 8)
Degrees of Freedom:n = 8
Alpha (α):0.05
✍️ What to Write in the TU Exam Answer Sheet (Final Report):The calculated Spearman Rank Correlation coefficient of +0.905 indicates a very high, positive, and statistically significant degree of agreement between the two HCI usability judges.
Exam Hall Verification Checklist (विद्यार्थीले जाँच्नुपर्ने कुराहरू):
Always verify that Σd = 0 in your exam calculation table.
Check that n² - 1 is calculated accurately before multiplying by n.
Interpret ρ within the range of -1 (perfect negative) to +1 (perfect positive).
Section 08
One-Way ANOVA (Analysis of Variance) & The Summary Table
ANOVA compares the means of three or more groups simultaneously by decomposing the total sum of squares into Between-Group (treatment effect) and Within-Group (error) variance:
Source of Variation
Sum of Squares (SS)
Degrees of Freedom (df)
Mean Square (MS)
F-Ratio
Between Groups (Treatment)
SSB
k - 1
MSB = SSB / (k - 1)
F = MSB / MSW
Within Groups (Error)
SSW
N - k
MSW = SSW / (N - k)
Total
SST = SSB + SSW
N - 1
-
-
🎯 TU Exam Tip:कहिलेकाहीँ TU परीक्षामा ANOVA को हिसाब नसोधेर केवल “ANOVA Summary Table को ढाँचा कोर्नुहोस्” भनेर ५ नम्बरमा सोधिन्छ। माथिको तालिका जस्ताको तस्तै कोर्नुहोस्।
Section 09
Machine Learning Approaches to Decision Making & Prediction
The syllabus highlights modern algorithmic approaches that transcend classical hypothesis testing when dealing with massive high-dimensional datasets:
Supervised Predictive Modeling
Trains models on historical labeled datasets to predict continuous numerical targets (Regression) or discrete categories (Classification). Evaluated via K-Fold Cross Validation, Precision, Recall, and ROC-AUC.
Unsupervised Data Mining & Clustering
Discovers hidden user segments, clusters of anomalous server intrusions, and latent thematic groupings without predefined target labels. Algorithms: K-Means, DBSCAN, Hierarchical Clustering.
High-Probability Exam Blueprint
TU Exam Model Q&A Bank — Unit 4
5 Past & Model Questions
💡 यी प्रश्नहरू विगतका TU परीक्षा तथा सिलेबसका मुख्य उद्देष्यहरूबाट संकलन गरिएका हुन्। उत्तरपुस्तिकामा Full Marks पाउन चाहिने मोडेल ढाँचा यहाँ प्रस्तुत गरिएको छ।
शिक्षकको छोटो सारांश (One-Minute Exam Recall):
अदालतको उदाहरण सम्झिनुहोस्: Type I Error (α) भनेको निर्दोषलाई जेल हाल्नु (सत्य H₀ लाई Reject गर्नु) हो। Type II Error (β) भनेको दोषीलाई प्रमाण नपुगेर छोडिदिनु (गलत H₀ लाई Accept गर्नु) हो।
Standard Model Answer Structure:
1. Type I Error (α - False Positive): Rejecting a True Null Hypothesis. Occurs when researcher concludes a new algorithm is superior when in reality the observed difference occurred purely by chance.
2. Type II Error (β - False Negative): Failing to reject a False Null Hypothesis. Occurs when researcher misses a genuinely effective algorithmic breakthrough because sample size was too small.
3. Courtroom Analogy: Type I is convicting an innocent citizen (False Alarm); Type II is acquitting a guilty criminal due to lack of evidence (Missed Detection).
4. Power of the Test (1 - β): The probability of correctly rejecting a false null hypothesis.