Tags: #◇CSMODEL #◇Mock Exams #◇Computer Science #◇Data Science #◇Statistical Modeling #◇Python #◇Machine Learning
Calculator Guide for CSMODEL Exam
This guide covers step-by-step instructions for calculating the most common formulas on a standard scientific calculator during the CSMODEL final exam.
◇1. Association Rule Mining (Apriori)
Formulas:
- Support(A) = Frequency(A) / Total Transactions
- Confidence(A → B) = Frequency(A and B) / Frequency(A)
- Lift(A → B) = Confidence(A → B) / Support(B) = Support(A and B) / [Support(A) * Support(B)]
Calculator Usage:
Calculating Lift:
Given: Confidence of A → B = 0.8, Support of B = 0.2
- Type
0.8 - Press
/(divide) - Type
0.2 - Press
=(Result: 4.0)
◇2. Clustering (Euclidean Distance)
Formula:
- Distance = √[ (x₂ - x₁)² + (y₂ - y₁)² ]
Calculator Usage:
Given: Point 1 = (1, 2), Point 2 = (4, 6)
Method 1 (Step-by-step):
- Calculate X difference: Type
4 - 1, press=, press the squaring keyx²(Result: 9) - Add Y difference: Press
+, open parenthesis(, type6 - 2, close parenthesis), press the squaring keyx², press=(Result: 25) - Take the square root: Press the
√(square root) key, type25(or pressAns), then press=(Result: 5)
Method 2 (One-liner using parentheses):
- Press
√ - Open parenthesis
( - Open parenthesis
(, type4 - 1, close parenthesis), pressx² - Press
+ - Open parenthesis
(, type6 - 2, close parenthesis), pressx² - Close parenthesis
) - Press
=(Result: 5)
◇3. Recommender Systems (Cosine Similarity)
Formula:
- Cosine Similarity = (A · B) / (||A|| * ||B||)
Calculator Usage:
Given: Vector A = [3, 4], Vector B = [4, 3]
Step 1: Compute Dot Product (A · B)
- Type
3 * 4 - Press
+ - Type
4 * 3 - Press
=(Result: 24)
(Write this number down: 24)
Step 2: Compute Magnitude of A (||A||)
- Type
3² + 4², press=(Result: 25) - Press
√on the result (Result: 5)
(Write this number down: 5)
Step 3: Compute Magnitude of B (||B||)
- Type
4² + 3², press=(Result: 25) - Press
√on the result (Result: 5)
(Write this number down: 5)
Step 4: Final Calculation
- Type
24 - Press
/ - Open parenthesis
( - Type
5 * 5 - Close parenthesis
) - Press
=(Result: 0.96)
◇4. Basic Statistics (Standard Error)
Formula:
- Standard Error (SE) = Standard Deviation / √(Sample Size)
Calculator Usage:
Given: Standard Deviation = 12, Sample Size = 36
- Type
12 - Press
/ - Press
√(square root), type36 - Press
=(Result: 2.0)
◇5. Bayesian Inference (Bayes' Theorem)
Formula:
- P(A|B) = [ P(B|A) * P(A) ] / P(B)
Calculator Usage:
Given: P(B|A) = 0.9, P(A) = 0.01, P(B) = 0.05
- Type
0.9 * 0.01 - Press
/ - Type
0.05 - Press
=(Result: 0.18)
◇General Calculator Tips for the Exam:
- Parentheses are your best friend: When dealing with fractions (like Cosine Similarity or Bayes' theorem) with multiple terms in the denominator, always wrap the denominator in parentheses.
A / (B * C)is NOT the same asA / B * C. - Store intermediate values: For complex calculations like Cosine Similarity, write down the intermediate dot product and magnitudes on your scratch paper to avoid making a syntax error on a long one-line equation.
- Square Roots: Depending on your calculator (Casio vs. Sharp vs. TI), you either press
√before the number, or type the number and press√after. Make sure you know which way your specific calculator works! - Clear Memory: Hit
ACorCleartwice before starting a completely new problem to ensure nothing is accidentally carried over from the previous calculation.
◇References & Navigation
- Related Notes: ◇Modeling and Simulation