Numerical studies and reproducibility
Original computational research interview scenarios on numerical reliability, simulation studies, statistical evidence, optimization, and reproducible scientific workflows.
These are original research interview scenarios, independent of employers, live interviews, and published question banks.
1.A simulation team is asked to show that a new solver is better. What should be defined before choosing a benchmark metric?
Show answer and explanation
- Only the solver with the newest release date
- The scientific or computational claim and comparison conditions
- The result plot's preferred axis limits
- The largest problem that fits available memory
Answer: The scientific or computational claim and comparison conditions
A meaningful evaluation starts with a specified claim, baseline, domain, and outcome. Choosing a favorable metric afterward can answer a different question.
2.A solver matches an exact solution of the implemented equations. What has that evidence directly supported?
Show answer and explanation
- Verification of that implementation for the tested case
- Validation of every physical assumption in the model
- Confirmation that all measured inputs are unbiased
- Proof of accuracy for every boundary condition
Answer: Verification of that implementation for the tested case
Agreement with a known mathematical solution supports code/solution verification. Physical validity and applicability require additional evidence about the modeled system.
3.Refining the mesh no longer changes a result, but the result still disagrees with reliable observations. What possibility remains?
Show answer and explanation
- The mesh must still be the sole error source
- The output must be rounded to fewer digits until it agrees
- The model may omit relevant physical behavior
- Numerical convergence proves the observations are wrong
Answer: The model may omit relevant physical behavior
Numerical convergence addresses discretization behavior under the model. It cannot establish that the chosen equations and assumptions describe the observed system adequately.
4.A diffusion model expects a coefficient in m²/s, but an input table supplies cm²/s. What conversion is required for the numeric coefficient?
Show answer and explanation
- Multiply by 10^-4
- Multiply by 10^2
- Multiply by 10^-2
- Leave the number unchanged
Answer: Multiply by 10^-4
One centimeter is 10^-2 meters, so one square centimeter is 10^-4 square meters. Square the length conversion for the diffusion coefficient's units.
5.Two physical experiments differ in size and flow speed. Why compare relevant dimensionless groups when claiming dynamic similarity?
Show answer and explanation
- They remove every boundary-condition requirement
- They make dimensional inputs unnecessary in all future calculations
- They guarantee identical material properties without measurement
- They express the ratios governing the modeled behavior
Answer: They express the ratios governing the modeled behavior
Dimensionless groups expose governing ratios. Similarity still depends on the applicable model, geometry, boundary conditions, and other relevant parameters.
6.An input perturbation is tiny, yet a correctly implemented calculation changes greatly. Which concept concerns the problem's intrinsic sensitivity?
Show answer and explanation
- Conditioning
- Bitwise determinism alone
- The linear solver's iteration count alone
- Loop vectorization
Answer: Conditioning
Conditioning describes how the mathematical answer responds to input changes. Algorithmic stability describes how the numerical method behaves on that problem.
7.A computed linear-system solution has a small residual. Why is that not enough to assert a small solution error?
Show answer and explanation
- Every small residual proves the matrix is singular
- Residuals are measured only before a solver starts
- An ill-conditioned system can amplify small residuals
- The solution must use the same numeric values as the right-hand side
Answer: An ill-conditioned system can amplify small residuals
Residual and forward error are related through the system's conditioning and scaling. A small residual alone does not guarantee a comparably small error in the solution.
8.A researcher proposes higher precision to fix an intrinsically unidentifiable parameter. What limitation should be explained?
Show answer and explanation
- More arithmetic precision cannot create missing information
- Unidentifiability is only a file-storage problem
- Every unidentifiable model has zero residual at all parameters
- Higher precision always makes the parameter identifiable
Answer: More arithmetic precision cannot create missing information
Arithmetic precision addresses some numerical errors. Identifiability concerns whether the data and model distinguish parameter values at all.
9.A computation needs x satisfying Ax = b for a nonsingular square matrix. Which approach is ordinarily preferable to explicitly constructing A^-1 solely for that product?
Show answer and explanation
- Form every cofactor to create the inverse
- Replace the solution with the diagonal of A
- Use a suitable linear-system solver
- Round A to integers before multiplying
Answer: Use a suitable linear-system solver
A suitable solve avoids explicitly constructing an unnecessary inverse and can use factorizations appropriate to the matrix. Check conditioning and solver assumptions as well.
10.A poorly conditioned design matrix is used for least squares. Why can forming AᵀA be numerically troublesome?
Show answer and explanation
- It always removes every null direction
- It squares the matrix's 2-norm condition number when full rank
- It guarantees exact coefficients in floating-point arithmetic
- It preserves the original condition number exactly
Answer: It squares the matrix's 2-norm condition number when full rank
For a full-column-rank matrix, κ₂(AᵀA) = κ₂(A)². QR or SVD-based approaches can avoid this particular worsening of conditioning.
11.A matrix has very small singular values near the scale of data error. What should a numerical-rank decision consider?
Show answer and explanation
- A tolerance related to scale, precision, and uncertainty
- Only whether a singular value prints as exactly zero
- A rule that every nonzero singular value is reliable signal
- Only whether the matrix has more rows than columns
Answer: A tolerance related to scale, precision, and uncertainty
Numerical rank is a scale-sensitive decision. Small directions may be indistinguishable from noise even when arithmetic represents them as nonzero.
12.Two different parameter vectors produce identical predictions because their difference lies in the design matrix's nullspace. What follows?
Show answer and explanation
- A faster optimizer must select the physically true vector
- The data do not uniquely identify those parameter directions
- Additional iterations alone guarantee uniqueness
- The parameter with more printed digits is correct
Answer: The data do not uniquely identify those parameter directions
A null direction leaves the modeled predictions unchanged. Additional information, constraints, or justified regularization is needed to distinguish those parameters.
13.An iterative linear solver makes slow progress on a badly scaled problem. What is the purpose of an appropriate preconditioner?
Show answer and explanation
- Change the scientific target without documenting it
- Guarantee convergence for every matrix and tolerance
- Improve the system presented to the iteration
- Replace residual checks with wall-clock timing alone
Answer: Improve the system presented to the iteration
A preconditioner transforms the iterative problem to improve convergence properties while preserving the intended solution through the defined transformation.
14.An optimizer treats one parameter near 10^-9 and another near 10^6 using the same unscaled step measure. What may help?
Show answer and explanation
- Round both parameters to one significant digit
- Scale variables and interpret steps in meaningful units
- Use a single physical unit for unrelated quantities without conversion
- Discard the smaller parameter because it is numerically tiny
Answer: Scale variables and interpret steps in meaningful units
Scaling can make step sizes and stopping criteria more meaningful across parameters. It does not remove the need to justify bounds, tolerances, and model structure.
15.A sparse matrix has a million rows but only a few nonzeros per row. Why can converting it to a dense matrix be disastrous?
Show answer and explanation
- The number of physical observations doubles
- The mathematical matrix automatically becomes singular
- Dense storage guarantees a smaller numerical residual
- Storage can grow with the square of the row count
Answer: Storage can grow with the square of the row count
Dense storage includes all zero entries. A million-by-million dense array is far larger than a representation proportional to a small number of nonzeros per row.
16.A proposed factorization assumes a real symmetric positive-definite matrix. What should be checked before using that algorithm?
Show answer and explanation
- Whether the modeled matrix satisfies those properties
- Only whether the matrix is square
- Whether its determinant prints with many digits
- Only whether every entry has a positive sign
Answer: Whether the modeled matrix satisfies those properties
A square matrix or positive-looking entries do not establish positive definiteness. Use the required mathematical structure and an appropriate numerical diagnostic.
17.Two runs return opposite signs for the same normalized real eigenvector of a simple eigenvalue. What comparison is appropriate?
Show answer and explanation
- Choose the vector produced by the faster run as the true one
- Compare the represented direction allowing a sign change
- Treat the sign flip alone as a wrong eigenspace
- Add the two vectors and require their sum to have unit norm
Answer: Compare the represented direction allowing a sign change
An eigenvector and its negative represent the same one-dimensional eigenspace. Comparisons should account for such non-uniqueness before reporting a numerical failure.
18.Two nearly equal computed quantities are subtracted to obtain a much smaller result. What numerical concern should be examined?
Show answer and explanation
- An automatic improvement in input conditioning
- A guaranteed increase in the result's significant digits
- A proof that both original quantities were exactly represented
- Loss of relative accuracy from cancellation
Answer: Loss of relative accuracy from cancellation
Small input or rounding errors can dominate the small difference. A mathematically equivalent formulation may retain accuracy better for the relevant regime.
19.A formula needs
exp(x)− 1 for x very close to zero. What is a useful implementation choice?Show answer and explanation
- Compute exp(x) twice and subtract the results
- A numerically designed expm1 operation
- Replace the difference by exp(x) for all x
- Round exp(x) to one before subtraction
Answer: A numerically designed expm1 operation
A dedicated expm1 implementation avoids the avoidable loss from subtracting one from a rounded exponential near zero. Use its documented domain and accuracy behavior.
20.Computing log(
exp(a)+exp(b)) overflows for large finite a and b. Which reformulation is useful?Show answer and explanation
- Take log(a + b) as though it were algebraically equivalent
- Replace overflowing exponential terms with zero
- Multiply both exponentials before taking the logarithm
- Subtract a shared maximum inside the exponentials
Answer: Subtract a shared maximum inside the exponentials
With m = max(a,b), use m + log(exp(a−m) + exp(b−m)). This preserves the mathematical value while controlling exponential range.
21.A parallel floating-point sum changes slightly when the number of workers changes. What can explain this without implying different input data?
Show answer and explanation
- The sum's exact real value depending on worker identity
- Every worker count using a different physical unit
- Different addition order and rounding
- Floating-point addition being exactly associative
Answer: Different addition order and rounding
Floating-point addition is not generally associative. Different reduction trees can change rounding even for the same inputs and mathematical sum.
22.A dataset has a large mean and tiny spread. Why can
mean(x²)−mean(x)² be a poor naive variance calculation?Show answer and explanation
- It removes every systematic measurement error
- It subtracts large nearly equal quantities
- It cannot represent any positive data values
- It always returns the exact sample variance
Answer: It subtracts large nearly equal quantities
Cancellation can destroy useful digits and even create small negative results from rounding. A stable centered or online method is often more appropriate.
23.What does compensated summation aim to reduce?
Show answer and explanation
- Accumulated rounding error in the sum
- Bias in the physical instrument calibration
- The number of observations needed for every scientific claim
- The sampling uncertainty of the observations
Answer: Accumulated rounding error in the sum
Compensation tracks information lost in rounding during summation. It does not correct biased measurements, model error, or statistical uncertainty.
24.A result changes substantially when arithmetic precision is increased while the model and discretization are fixed. What does this suggest examining?
Show answer and explanation
- A guarantee that the higher-precision answer is physically correct
- Only the physical validity of the boundary condition
- Sensitivity to rounding and numerical stability
- A reason to delete the lower-precision run from the record
Answer: Sensitivity to rounding and numerical stability
Precision variation can reveal numerical sensitivity. It is diagnostic evidence, not by itself a validation of the model or a proof of the higher-precision result.
25.A solver uses a low-precision factorization with high-precision residuals and correction steps. What must the researcher still verify?
Show answer and explanation
- That refinement converges accurately for the actual problem
- That low precision makes conditioning irrelevant
- That one correction proves exact arithmetic
- That the residual calculation can be omitted after initialization
Answer: That refinement converges accurately for the actual problem
Mixed-precision refinement can be effective under suitable conditions. Conditioning, factorization quality, residual accuracy, and observed convergence remain important.
26.A finite-difference derivative becomes less accurate when an already tiny step is reduced further. What tradeoff can explain this?
Show answer and explanation
- The true derivative changes with the chosen step
- A smaller step guarantees more significant digits
- Truncation error must grow for every smaller step
- Rounding/cancellation grows as truncation error shrinks
Answer: Rounding/cancellation grows as truncation error shrinks
Derivative approximations balance truncation against rounding and cancellation. The smallest representable perturbation is not automatically the most accurate step.
27.How can a researcher test an implemented high-dimensional gradient without checking every component separately?
Show answer and explanation
- Require every gradient component to be positive
- Compare a directional derivative with a finite-difference directional check
- Confirm that an optimizer returned any status code
- Compare only the gradient array's shape
Answer: Compare a directional derivative with a finite-difference directional check
A directional check compares g·v with a controlled perturbation along v. Use suitable steps and multiple directions, recognizing finite-difference error limits.
28.Automatic differentiation returns a precise derivative of implemented code. What can still be wrong scientifically?
Show answer and explanation
- Every differentiated branch must be physically smooth
- The derivative automatically validates the underlying data
- A computed derivative proves all variables use correct units
- The implemented objective may not match the intended model
Answer: The implemented objective may not match the intended model
Differentiation follows the implemented computation. It does not establish that the objective, units, preprocessing, or scientific assumptions represent the intended question.
29.A derivative check uses a complex-step perturbation through a routine that takes an absolute value and discards imaginary parts. What is the concern?
Show answer and explanation
- The perturbation automatically fixes all nondifferentiability
- The routine may invalidate complex-step assumptions
- Complex-step works for every arbitrary real-valued implementation
- Discarding the imaginary part improves that derivative estimate
Answer: The routine may invalidate complex-step assumptions
Complex-step relies on suitable analytic behavior and propagation of the imaginary perturbation. Nonanalytic or real-only operations can make its result invalid.
30.An ODE state contains one component near 10^-9 and another near 10^3. What helps define meaningful error control for both?
Show answer and explanation
- Rounding the small state to zero before integration
- Using the same display unit without converting the equations
- One large absolute tolerance chosen only for the large state
- Appropriate component scales and absolute tolerances
Answer: Appropriate component scales and absolute tolerances
Relative and absolute error controls must reflect each component's meaningful scale. A tolerance suitable for a large state can swamp a small but important one.
31.An explicit ODE solver takes extremely small steps to remain stable despite slowly varying output of interest. What should be considered?
Show answer and explanation
- Whether output plotting frequency alone controls internal stability
- Whether stiffness calls for a suitable implicit method
- Whether increasing the explicit step always preserves stability
- Whether every smaller step means the model is invalid
Answer: Whether stiffness calls for a suitable implicit method
Stiff dynamics can constrain explicit stability more than desired accuracy. Examine the equations and choose a method appropriate to those dynamics.
32.A solver's local error estimator is below its requested tolerance at accepted steps. What should not be concluded from that fact alone?
Show answer and explanation
- The requested tolerance influenced accepted steps
- Additional convergence checks may still be useful
- The final scientific quantity has a proven global error bound equal to that tolerance
- The solver used an error-control mechanism
Answer: The final scientific quantity has a proven global error bound equal to that tolerance
Local error control is not automatically a bound on accumulated solution error or a derived scientific quantity. Validate the needed output with appropriate numerical studies.
33.An ODE event detector looks for sign changes between accepted steps. A function crosses zero twice within one step and ends with its original sign. What can happen?
Show answer and explanation
- Every such event is reported as one crossing at the midpoint
- Both crossings can be missed
- The endpoint signs identify both event times exactly
- The solver must reject the step as singular
Answer: Both crossings can be missed
Endpoint sign checks cannot reveal all internal crossings. Event structure and suitable step control or another detection approach must be considered.
34.A model has a known abrupt forcing change at time t*. What integration strategy makes that discontinuity explicit?
Show answer and explanation
- Delete output samples near t* after integration
- Integrate to t*, update the forcing, then continue consistently
- Assume a smooth interpolant proves the discontinuity is absent
- Increase only the plot resolution across t*
Answer: Integrate to t*, update the forcing, then continue consistently
Expose known discontinuities to the integration procedure and preserve the correct state/update rules. A smooth output plot does not repair an internally missed forcing change.
35.Successive mesh spacings are h, h/2, and h/4. Their scalar results are 10.4, 10.1, and 10.025. Assuming one leading error term, what observed order is indicated?
Show answer and explanation
- 3
- 4
- 1
- 2
Answer: 2
The successive differences are 0.3 and 0.075, a factor of four. With spacing halved, 2^p = 4, so p = 2 under the stated asymptotic assumption.
36.A researcher applies a smooth asymptotic error formula to grids that resolve different sharp features. What should be checked?
Show answer and explanation
- Only whether all output files have equal length
- That the finest grid must be exact
- That a formal method order applies at every resolution automatically
- Whether the computations are in a comparable asymptotic regime
Answer: Whether the computations are in a comparable asymptotic regime
Observed convergence requires comparable problems and an applicable error regime. Unresolved features or changing model details can invalidate a simple order estimate.
37.A model should conserve total mass, but its reported mass drifts over time. What is a useful response?
Show answer and explanation
- Trace numerical fluxes, boundaries, sources, and diagnostic definitions
- Discard the first and last sample to force agreement
- Normalize the final plot without investigating the drift
- Assume every drift is harmless floating-point noise
Answer: Trace numerical fluxes, boundaries, sources, and diagnostic definitions
A conservation residual is a diagnostic tied to the model's actual balance law. Investigate the complete discrete balance and measurement definition before interpreting the result.
38.What is the purpose of choosing a smooth target field and deriving forcing that makes it solve the modeled equations?
Show answer and explanation
- Guarantee that the constructed field is physically observed
- Test whether the implementation reproduces a known constructed solution
- Replace every future convergence study with one plot
- Prove that the forcing matches a real experimental system
Answer: Test whether the implementation reproduces a known constructed solution
Manufactured solutions provide controlled verification cases, including boundary and source terms. They test implementation behavior rather than establish physical validity.
39.Two programs agree because both call the same faulty shared kernel. What does their agreement fail to provide?
Show answer and explanation
- A comparison result for the two tested implementations
- Evidence that their outputs agreed on the tested case
- An observed agreement to compare with another reference
- An independent check of that kernel
Answer: An independent check of that kernel
Agreement is less informative when implementations share the same failure source. Seek independent derivations, analytic limits, or genuinely different reference methods where feasible.
40.A model's quantity of interest changes when a far boundary is moved outward while local mesh resolution is fixed. What error source should be investigated?
Show answer and explanation
- A guaranteed loss of all spatial convergence
- Only the local floating-point summation order
- The output file's decimal formatting alone
- Finite-domain or boundary-model effects
Answer: Finite-domain or boundary-model effects
Domain truncation and boundary assumptions can influence the interior solution. Separate that sensitivity from local discretization and arithmetic effects.
41.Both mesh spacing and timestep are reduced together, and the answer improves. What can this study fail to separate?
Show answer and explanation
- Spatial and temporal error contributions
- The existence of any numerical result
- The nominal number of variables in the model
- Whether the output has a physical unit
Answer: Spatial and temporal error contributions
Changing both controls at once confounds their separate effects. A suitable study varies or controls them to identify the error relevant to the quantity of interest.
42.For a fixed explicit diffusion scheme, the stability limit has Δt ≤ C h² with unchanged C. If h is halved, how must the maximum stable timestep scale?
Show answer and explanation
- It becomes one half
- It doubles
- It becomes one quarter
- It becomes four times as large
Answer: It becomes one quarter
The bound is proportional to h². Replacing h by h/2 multiplies the allowed timestep by (1/2)² = 1/4.
43.For independent finite-variance Monte Carlo samples, how many samples are needed to halve the estimator's standard error, all else unchanged?
Show answer and explanation
- Four times as many
- Twice as many
- Half as many
- Sixteen times as many
Answer: Four times as many
Standard error scales as 1/√N under these assumptions. Halving it requires √N to double, so N must increase by a factor of four.
45.Ten measurements are taken from each of eight independently assigned specimens. Which sample structure must the analysis respect?
Show answer and explanation
- There are automatically eighty independent treatment assignments
- Measurements are clustered within eight experimental units
- Every specimen can be treated as a separate treatment condition
- Repeated measurements eliminate specimen-to-specimen variation
Answer: Measurements are clustered within eight experimental units
The unit of assignment and dependence structure determine the analysis. Technical repeats do not create additional independent experimental units.
46.Two simulation policies are compared under matched random scenarios. Why might analyzing paired outcome differences improve precision?
Show answer and explanation
- It proves the policies have identical expected outcomes
- It makes every simulated scenario independent of itself
- Shared scenario variation can cancel in the difference
- It removes all model bias from both policies
Answer: Shared scenario variation can cancel in the difference
Common random inputs can reduce variance of a difference when they induce a favorable positive association. Analyze the actual paired differences and verify the variance effect.
47.Every simulation worker is initialized with the same pseudorandom seed and consumes the same sequence. What is the resulting problem?
Show answer and explanation
- A fixed seed makes uncertainty estimation unnecessary
- The runs become more statistically independent
- The total number of distinct scenarios must multiply by worker count
- Nominal replicates can duplicate each other's randomness
Answer: Nominal replicates can duplicate each other's randomness
Identical streams can duplicate scenarios rather than add independent information. Use a justified stream-splitting or spawning strategy with recorded provenance.
48.A paper records a seed but omits generator algorithm and software versions. What has not been fully specified?
Show answer and explanation
- The sequence and computation needed for exact reruns
- The recorded number of requested samples
- The integer seed value itself
- The nominal random distribution requested by the model
Answer: The sequence and computation needed for exact reruns
A seed is interpreted by an algorithm and execution environment. Exact computational reproduction may also depend on versions, scheduling, and numerical libraries.
49.A stochastic simulation restarts from a checkpoint of its physical state but resets its random generator. What can change?
Show answer and explanation
- The checkpoint's recorded physical variables retroactively
- The number of dimensions in the original model
- The stated units of the physical state
- The future random trajectory relative to an uninterrupted run
Answer: The future random trajectory relative to an uninterrupted run
Reproducing an uninterrupted stochastic run generally requires appropriate generator state and stream identity alongside the simulation state and algorithm configuration.
50.A parameter sweep reports only completed runs, while failures occur more often in one parameter region. What analysis issue arises?
Show answer and explanation
- Successful runs automatically represent the failed region
- The optimizer's final status proves no selection effect
- The reported sample can be selectively incomplete
- Deleting failure logs makes the sample more representative
Answer: The reported sample can be selectively incomplete
Failure mechanisms can change which cases remain in the analysis. Preserve failures, characterize their distribution, and explain how they affect the reported claim.
51.A team tries twenty outcomes and reports only the one with the strongest result as though it had been chosen beforehand. What needs disclosure?
Show answer and explanation
- Only the final outcome's favorable plot limits
- The exploratory selection and tested outcome family
- Only the programming language used for the final figure
- A claim that unreported outcomes never existed
Answer: The exploratory selection and tested outcome family
Distinguish planned confirmatory analysis from exploration and account for the search process. Selecting an outcome after inspection changes the evidence's interpretation.
52.A study performs many hypothesis tests but interprets each nominal threshold as if only one test were attempted. What risk increases?
Show answer and explanation
- The numerical precision of each measurement
- False discoveries across the tested family
- The guarantee of identical effect sizes
- The certainty that every null hypothesis is false
Answer: False discoveries across the tested family
Multiple opportunities for rejection change family-level error behavior. Choose an appropriate multiplicity or discovery-control strategy for the stated inferential goal.
53.Under a specified null model, what does a p-value describe?
Show answer and explanation
- The probability that the null hypothesis itself is true
- The fraction of the observed effect caused by random error
- The chance the reported effect will replicate exactly
- A tail probability for results at least as extreme under that model
Answer: A tail probability for results at least as extreme under that model
A p-value is computed conditional on the null model and test definition. It is not a posterior probability of the hypothesis or a direct effect-size measure.
54.What does 95% frequentist coverage refer to for a valid confidence-interval procedure?
Show answer and explanation
- The proportion of the target value explained by the model
- The probability that every future observation lies inside it
- Its long-run inclusion rate for the fixed target under repeated sampling
- A guarantee that this realized interval contains the target
Answer: Its long-run inclusion rate for the fixed target under repeated sampling
Coverage is a property of the interval-generating procedure under its assumptions. It does not make every realized interval correct or define a prediction interval.
55.A very large study finds a tiny effect with a small p-value. What else is needed before calling the effect important?
Show answer and explanation
- Its magnitude, uncertainty, and practical context
- Only another decimal place in the p-value
- The assumption that sample size determines the scientific threshold
- A claim that statistical significance establishes usefulness
Answer: Its magnitude, uncertainty, and practical context
Statistical evidence and practical importance answer different questions. Assess effect size and uncertainty against relevant scientific or operational criteria.
56.A small underpowered study does not reject a null hypothesis. What claim is unsupported by that result alone?
Show answer and explanation
- That the uncertainty should be reported
- That the test did not reach its rejection threshold
- That the effect is exactly absent
- That more precise evidence could change the conclusion
Answer: That the effect is exactly absent
Failure to reject is not proof of no effect. Consider interval width, detectable effects, study design, and an appropriate equivalence question if absence within a margin is the target.
57.The same specimens are measured before and after an intervention. What basic analysis preserves the pairing for a mean-change estimate?
Show answer and explanation
- Analyze each specimen's change
- Treat all before and after values as unrelated assignments
- Use only the specimens with the largest observed changes
- Sort both lists independently before matching them
Answer: Analyze each specimen's change
Within-specimen differences retain the pairing. The design, missing data, dependence, and intervention assignment still determine what inference is justified.
58.A new algorithm is tested on a larger memory budget and a different dataset than its baseline. What is the main comparison problem?
Show answer and explanation
- Algorithm effects are confounded with changed conditions
- The new algorithm must therefore be slower
- Only the decimal formatting of the scores matters
- Dataset differences cancel whenever the metric has the same name
Answer: Algorithm effects are confounded with changed conditions
A fair attribution needs controlled conditions or an explicit analysis of differences. Changing several influential factors prevents isolating the algorithm's contribution.
59.A model is repeatedly tuned using the same data later reported as an untouched performance test. What has been lost?
Show answer and explanation
- An independent evaluation of the tuned procedure
- The ability to fit any model coefficients
- The possibility of calculating an arithmetic average
- The original number of rows in the dataset
Answer: An independent evaluation of the tuned procedure
Repeated selection adapts to evaluation data. Use an appropriate held-out or nested procedure that includes the model-selection process in its evaluation design.
60.A forecast feature uses a summary calculated with observations occurring after the forecast time. What is the defect?
Show answer and explanation
- It necessarily makes the computation nondeterministic
- It changes the forecast horizon's physical units
- It uses information unavailable at prediction time
- It proves the target has no autocorrelation
Answer: It uses information unavailable at prediction time
A forecast evaluation must reproduce information availability at each decision time. Future information can create misleadingly strong retrospective results.
61.Repeated observations from each subject are randomly split across training and testing, but the claim concerns new subjects. What split better matches that claim?
Show answer and explanation
- Sort observations by recorded measurement value
- Put half of every subject's observations into both sides
- Reuse the training subjects with a different random row order
- Keep subjects separate across evaluation partitions
Answer: Keep subjects separate across evaluation partitions
Evaluation partitions should reflect the unit to which generalization is claimed. Shared subject characteristics can otherwise leak across a row-level split.
62.A bootstrap is used on a dependent time series. Why consider resampling suitable blocks rather than individual observations?
Show answer and explanation
- To retain relevant local dependence in resamples
- To remove the need to choose a resampling scheme
- To make the observations exactly independent in the original data
- To guarantee that every possible dependence is captured
Answer: To retain relevant local dependence in resamples
Individual resampling can destroy dependence important to uncertainty. Block choice and assumptions must suit the process and estimator being studied.
63.An observed dataset contains no examples of a rare failure mode. What can ordinary resampling of those observations fail to reveal?
Show answer and explanation
- The sample size of the original dataset
- The values of the observations that were recorded
- Unobserved failure behavior absent from the dataset
- Whether resamples can contain repeated observations
Answer: Unobserved failure behavior absent from the dataset
Resampling observed data cannot invent missing mechanisms or guarantee coverage of unseen tails. State the limitation and seek appropriate additional evidence or modeling.
64.Measurements are missing more often when the unrecorded value is large. Why can dropping incomplete rows bias the analysis?
Show answer and explanation
- Every missing value is necessarily zero
- Completeness depends on the outcome being studied
- The missingness pattern affects storage only
- The retained rows become a randomized sample automatically
Answer: Completeness depends on the outcome being studied
Outcome-related missingness can change the observed distribution. The analysis needs defensible assumptions, sensitivity checks, and a documented handling strategy.
65.One observation weakens a desired conclusion, but no exclusion rule or measurement fault has been established. What is the defensible response?
Show answer and explanation
- Investigate it and report justified sensitivity analyses
- Delete it solely because the conclusion improves
- Replace it with the current sample mean without disclosure
- Change the exclusion cutoff until the preferred result appears
Answer: Investigate it and report justified sensitivity analyses
Use evidence and predefined or transparently justified rules. Sensitivity analysis can show influence without concealing an inconvenient observation.
66.An importance-sampling estimate is dominated by a few enormous weights. What should be investigated?
Show answer and explanation
- Only the ordering of the stored sample rows
- A claim that unequal weights guarantee greater precision
- Whether rounding the weights makes the output easier to compare
- Proposal coverage and estimator variance
Answer: Proposal coverage and estimator variance
Poor proposal overlap can produce unstable high-variance estimates. Examine weight behavior, effective information, and whether the proposal covers the target adequately.
67.A sampling chain stays in one mode, while different starts remain in different modes. What is a concern?
Show answer and explanation
- Every observed mode has equal probability by definition
- The sampler may not explore the target distribution adequately
- Agreement of within-mode means proves global mixing
- A larger file of the same local trajectory guarantees exploration
Answer: The sampler may not explore the target distribution adequately
Local stability is not global exploration. Multiple starts, suitable diagnostics, model structure, and improved sampling strategies may be needed.
68.A researcher discards the first 10% of a chain and declares convergence solely because that fraction is conventional. What is missing?
Show answer and explanation
- Only a longer text description of the same fixed fraction
- A requirement to discard exactly the first half in every model
- The statement that any burn-in guarantees independence
- Evidence that the retained draws adequately explore the target
Answer: Evidence that the retained draws adequately explore the target
A fixed discard proportion does not diagnose convergence or mixing. Use problem-appropriate diagnostics and examine whether the retained sample supports the intended inference.
69.A chain stores one million highly autocorrelated draws. What should distinguish it from one million independent draws?
Show answer and explanation
- An effective sample-size assessment for relevant quantities
- The raw count alone as a universal precision guarantee
- Only the precision used when storing each draw
- Only the requested chain length before failed runs were removed
Answer: An effective sample-size assessment for relevant quantities
Autocorrelation changes estimator uncertainty. Effective sample size depends on the quantity and dependence structure, not just the number of rows saved.
70.A posterior conclusion changes materially under several defensible prior choices. What should a report do?
Show answer and explanation
- Present only the prior yielding the narrowest favorable interval
- Explain that sensitivity and the information supporting each choice
- Average the prior names instead of examining the results
- Claim the data uniquely determine the conclusion anyway
Answer: Explain that sensitivity and the information supporting each choice
Prior sensitivity can reveal limited data information or influential assumptions. Document the alternatives and how they affect the scientific conclusion.
71.A fitted model has a long nearly flat valley where two parameters trade off while predictions remain similar. What does this suggest examining?
Show answer and explanation
- Practical identifiability and parameter uncertainty
- A guarantee that both parameters have zero uncertainty
- Whether one parameter's label is shorter
- Only whether the optimizer printed a success message
Answer: Practical identifiability and parameter uncertainty
A flat or weakly curved direction can leave individual parameters poorly constrained even when predicted outputs fit well. Examine profiles, uncertainty, and data design.
72.A nonlinear optimizer returns success from one starting point. Which claim is not established without further structure or evidence?
Show answer and explanation
- That its own stopping rule was satisfied
- That it found the global optimum
- That its objective value can be inspected
- That a candidate solution was returned
Answer: That it found the global optimum
Many nonlinear methods provide local or stopping-rule results. Global optimality needs suitable mathematical structure, certification, or additional justified search evidence.
73.A constrained minimum occurs at a parameter's lower bound. Why need the unconstrained gradient not be zero there?
Show answer and explanation
- Feasible descent directions are restricted by the bound
- The optimizer can ignore the bound after convergence
- Every bound converts the objective into a constant
- A nonzero gradient proves every constrained solution invalid
Answer: Feasible descent directions are restricted by the bound
Constrained optimality is evaluated over feasible directions and appropriate conditions. A boundary solution need not satisfy the unconstrained zero-gradient rule.
74.Measurement errors have different known standard deviations. What weighting is natural for ordinary Gaussian least squares under independent errors?
Show answer and explanation
- Replace every residual by its absolute row index
- Scale residuals by their corresponding standard deviations
- Give the noisiest measurements the largest precision weights
- Use only the largest measurement in each group
Answer: Scale residuals by their corresponding standard deviations
Dividing a residual by its standard deviation leads to inverse-variance weighting in the squared objective. Correlated errors require the corresponding covariance model.
75.A researcher introduces a robust residual loss. What remains necessary?
Show answer and explanation
- Assume every large residual is a recording mistake
- Claim robustness proves the physical model is correct
- Remove all raw measurements after fitting
- Justify the loss and examine influential observations
Answer: Justify the loss and examine influential observations
Robust losses change how residuals influence estimation. They do not establish why an observation differs or replace investigation of model fit and data quality.
76.A smooth unconstrained objective has a zero gradient at a candidate, but its Hessian has a negative eigenvalue. What does this show?
Show answer and explanation
- The objective must be constant nearby
- The point is not a local minimum under the stated smooth setting
- The zero gradient guarantees positive curvature
- The point is automatically the global minimum
Answer: The point is not a local minimum under the stated smooth setting
A negative-curvature direction permits lower nearby objective values under the usual second-order conditions. Zero gradient alone does not classify a stationary point as a minimum.
77.An optimization model predicts a large improvement, but the evaluated step improves the true objective very little. What should a trust-region method assess?
Show answer and explanation
- Only whether the parameter vector has the correct length
- A rule to enlarge every next step unconditionally
- Agreement between predicted and actual reduction
- Whether the objective name contains a physical unit
Answer: Agreement between predicted and actual reduction
The reduction ratio tests local-model reliability. A poor ratio can motivate rejecting the step or shrinking the trusted region according to the algorithm.
78.A solver returns its best current point because the iteration limit was reached. How should that result be described?
Show answer and explanation
- An exact solution whenever the final log line is present
- A numerical proof that no feasible solution exists
- A certified optimum because a point was returned
- A terminated run requiring quality assessment, not assumed convergence
Answer: A terminated run requiring quality assessment, not assumed convergence
A returned point and a convergence certificate are different. Inspect termination reason, residuals, feasibility, progress, and the scientific tolerance before interpreting the result.
79.A workload is 80% parallelizable, with the remaining 20% serial. Ignoring overhead, what speedup is predicted on four equal workers?
Show answer and explanation
- 2.5 times
- 4 times
- 5 times
- 3.2 times
Answer: 2.5 times
Amdahl's model gives 1/(0.20 + 0.80/4) = 1/0.40 = 2.5. Communication and other overhead can reduce actual speedup.
80.A new implementation is timed only on its first call, which includes compilation and cache setup. What should the report distinguish?
Show answer and explanation
- Startup cost from the intended steady-state workload
- Only the mean of unrelated historical timings
- A claim that first-call timing always equals sustained throughput
- The assumption that warmup is free for every deployment
Answer: Startup cost from the intended steady-state workload
State which costs the target workload includes. Startup and steady-state performance can both matter, but they answer different usage questions.
81.A GPU computation is asynchronous, and a timer stops immediately after work is enqueued. What may the measurement omit?
Show answer and explanation
- The host timer's unit conversion by definition
- A guarantee that all queued work finished
- The actual device execution time
- Only the input array's element count
Answer: The actual device execution time
Enqueue completion is not execution completion. Synchronize or use appropriate device timing so the measurement covers the intended work and transfers.
82.A faster numerical kernel changes result values. What should be established before claiming a successful optimization?
Show answer and explanation
- That all changed values can be hidden by plot scaling
- That a different instruction count proves equivalence
- Correctness and acceptable numerical error under the intended contract
- Only that the wall-clock measurement decreased
Answer: Correctness and acceptable numerical error under the intended contract
An optimization must preserve the required semantics or meet a justified error contract. Speed alone does not establish a scientifically usable implementation.
83.Two valid parallel runs differ in low-order bits but give stable scientific conclusions. What comparison may be more meaningful than bitwise equality alone?
Show answer and explanation
- Only whether both files contain the same number of rows
- The requirement that every differing bit proves a physical change
- A justified numerical tolerance tied to the quantity of interest
- A tolerance selected after hiding the largest differences
Answer: A justified numerical tolerance tied to the quantity of interest
Define acceptable numerical variation in relation to error budgets and conclusions. Bitwise reproducibility is useful when required, but it is a distinct target.
84.A workflow downloads an input file from a URL that later serves different data. What record improves rerun traceability?
Show answer and explanation
- A screenshot of the browser's download button
- Only the URL's current spelling
- A retained versioned input and verified content digest
- Only the number of times the URL was downloaded
Answer: A retained versioned input and verified content digest
A URL is not necessarily an immutable data identity. Retain or reference a stable authorized version and record a digest so changes can be detected.
85.A container records software dependencies. What should a reproducibility claim still consider?
Show answer and explanation
- That dependency records remove the need for data provenance
- Only the image tag, without its versioned contents or run settings
- That containers guarantee identical arithmetic on all hardware
- Hardware, numerical libraries, configuration, and execution behavior
Answer: Hardware, numerical libraries, configuration, and execution behavior
Containers capture useful environment state but do not make every hardware or execution-dependent behavior identical. Record the conditions relevant to the claimed reproducibility level.
86.A published figure is generated from intermediate tables. What provenance is needed to audit its origin?
Show answer and explanation
- Only the final table after undocumented manual edits
- Only the final image and its axis labels
- Links from raw inputs through transformations, code versions, and parameters
- Only the software environment without input and parameter identities
Answer: Links from raw inputs through transformations, code versions, and parameters
A provenance chain makes transformations and assumptions traceable. A final artifact alone does not show which data, code, or parameters produced it.
87.A cleaning script overwrites the only raw measurement file. What is the core research-workflow problem?
Show answer and explanation
- The script must now produce more decimal digits
- All future computations automatically use different units
- The cleaned data necessarily become numerically singular
- The original evidence and transformation history are lost
Answer: The original evidence and transformation history are lost
Preserve raw inputs and versioned transformations so cleaning choices can be audited or revised. Destructive replacement can make errors and exclusions impossible to reconstruct.
88.Increasing Monte Carlo draws narrows a sampling interval while the physical model omits a known mechanism. What uncertainty remains unaddressed?
Show answer and explanation
- The exact count of simulated draws
- The standard error already reported under that model
- Model discrepancy
- The random estimator's finite-sample variation
Answer: Model discrepancy
Sampling more accurately within a model does not correct the model's missing mechanism. Separate numerical, input, sampling, and structural contributions.
89.An output is strongly nonlinear over the uncertain input range. What should be checked before relying on first-order uncertainty propagation?
Show answer and explanation
- Whether every output can be replaced by its value at the mean
- A rule that all nonlinear outputs have zero uncertainty
- Only whether the input has at least two printed decimals
- Whether the local linear approximation is adequate
Answer: Whether the local linear approximation is adequate
First-order propagation is a local approximation. Curvature, boundaries, and asymmetric distributions can require a more appropriate analysis or simulation.
90.A parameter has a large derivative effect on output but is known very precisely. Why might it contribute little output uncertainty?
Show answer and explanation
- Output uncertainty is determined only by parameter names
- Contribution depends on both sensitivity and input uncertainty
- A precisely known input must have a zero derivative
- A large derivative guarantees the largest uncertainty contribution
Answer: Contribution depends on both sensitivity and input uncertainty
Sensitivity describes response to a change; uncertainty also depends on plausible input variation and dependence. A large derivative alone does not rank uncertainty contributions.
91.A surrogate model is accurate on its training domain but is queried far outside it. What is not established by its in-domain validation?
Show answer and explanation
- Its recorded in-domain test errors
- The number of observations used for fitting
- The ability to evaluate its implemented formula
- Reliability of the extrapolated predictions
Answer: Reliability of the extrapolated predictions
A surrogate can return a number outside its evidence domain without that number being reliable. Define the applicable domain and validate or bound new regimes explicitly.
92.A simulation's initial condition is estimated from noisy measurements. What should a sensitivity study consider?
Show answer and explanation
- A claim that solving the equations removes input uncertainty
- Only the discretization step with an exact fixed initial state
- Only the solver's printed success status
- The effect of plausible initial-state variation on reported outputs
Answer: The effect of plausible initial-state variation on reported outputs
Initial conditions are model inputs. Their uncertainty can influence trajectories and quantities of interest even when the numerical integration is accurate.
93.An unexpected pattern prompts a new analysis after inspecting the data. What is a transparent next step?
Show answer and explanation
- Delete the original analysis plan from the archive
- Describe it as a prespecified primary result
- Label the analysis exploratory and seek appropriate confirmation
- Keep testing until one nominal threshold is crossed without disclosure
Answer: Label the analysis exploratory and seek appropriate confirmation
Exploration can generate valuable hypotheses. Separate it from prior confirmatory commitments and make the search and follow-up evidence visible.
94.Two research teams report normalized errors using different denominators. What is required before comparing their scores?
Show answer and explanation
- Align the metric definitions and reference scales
- Rank only by the number of decimal places reported
- Average the published percentages without checking units
- Assume equal metric names imply equal definitions
Answer: Align the metric definitions and reference scales
Normalization changes what a score means. Compare the same quantity, scale, domain, and aggregation before attributing differences to method quality.
95.A benchmark's updated dataset contains easier cases, and runtime improves. What can be concluded about the algorithm change alone?
Show answer and explanation
- Its speed contribution is not isolated by that comparison
- It is proven more numerically accurate
- It is proven faster on the original case distribution
- The easier cases establish a new universal complexity bound
Answer: Its speed contribution is not isolated by that comparison
A changed workload confounds performance attribution. Use controlled comparisons or report the workload shift and its effect explicitly.
96.An archived workflow reproduces a paper's figures from the same data and code. What has this not established by itself?
Show answer and explanation
- That the reported code path ran in the recorded setup
- That an independent experiment confirms the scientific claim
- That the archived computation can produce those figures
- That the included data were used by that workflow
Answer: That an independent experiment confirms the scientific claim
Computational reproduction is valuable but does not by itself provide independent data, validate all measurements, or confirm the underlying physical explanation.
97.A code bug is found after publication and may affect the main conclusion. What should the research team prioritize?
Show answer and explanation
- Remove the failing input from every archived dataset
- Assume the conclusion remains valid because the plots look similar
- Assess its impact, preserve versions, and communicate a traceable correction
- Silently replace the results without an audit trail
Answer: Assess its impact, preserve versions, and communicate a traceable correction
Investigate the affected claims and document corrected analysis through the appropriate scientific process. Preserving the original and revised evidence supports accountability.
98.A long-running deterministic simulation supports checkpoint restart. What is a useful verification test?
Show answer and explanation
- Compare restarted and uninterrupted runs under defined numerical criteria
- Assume successful file parsing proves state completeness
- Compare only the final output filenames
- Check only that the restart file has a nonzero size
Answer: Compare restarted and uninterrupted runs under defined numerical criteria
A restart test checks whether required state and configuration were captured and restored. Define the comparison tolerance or bitwise target and test representative restart boundaries.
99.A candidate is asked to defend a computational research result. What is the strongest structure for the response?
Show answer and explanation
- Present only the most favorable final score
- Replace unsuccessful trials with a narrative of expected success
- Connect the claim to methods, evidence, uncertainty, and limits
- Treat solver convergence as proof of every scientific assumption
Answer: Connect the claim to methods, evidence, uncertainty, and limits
A defensible result makes the reasoning and evidence reviewable, including failed cases, sensitivity, provenance, and the boundaries of the conclusion.
100.A fixed-sample hypothesis test is rerun after each new observation, stopping at the first favorable nominal p-value. What needs reconsideration?
Show answer and explanation
- A rule that stopping early always preserves the fixed-sample error rate
- The procedure's error control under repeated looks
- Only the display precision of the first favorable p-value
- The assumption that each look creates an independent new study
Answer: The procedure's error control under repeated looks
Repeated data-dependent looks can change false-positive behavior. Use a justified sequential design or an appropriate analysis that accounts for the stopping procedure.
101.A parameter sweep varies one factor around one baseline while holding every other factor fixed. What can this fail to characterize?
Show answer and explanation
- The existence of a reproducible run configuration
- The output observed for the recorded baseline
- The exact settings that were actually evaluated
- Interactions away from that chosen baseline
Answer: Interactions away from that chosen baseline
A factor's effect can depend on other factors. A one-factor-at-a-time local sweep does not map joint effects across the design space; use a suitable experimental design.