Useful tips for everyday
How to fit a weighted least squares model? Fit a weighted least squares (WLS) model using weights = 1 / S D 2. Create a…
What is the difference between simulation and design? Simulation Models v. Simulation models offer more flexibility in the product development process than physical prototypes. Creating…
How do you use R and Python together? Use a Python package rpy2 to use R within Python . Use Jupyter with the IR Kernel…
How to determine the confidence of a neural network? Run the evaluation with dropout enabled (it’s usually disabled for evaluation but turned on when training),…
How do you compare Sharpe ratios? To calculate the Sharpe ratio, you first calculate the expected return on an investment portfolio or individual stock and…
How does a discrete time survival analysis work? As compared to other methods of survival analysis, discrete time survival analysis analyzes time in discrete chunks…
Is naive Bayes a binary classifier? Naive Bayes is a classification algorithm for binary (two-class) and multi-class classification problems. The technique is easiest to understand…
Does pooling reduce overfitting? 2 Answers. Overfitting can happen when your dataset is not large enough to accomodate your number of features. Max pooling uses…
Why is the sensitivity and specificity of a test important in relation to diagnosis? Sensitivity and specificity are inversely related: as sensitivity increases, specificity tends…
How to use Caret and glmnet in R? I want to select variables with good discriminant and predictive performance. So I decided to use caret…