Practice set — Part 2 (Q9–Q16)
Fifty applied mathematics problems for AI & Data Science spanning high-dimensional vectors and cosine similarity, neural layer matrix transformations, multivariable calculus and gradient descent optimization, conditional probability and Bayes' theorem, probability distributions and maximum likelihood estimation (MLE), ordinary least squares linear regression, logistic regression and cross-entropy loss, and covariance matrices and Principal Component Analysis (PCA).
Self-Referential Sigmoid Derivative Identity: Differentiating \(\sigma(z) = (1 + e^{-z})^{-1}\) by the Chain Rule gives \[ \sigma'(z) = \frac{e^{-z}}{(1 + e^{-z})^2} = \frac{1}{1 + e^{-z}} \cdot \frac{e^{-z}}{1 + e^{-z}} = \sigma(z)\big(1 - \sigma(z)\big). \]
Substituting \(\sigma(z_0) = 0.80 \in (0, 1)\) yields \(\sigma'(z_0) = 0.80(1 - 0.80) = 0.80 \times 0.20 = 0.1600\).
Final Answer: \(0.1600\)
Total variance is \(\sum \lambda_i = 62 + 24 + 14 = 100\). The proportion explained by \(PC_1\) is \(\frac{\lambda_1}{\sum \lambda_i} = \frac{62}{100} = 62.0\%\).
Final Answer: \(62.0\%\)
Counting each disjoint region once yields \(|A \cup B| = 9 + 4 + 6 = 19\). Verification: confirm row, axis scale, and boundary values directly from the visual and check intermediate arithmetic. Final Answer: \(19\)
Counting each disjoint region once yields \(|A \cup B| = 8 + 3 + 8 = 19\). Verification: confirm row, axis scale, and boundary values directly from the visual and check intermediate arithmetic. Final Answer: \(19\)
Let D be the event that a person has the disease, and P be the event that the person tests positive.
We are given:
P(P|D) = 0.99 (True Positive Rate)
P(not P|not D) = 0.95 (True Negative Rate), which means P(P|not D) = 1 - 0.95 = 0.05 (False Positive Rate)
P(D) = 0.005 (Prevalence of the disease)
From P(D), we know P(not D) = 1 - P(D) = 1 - 0.005 = 0.995.
We want to find P(D|P), the probability that a person has the disease given a positive test result.
Using Bayes' Theorem:
P(D|P) = [P(P|D) * P(D)] / P(P)
To find P(P), we use the law of total probability:
P(P) = P(P|D) * P(D) + P(P|not D) * P(not D)
P(P) = (0.99 * 0.005) + (0.05 * 0.995)
P(P) = 0.00495 + 0.04975
P(P) = 0.0547
Now, substitute this back into Bayes' Theorem:
P(D|P) = (0.99 * 0.005) / 0.0547
P(D|P) = 0.00495 / 0.0547
P(D|P) \approx 0.09049
Converting to a percentage, this is approximately 9.05\%, which rounds to 9.1\%.
Final Answer: Approximately 9.1\%
From the table, \(g(3) = 4\) and \(f(4) = 12\). Adding \(4\) yields \(12 + 4 = 16\). Verification: confirm row, axis scale, and boundary values directly from the visual and check intermediate arithmetic. Final Answer: \(16\)
Reading the left and right edges of the box on the scale gives \(Q_1 = 15\) and \(Q_3 = 26\), so \(\text{IQR} = 26 - 15 = 11\). Verification: confirm row, axis scale, and boundary values directly from the visual and check intermediate arithmetic. Final Answer: \(11\)
Summing bar heights directly from the histogram gives \(5 + 6 + 9 + 6 = 26\). Verification: confirm row, axis scale, and boundary values directly from the visual and check intermediate arithmetic. Final Answer: \(26\)
