instruction
stringlengths
9
38.7k
My understanding is that a discriminative classifier such as a CNN that takes an input $x$ and produces a discrete output label $y$ is typically trained to predict the best value of $y$, and would not give accurate probabilities for the various possible values of $y$. So it's an example of a deep neural net that cannot...
Suppose there is dataset of 100 patients' including the item "Blood pressure". 45 patients belongs to Group A, and the rest of 55 belongs to Group B. In consequence, there will be 30 vs 30 patients(60 patients for total) pair matching after using Propensity Score Matching. I'm trying to find out P-value for "Blood Pres...
I have been using JASP sw for a month or so, and I like it. But what's been bothering me is that my professor in uni doesn't know this sw and is doubting its credibility. I would appreciate suggestions for scholarly literature testing its credibility.
My question concerns the Bonferroni correction of p-values. In my analysis, I would like to multiply the obtained p-values by N, where N is the chosen number for the Bonferroni correction, such as 2, 3, 4, ..., N. Hence, I would not like to divide the p-thresholds by N, as it is often done. However, the multiplication ...
I have a SEM model with three factors. One factor is measured with 5 items. Two factors with 35 and 10 respectively. Since the two factors with the many items did not produce a good model under the CFA of the two-step procedure (first test CFA of the measurement models, then SEM), I reduced the items for both factors t...
I am currently studying the relationship between academic freedom (independant variable) and university rankings (dependant variable) using OLS. Each individual is a university, and my variables (except for rank) are at the country level. I clustered standard errors by country. Here are my results : With the base mode...
I try to understand the "score residual" from cox ph model in R. There is one reference site I have used for it. https://www.mayo.edu/research/documents/biostat-58pdf/doc-10027288 Can someone help me to get the score residual manually (I mean, using formula) in R? Many thanks in advance. [R code] library(survival) cph1...
I'm trying to write a good estimator $\hat{n}_n$ for a real time series $x_n$ from a set of noisy measurements $a_n = x_n + m_n$ (here $m_n$ is a high-level noise), and accurate measurements of its derivative $b_n = (x_n - x_{n-1}) \delta t + p_n$ (where $p_n$ is a low-level noise). Is there any standard (and simple)...
The code below simulates the uncertainty in the lognormal distribution parameters, using the MASS::mvrnorm() function and the lung dataset from the survival package. Although the parametric distribution providing the best fit is Weibull, for illustrative purposes I'm using the lognormal distribution. When running the c...
I am interested in the density of the Wishart distribution under the constraint that the determinant of the outcome is 1. It suffice do divide the density of the Wishart by the marginal density of the determinant, however, I don't see how to compute this marginal density. Does it have an explicite expression (maybe in ...
I'm simulating data where I have four factors and one response that I want to examine. I have two different DoE designs, one 2⁴ factorial design and one Latin Hypercube Design. The ultimate goal with the research is to see if I can see any difference between the two models, i.e. do they give different significant facto...
I have four treatment groups (A, B, C, D) and measure three dependent variables (X, Y, Z). My hypotheses are that each dependent variable is strongest in one of the treatment groups, compared to all others. I plan to test this using planned comparisons. So, for example, the contrast weights could be 3 -1 -1 -1 for X, -...
I built a GAM with two categorical variables and two smooth terms, following this structure: model <- ik ~ population_id_cat + s_status + s(n_locs, bs = "re") + s(animal_id, bs = "re") The model summary for the parametric coefficients is: Parametric coefficients: Estimate Std. Error t v...
I have standard data: where rows are observations, and columns are features. target colum_1 colum_2 colum_10 colum_100110 colum_499999999 [1,] 1 -0.35 -1.58 1.26 1.08 0.30 [2,] 1 -1.21 2.05 -0.95 1.59 -0.59 [3,] 1 -0.15 -1.63 0.63 ...
It is well known that for $X_t \sim ARMA(p,q)$ where $\phi(B)X_t = \theta(B)Z_t, Z_t\sim WN(0, \sigma^2)$, if $\phi(z)\neq0$ in the unit circle, $\{X_t\}$ is stationary. Now assume $\{Y_t, t=0, \pm1, ...\}$ is a stationary time series. $\phi(B)X_t = \theta(B)Y_t$. If $\phi(z)\neq0$ in the unit circle, is $\{X_t\}$ stil...
I am comparing 2 groups, performing a total of 180 comparisons. When doing these 180 pair-wise comparisons using the Wilcoxon rank-sum test more than 40 show a significant (p<0.05) difference between the groups (in all cases one group has a higher median value compared to the other group). The group sizes are relativel...
I have two crosstabs that I'd like to compare for each cell for significance. Both crosstabs have the same variables and the same amount of total observations, but the frequency distribution is different across cells. This is a before/after manipulation task, so the same participants did the task twice. I need to see w...
I have made three generalized linear models, one with zero-inflated Poisson, the second with negative binomial, and the third with binomial conditional distributions. I am now trying to interpret the results, and have tried to back transform the estimates by taking the exponent of the estimates for the models with Pois...
I would like to perform a Laplace approximation of a log-posterior. The evolution of a cancer cell at given time $t_j$, $j = 1,\cdots,n$ for an experiment $i$ follows the following Poisson distribution, $$ y_i(t_j) \sim \text{Pois}(\mu = \alpha_0 \exp(-\alpha_1 e^{-\alpha_2 t_j})), $$ with $\alpha_k > 0$ for $k = 0,1,...
in brms (which is heavily based on mgcv) there is a possibility to define non-linear formulas (meaning not linear in parameters). However, for different reasons I need to use mgcv. E.g. the model bf(y ~ b1 * exp(b2 * x), b1 ~ 1, b2 ~ 1, nl = TRUE) is not linear in its parameters. Although for some easy examples there m...
The area under the receiver-operator characteristic curve has a interpretation of how well the predictions of two categories are separated. This post gives the area under the precision-recall curve as the average precision across all thresholds. This is unsatisfying. Are there other interpretations?
I am doing a classification model on imbalanced dataset (fraud). The way to preprocess imbalanced dataset follows this link - basically I don't do down sample/over sample, but apply weight to 1 for all fraud observations(rare), and 10 for all good observations. After apply weight to the full data, I split the full data...
Let us say we want to predict a one dimensional, real valued $Y$ from $X$. In gradient boosting, the final model $f$ is built by adding the prediction of several trees, essentially $f_1 + \dots + f_M$. Each tree $f_m$ is built using the following recursion: $$f_m(x) = f_{m-1} + \nu \cdot t(x),$$ where $t$ is a new tree...
I'm trying to compare multiple learners on my dataset (called "data") in order to predict a target called "lesionResponse", with custom resampling. Since mlr3 package doesn't allow to group and stratify at the same time, I used a customized resampling in order to avoir the leakage of datas between sets. There is also a...
Context: -dataset with np ( 200x80) -no categorical variable. My goal is to estimate the performance of machine learning methods which include feature selection on my samples in order to use the best one for further predictions. I perform my analysis in R with package caret, with supervised ML methods (LASSO, Stepwis...
To build a confidence interval, I have my pivotal quantity say T and the confidence interval is build on $\mathbb{P}(q_{\alpha/2}\leq T\leq q_{1-\alpha/2})=1-\alpha$, where $q_{\alpha/2}$ and $q_{1-\alpha/2}$ are my quantiles of $\alpha/2$ and $1-\alpha/2$ of my pivotal quantity $T$. Suppose $X \sim \mathcal{N}(\mu, \s...
I have a general question (data can be provided if needed). If I ran a nested anova and there is no significant effect of the nested factor on the model, is it reasonable to remove that variable and just run a one way anova?
I have a device that can estimate 2 continuous, independent quantities A and B of its users. There is an accepted criterion for "accuracy" for each quantity A and B. Let's say I want to prove that my device has a sufficiently good accuracy ratio for A and B. I know I have sufficiently good existing data for that. Hence...
I am currently working on a univariate time series that I try to modelize (following the Box-Jenkins methodology, I try to identify the model before I estimate it, using correlograms, in order to later validate it by running PP, ADF tests and so on, and finally, to make previsions). Yet I have trouble to modelize it in...
Consider a regression analysis with a continuous outcome, two dichotomous predictors, and their interaction. We can use R's built-in CO2 dataset, in which plants are Quebec-type or Mississippi-type and the treatment is chilled vs not chilled. summary(lm(uptake ~ Treatment * Type, data=CO2)) # Estimate Std. Error t val...
I know that the process is AR(1) and some of the data is still reflected in this period. But can we just take the power of $5$ of $0.879$?
How can I compare the variability in a dependent variable for individuals across groups? I don't really have the statistics vocabulary to ask this question, so I'll paint a picture instead. Let's say I have two groups individuals: group A and group B. Group A took a medication (or has some gene) that unpredictably alte...
I'm trying to predict the amount of personal votes a political candidate gets based on how attractive they look. I have data from a general election and a local election. The dependent variable is highly right skewed, so I have log-transformed it. In order to make the personal vote data comparable across elections, I h...
This might seem like a duplicate of the following link, but I think that one is asking how to create a completely new dataset with specific distributions, rather than how to model an existing dataset distribution. How do you create a multivariate distribution with both continuous and discrete data? Problem I have a dat...
I want to calculate the sample size for a survival study of patients with acute myeloid leukemia, with two cohorts, one receiving chemotherapy and the other not. I want an event-free survival (EFS) at 1 year of 40% with a margin of 5%. The difference between the two cohorts has to be 5-10%, with a power of 0.8 and alph...
Suppose I have a dataset with a continuous outcome, a dichotomous variable representing treatment, and another dichotomous variable representing membership in some group. As an example we can use R's built-in CO2 dataset, taking uptake as the outcome, predicted by Treatment (chilled vs not chilled) and plant Type (Queb...
I am studying chapter 5 "The many variables & the spurious waffles" of the book Rethinking and trying to answer the following question: How is biased sample like conditioning on a collider? I do understand that when conditioning on a collider will open the path between two or more variables that causally influence a ...
I am new to the concept of Assumed Density Filtering (ADF) but I think that it is very similar to Variational Inference (VI). In VI, we estimate a intractable posterior distribution (p) by finding a approximate distribution (q) that is closest to the distribution of interest i.e. minimizing the KL divergence KL(q || p)...
The prediction intervals are much wider on my "VAR in differences" model than in my "VAR in levels" model. Any ideas of why this might be the case? I know there is a strong cointegration relationship between two variables. Can that explain the effect?
Suppose that we have a probability density function $\pi(x_1, \ldots, x_n)$ which is the density of a vector-valued random variable $X$ in $\mathbb{R}^n$. Here the density is proper, i.e., $\int_{\mathbb{R}^n} \pi(x_1, \ldots, x_n) dx_1 \ldots dx_n = 1 < \infty$. Without any additional restrictions on the joint densit...
I am using both IQR and Z score > +/- 3SD for outlier detection. It seems like Z score > +/- 3SD is more strict and yields fewer outliers than IQR, which is better for my purposes (Regression, Airbnb Price Prediction) However, there are still lots of outliers being detected with the Z score method. Is there a more soph...
Suppose I have a 1D random walk, where the step size is not a constant but a random variable that is a function of a set of independent continuous random variables $x^i$ with given probability distributions $\phi^i(x^i)$. Each step the computation of the step size is done independently of all previous steps. Is it corr...
I know that covariance stationary processes can always be represented as an $MA(\infty)$ process, i.e. $$ Y_t = \alpha + \sum_{s=0}^{\infty} \beta_{s} \varepsilon_{t-s}. $$ with uncorrelated innovations $\varepsilon_t^2 \sim (0,\sigma^2)$ and conditions on $\{\beta_s\}_{s=0}^{\infty}$. Is there an analogous theorem s...
How can you draw a random sample from a random variable whose density is given by $\exp(x - \exp(x))$? I am trying to work through the blog at https://staffblogs.le.ac.uk/bayeswithstata/2015/03/27/poisson-regression-with-two-random-effects-mcmc-by-data-augmentation/ The section Simulating the unobserved data describes ...
I have trouble understanding how I should interpret my results from ARDL regression. Does anyone know how the following table should be interpreted? d indicating first difference, ln indicating log (hence, realinterest is not transformed) Thank you
we have that $P(X \leq x, Y \leq y) = \int \int_{s \leq x, t \leq y} f_{X,Y}(s,t) dsdt$ But how would for example $P(X \leq x, Y \geq y)$ Be defined? Would it just be: $P(X \leq x, Y \geq y) = \int \int_{s \leq x, t \geq y} f_{X,Y}(s,t) dsdt$ ? I am not 100% sure if I remember correctly, but I remember seeing a formula...
I am reading the article. I am getting stuck with the first proof proposition 4 on page 32. To be more specific, they understood the reason why they obtained $F(x) \le \frac{2K}{1-\frac{2R\epsilon}{\alpha}}+\frac{2CR}{\alpha -2R\epsilon}\int_{x}^{\epsilon}F(y) dy$. Then, they choose $\epsilon$ such that $0 <\epsilon <...
Let $X$ and $Y$ be two random variables with joint probability density function $f(x, y) = 1$ if $− y < x < y, 0 <y< 1$ and $0$ elsewhere. Find the regression equation of $Y$ on $X$ and that of $X$ on $Y$. So we're asked to find $E(Y|X)$ and $E(X|Y)$. I found the marginal density of $X$ to be $f_X(x)=1-|x|,-y<x<y$ a...
I am trying to compare the initial roof life of two different data sets of homes. I want to know if the data can be said to show a statistical difference in roof life. I have two populations. One has 143 roofs and the other has 477. The number and age at which roofs were replaced by year of age is shown below. N...
I am currently using linear mixed models for the first time in a small repeated measures experiment, and I feel like I am missing out on some basics in diagnostic plots. I want to model a labeling skill using dprime as a DV. The data I collected is slightly right skewed - from what I see in relevant papers, this is mai...
I have a unet segmentation model, which outputs 5 classes, I would like to find the optimal threshold value for each class using the precision-recall curve: def optimal_threshold_precision_recall_curve(Y_orig,y_pred): for c in range(classes): precision, recall, thresholds = precision_recall_curve...
There's two regression models for same data. The two are known very precise before but now they are generating conflicting predictions. In this case how can i handle this? Should i perform stepwise/forward/backward model selction? or do bayesian/frequentist model averaging?
Let's say that I have a data set comprised of age data for a large number of individuals, as well as a unique identifier for each individual. For terminology sake let's call this my base population. The ages are broken out into categories. Let's say that the distribution of ages in my data set are: Age 0-29: 10% Age 3...
I'm currently writing a thesis where I am trying to disect the ECB monetary press releases and their impact on the European stock market. I am using an event study methodology. Computing Daily Excess returns on indices and testing on those on event days are going fine. Now I have reached the point in my analysis where ...
I'm curious on why the odds ratio would be useful? For example, suppose I designed an experiment and fit a logistic regression model for success rate data. $p(success|treatment) = sigmoid(treatment*B_1 + B_0)$ where treatment is binary. So if I want to know the lift attributable to treatment, I can query it as $sigmoid...
The Python code used, printed are the eigenvector coefficients and the relative eigenvalues, the data is the same for both SPSS and Python: X = dat[cols] pca = PCA(n_components=2,svd_solver = 'full').fit(X) print(pca.components_.T) print(pca.explained_variance_ratio_) Python Output: [[-0.61573707 -0.12879642] [-0.404...
I have a random variable X that has a PDF defined by the following piecewise function: $$f(x)= \begin{cases} x + 1 & \text{if } x \in \left[-1, 0\right]\\ -x + 1 & \text{if } x \in \left[0, 1\right]\\ 0 & \text{otherwise} \end{cases} $$ Basically, this PDF creates a triangle with a base ...
I am currently conducting an experiment and I am struggling to find a statistical test to test the relationship between my independent and dependent variables. My research is to find the relationship between [IV] increasing concentrations of metal ions and the [DV] chlorophyll content in the leaves of a plant. My super...
Assuming we have two samples from two populations each containing 10 independent observations + standard deviation. How should I propagate the error of the measurements themselves into the sampling error? Example: Blood samples were taken from 20 male individuals, 10 from individuals randomly sampled from a population ...
When testing the carry-over effect (period*treatment) for cross-validation by GEE, do I actually need to bring in the main factors period, and treatment to the GEE model? (1) Y = intercept + (periodtreatment)X + residual (2) Y = intercept + (Period)X1 + (treatment)X2 + (periodtreatment)X3 + residual Which model is the ...
In their 2005 paper (also see the correction here) Bang and Robins describe a doubly robust estimator of the average treatment effect. In short, the procedure is: Estimate inverse probability of treatment weights (IPTW). These are $1 / Pr[A=1|L]$ for those with $A = 1$ and $-1 / (1 - Pr[A=1|L])$ for those with $A=0$, ...
I have time series data. The table contains date, no of orders, no of products sold, no of returns, no of walk in customers, etc. I want to create a model which takes 12 months of data as input and flags any anomaly in the next timestamps.One simple way which I can think of is to train an ARIMA model and use its confid...
I am modeling the rates of chemical reactions with a ML-model (specifically a neural network with a lowish number of parameters). However, the rates (or technically the formation rates), the predictions, span multiple orders of magnitude in absolute values with differing signs and including zero. Each prediction consis...
This source says the difference between quota sampling and stratified sampling is that the units in each group are drawn in a non-random manner. What are the statistical implications of the fact that units are drawn non-random?
I have a three level model, level 1 is time points of measurements, level 2 is measurement day, and level 3 is participant, when I run correlation to understand within-person (between day), the correlation is positively significant, however, if I run a multilevel analysis following growth curve model, the results is ne...
On island biology I am currently doing a research on the difference in seed fall the between island. For this research I collected plants on the islands and dropping 5 seeds for eacht plant. This means that seeds are nested in plant and plant is nested in island. My data looks as follows: Drop time Seed ID PlantID ...
I have a problem regarding regression with sistematically missing data. I cannot describe the exact setting, so I will make up a situation that captures everything that is essential. Let's imagine the following experiment setting: I am doing research on the probability of individuals participating in the labour market ...
I have been working on coding a simple Neural Network, and I have come across a question that I would like to discuss with you. I am trying to approximate two functions with the Neural Network: $f_1(x) = x^2$ and $f_2(x) = (1-x)^2$. To calculate the local losses, I am using the following equations: $L_1 = \|NN(x) - x^2...
I'm currently concerned with the topic of Gaussian Processes. To compute the covariance matrix of the conditional distribution, we have to invert $(K_{XX})^{-1}$, where $K_{XX}$ is a matrix of a kernel function $k(x_i, x_j)$ evaluated on all pairwise training samples. For a matrix to always have an inverse, it has to b...
This was my professor's interpretation but he didn’t provide an example: there could be training points at the same distance from x such that more than k points are closest to x. In this case, we proceed by ranking the training points based on their distance from x and then taking the k′ closest points where k′ is the ...
We are performing an independent external validation of a 2 published diagnostic risk prediction tools (logistic regression models) which estimate the risk for having a specific disease (model A and model B). We have done the following. Assessed discrimination by calculating c-index Evaluated model calibration using c...
I am working out a percentage survival between 2 conditions (e.g. in the presence/absence of antibiotic). For both mean values I have a standard deviation. How do represent the error in the % survival value that accounts for the SDs?
I have this burning question that variables are not significantly correlated to one another, where the other study I refer to keeps claiming that those variables (bullying victimization and perpetration) are highly correlated. At first, I thought the researchers transformed the data by taking logarithm since they were ...
Suppose $r \geq 1$ distinct books are distributed at random among $n \geq 3$ children. (a) For each $j \in {0, 1, 2, . . . , r}$, compute the probability that the first child gets exactly $j$ books. (b) Let $X$ be the number of children who do not get any book, and $Y$ be the number of children who get exactly one book...
I want to use a multiple logistic regression to model the relationship between two experimental groups (test and control) and accuracy of a procedure, controlling for the experience (in years) of the participants. outcome ~ group + experience The design I am using is paired in the sense that every participant is teste...
Could somebody direct to me to some literature dealing with this issue. So we have $X = U\Sigma V^{T}$ and we have $M \odot X = U^{'}\Sigma^{'}V^{'^{T}}$ with \begin{equation} M_{i,j} = \begin{cases} 1 & \text{or} \\ 0 \end{cases} \end{equation} X and M can be symmetric and X could be a Graph (so: ho...
Quite straight-forward, looking for a function that can mass-search combination of predictors for GAMs. The function leaps() does so for normal linear regression, it returns the best model at every number of predictors (at 3 predictors, at 4 predictors, etc). The function stepAIC allows us to specify a floor (predictor...
I am using a model for a multi-classification / ranking task, however for each choice problem it associates the different options with a number that is in a range with negative numbers with the caveat that the smallest number would actually correspond to the preferred choice. However, typically, softmax is applied to p...
CONSEQUENCES OF HETEROSCEDASTICITY $\textbf{1}$. The presence of heteroscedasticity does not make the OLS estimates of coefficients biased, but it causes the variances of OLS estimates to increase. $\textbf{2}$. The presence of heteroscedasticity causes the OLS to ${\color{Red} {\text{underestimate}}}$ the variances ...
I'm reading sequential estimation section 2.3.5 PRML where Bishop introduces Robbins-Monro algorithm to calculate the root of $f(\theta) = E z | \theta = \int zp(z|\theta) dz, (z, \theta) \sim p(z, \theta)$. The Robbins-Monro procedure then defines a sequence of successive estimates of the root $\theta^\star$ given by...
I have dataset that corresponds to year (from 1930-2020) and volume of sediment. I have to predict the volume for next 50 years. While trying ARIMA in R I tried different models like (1,0,0), (1,1,0) (2,2,0) etc. But the forecast summary show same volume through out except for (1,0,1). So I am not sure if ARIMA (1,0,1)...
I want to bootstrap my model with two random factors, subject and item, which are crossed. I have specified my model as follows: lmer(outcome ~ predictor_level1 + predictor_level2 + (1 | subject) + (1 | item), data = df) I know that bootMer or lmeresampler are two R packages that can be used to do bootstrapping easily...
Suppose we have a sample $S$ of IID data and two different real-valued functions of $S$, say $\theta(S)$ and $f(S)$, and the latter is intended to estimate the value of the former. For example, the former may be the out-of-sample prediction performance of a machine learning model trained with $S$ and the latter a perfo...
I have conducted a repated measures ANOVA with a 3 (scenario) x 2 (person) design. I get sig interaction and main effect of person. However, the main effect of scenario is completrely blank in SPSS and JASP suggest F in very small 1.657 x10to-29. However,when I run a repeated measure with just the data for scenario I g...
Let's say we have 10 calibrated reference samples of chemical products with a known concentration $x_i$ of a certain chemical component A. $x_i$ is different for each sample. We are building a chemical test workflow to detect the concentration of A in any chemical product, and we get a measurement $y_i$ for each of t...
I want to create a simple representation of "rate of change" for a number of different metrics, which aren't really comparable between each-other. To illustrate my problem, let's say I have the following metrics: temperature in Celsius, temperature in Fahrenheit, and air pressure in mbar. Each metric supplies a continu...
As the question says, can a machine learning algorithm learn to differentiate a function?(Eg. If we give such a network a function $f(x)$, it should output its derivative $f'(x)$.) Clearly, a simple feed forward neural network should not be able to do so, but I have a strong feeling that recurrent neural networks can. ...
I've been examining fitting the Weibull and lognormal distributions with the survreg() function of the survival package. Fitting the Weibull distribution took some transformation for standard parameterization (per R dweibull()) as shown here: How to generate multiple forecast simulation paths for survival analysis? I'm...
Imagine there are two parties that compete with each other for votes. If Party A wins votes in a certain town, it's most often from winning over voters from Party B. In my scenario, Party A is a large mainstream conservative party and Party B is a smaller "niche" right-wing party. In my project overall, I am trying to ...
If we have two events, $A$ and $B$, it is sure that $$P(A\mid B) + P(A^C\mid B) = 1$$ However, it seems me that $P(A\mid B) + P(A \mid B^C) = 1$ is false in general I don't remember why it is so. How can this fact be explained in the simplest way?
Intuitively speaking, what's the impact of changing the $d_k$ (and $d_{kv}$) for transformers? My understanding is that each attention head is effectively a lower-dimensional projection of a higher-dimensional representation of the sequence, and each head effectively looks at different subspaces. Hence, more heads lead...
Suppose a student takes 3 tests on a given day and that the probability that she passes any particular test is .6, the probability that she passes any particular pair of tests is .4, and the probability that she passes all 3 tests is .3. What is the probability that she passes at least one test ? My idea to this questi...
I am using NLME packege in R to perform non linear regression. The aim of the model is to estimate parameters related with gaseous weight loss from different silages. I have defined my function as: profileLag <- function(Day,B,C,L) {B*(1-exp(-C*(Day-L)))} B is the asymptote = total weight loss, C represents fractional...
I am being asked what the units are for variable importance using the varimp() function for a caret package random forest model. My best answer based on previous posts is % but is that accurate? Would %MSE be a better interpretation, something else entirely or is it unitless and just showing relative magnitude? The car...
Most of the pretrained architecture accept the input image size 224x224, but do we have to always resize our images to 224x224? I try to do both resize 224x224 and 512x512, the first resolution give lousy image quality, while the second image resolution had a better image quality (my original image size is 4288x2488). ...
I trained a 1 unit 1 layer (which I assume is limited to being a linear model) on temperature data, which follows a sinusoidal pattern over time. I expected this limited model to just produce a line around the mean, but if I predict values over time I get this stepped pattern The model creation: body = tf.keras.Sequ...
My dataset is high dimensional (sample size is 200 with 300 features) and imbalanced. The imbalance ratio is 80:20 in the training set and 88:12 in the held-out test set (collected at a different time point). I am working on a binary classification problem. The performance on the held-out test set is very low (low reca...
I have some variables regarding companies' workers, and I'd like to come up with a way of rankings these companies according to this data. Say I have the following variables: number of technicians, number of engineers, number of accountants. One problem that arises when doing PCA is the following: say the loadings for ...
I am reading a paper and it has the following simple model: Y = a + b1 + b2 + b1*b2 + e. The author seems to be interested in b1, not the interaction term. How do we interpret b1 in this case? I'm a little confused because most people would be interested in the interaction effect. By including the interaction term as a...
I'm trying to implement a custom objective function in XGBoost. I read the docs on this topic. I am not sure if I need to define a "reverse link function" (aka inverse link function) to properly implement my custom objective, and the documentation is pretty difficult to decypher. In my objective, the raw output of the ...