代写EECS 492 Probability and Bayes Nets调试数据库编程

Probability and Bayes Nets

Consider a joint probability distribution with four binary variables: A, B, C, and D. Suppose A is an influence on B, C, and D, but B, C, and D are all conditionally independent of each other given A. Here are a few useful facts:

1. [1 pt] What is P(b|a)?

○ 0.1

○ 0.12

○ 0.2

○ 0.48

○ 0.8

○ 0.9

2. [1 pt] Is B independent from C?

○ Yes

○ No

3. [4 pts] Recall that many Bavesian networks, given the appropriate CPTs, could all represent the same joint probability distribution. Select all of the following diagrams that could represent this joint probability distribution.

4. [3 pts] Calculate P(a | b,c, d). You may leave your answer exact, or round your answer to three decimal places.

Linear Regression

Setup. We are modeling the number of UEFA Champions League trophies (UCL trophies) a club has won using two features:

x1 = appearances,               x2 = avg_Squad_val (in millions).

We use the standard linear regression hypothesis with a bias term:

Cost over a set of m examples:

Unless otherwise stated, take the initial parameters to be

(Units: θ2 matches the “millions” scale of r2.)

Q1. Compute the average cost J(θ(0)) only over Real Madrid and Arsenal (i.e., the first two rows).

Q2. Do one stochastic gradient descent update using only the Juventus point with learning rate α = 10-6, Use the SGD rule

Q3. From the same starting θ(0) and α = 10-6, do one batch gradient descent update using all three examples. The vectorized rule (from lecture) is:

Q4. For the initial θ(0) = [-3, 0.6, 0.01]T, compute (exclude the bias θo):

Data and Training

1. What is the main benefit of k-fold cross-validation compared to a single validation split?

(select one)

A. It uses less data overall

B. It requires less computation

C. It provides a more reliable estimate of model performance

D. It guarantees higher model accuracy

2. You’re working with features that roughly follow a normal distribution and have no major outliers. You plan to use logistic regression. Which preprocessing method would be optimal?

(select one)

A. Min–max scaling

B. Z-score standardization

C. Robust scaling

D. None of the above

3. You train a neural net on 1,000 examples. Training accuracy = 99%, Validation accuracy = 65%. Which of the following is the most likely cause? (select one)

A. Underfitting

B. Overfitting

C. Data leakage

D. Insufficient epochs

4. Which situation most likely indicates overfitting?

A. High training loss and high validation loss

B. Low training loss but high validation loss

C. High training loss but low validation loss

D. Both training and validation losses high and equal

5. You notice that your model’s performance across k-fold cross-validation is highly variable: some folds yield near-perfect accuracy, others barely above chance. Which of the following is the most plausible explanation?

A. The model’s learning rate is too small.

B. The folds are not representative of the data distribution (violating the i.i.d. assumption).

C. Cross-validation always produces high variance by design; this is expected.

D. The number of folds k is too large.

6. After z-score scaling all features, your linear regression model performs worse.

Which subtle mistake could explain this?

A. Some features were nominal, so scaling imposed meaningless distances.

B. The model was under-regularized, so scaling increased variance.

C. Scaling always reduces model interpretability.

D. Z-scoring hides collinearity among features.

Logistic Regression

1. In binary logistic regression, the sigmoid function σ(z) = 1/(1+e^(-z)) is used to transform. the logit into a probability. What is the primary reason we don't use this transformation in linear regression?

A. The sigmoid is computationally expensive

B. Linear regression predicts continuous values that can fall outside [0,1]

C. The sigmoid makes the optimization problem non-convex

D. Linear regression doesn't use gradient descent

2. In softmax regression, why do we subtract the maximum logit value before computing exponentials (the numerical stability trick)?

A. To speed up computation

B. To prevent exponential overflow while maintaining the same probability distribution

C. To ensure all probabilities are exactly equal

D. To make the gradients larger for faster convergence

3. You're using mini-batch gradient descent with batch size b=32 for binary logistic regression on 1,000 examples with 10 features. What is the shape of the gradient ∇_θJ(θ) for one mini-batch update?

A. (32, 1)

B. (11, 1)

C. (11, 32)

D. (1, 32)

4. Your binary logistic regression model predicts ŷ=0.51 for an example with true label y=1, and ŷ=0.49 for another example with true label y=0. Which statement is true?

A. Both examples contribute equally to the loss

B. The first example has lower loss than the second

C. The second example has lower loss than the first

D. Both examples have zero loss since they're correctly classified

5. You train two logistic regression models on the same dataset: Model A uses Mean Squared Error (MSE) as the loss function, Model B uses binary cross-entropy. After training, which outcome is most likely?

A. Model A converges faster due to simpler gradients

B. Model B achieves better performance because cross-entropy is convex for logistic regression

C. Both models achieve identical performance

D. Model A performs better because MSE penalizes large errors more heavily

6. In softmax regression with K=3 classes, you observe the following predicted probability distribution for one example: ŷ = [0.6, 0.3, 0.1]. If the true class is c=2 (second class), what is the approximate cross-entropy loss for this example?

A. 0.3

B. 1.2

C. 0.7

D. 2.3





热门主题

课程名

mktg2509 csci 2600 38170 lng302 csse3010 phas3226 77938 arch1162 engn4536/engn6536 acx5903 comp151101 phl245 cse12 comp9312 stat3016/6016 phas0038 comp2140 6qqmb312 xjco3011 rest0005 ematm0051 5qqmn219 lubs5062m eee8155 cege0100 eap033 artd1109 mat246 etc3430 ecmm462 mis102 inft6800 ddes9903 comp6521 comp9517 comp3331/9331 comp4337 comp6008 comp9414 bu.231.790.81 man00150m csb352h math1041 eengm4100 isys1002 08 6057cem mktg3504 mthm036 mtrx1701 mth3241 eeee3086 cmp-7038b cmp-7000a ints4010 econ2151 infs5710 fins5516 fin3309 fins5510 gsoe9340 math2007 math2036 soee5010 mark3088 infs3605 elec9714 comp2271 ma214 comp2211 infs3604 600426 sit254 acct3091 bbt405 msin0116 com107/com113 mark5826 sit120 comp9021 eco2101 eeen40700 cs253 ece3114 ecmm447 chns3000 math377 itd102 comp9444 comp(2041|9044) econ0060 econ7230 mgt001371 ecs-323 cs6250 mgdi60012 mdia2012 comm221001 comm5000 ma1008 engl642 econ241 com333 math367 mis201 nbs-7041x meek16104 econ2003 comm1190 mbas902 comp-1027 dpst1091 comp7315 eppd1033 m06 ee3025 msci231 bb113/bbs1063 fc709 comp3425 comp9417 econ42915 cb9101 math1102e chme0017 fc307 mkt60104 5522usst litr1-uc6201.200 ee1102 cosc2803 math39512 omp9727 int2067/int5051 bsb151 mgt253 fc021 babs2202 mis2002s phya21 18-213 cege0012 mdia1002 math38032 mech5125 07 cisc102 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 math21112 efim20036 mn-3503 fins5568 110.807 bcpm000028 info6030 bma0092 bcpm0054 math20212 ce335 cs365 cenv6141 ftec5580 math2010 ec3450 comm1170 ecmt1010 csci-ua.0480-003 econ12-200 ib3960 ectb60h3f cs247—assignment tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 math350-real math2014 eec180 stat141b econ2101 msinm014/msing014/msing014b fit2004 comp643 bu1002 cm2030
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图