instruction
stringlengths
9
38.7k
My dataset is imbalanced. The labels are binary. I'm training 2 logistic regression models. For the first one, I didnt balance the model with class_weight and used f1_macro. Was it correct for me to use f1_macro? for the 2nd Logistic model I set class_weight='balanced'. Should I use f1_macro or f1_wighted here?
Why does PCA on high-dimensional text data improve the performance of random forest but not a decision tree classifier? I am dealing with high dimensional text data. I found that performing PCA to an optimised number of dimensions (obtained using grid search) improved the performance of a random forest classifier. Appl...
Can I apply Akaike’s information criterion (AIC) and Quasi-likelihood under the independence model information criterion (QIC) in GEE?
I am running through a past test paper; The question (simplied) goes as follows - the university has had a number of 10-pin bowling ball games over the years. Participants Jeremy and Jonathon want to find out who is the best player. The scores for the last 6 games were taken: $\text{Jeremy}= \{116, 111, 106, 145, 120, ...
I want to estimate a SVAR model but the problem is I have multiple samples and I want to pool them together (e.g. I have multiple patients, each patient with two times series which are the endogenous variables in my model). So what I have done now is to first estimate a VAR model for these patients assuming that they s...
I am working on a clustering problem and I have some skewed variables. So, I log transform them and use them in clustering. However, instead of multivariate clustering, I do multiple univariate clustering (1D clustering of multiple variables seperately) using jenks approach. My question is, a) The pattern/cluster/clust...
I have a data set in R for training a neural network with 17431 samples, 10 variables and the data consist of two groups, "0" and "1". See below for a snippet of the data set. I want to scale the data so that each variable (column) has 0 mean and 1 sd, but I'm not sure if I should use observations from both groups whe...
When z is a weak instrument: Do you have an insignificant OLS estimate for pie1 ? Further more: When x is a binary variable is it always the case that the sample IV estimator can be written as y1-y2 (the ols estimator?) I’m assuming this is only the case when z is also a binary variable?
How would you evaluate the predictive power of a Signal time series (supposedly output by an Artificial Intelligence system) in predicting a stock price time series given a sample data set as follows: Date Open High Low Close Adj Close Signal 202106-01 627.80 633.80 620.55 620.55 623.90 85.11 2021-06-02 620.1...
Consider this logistic regression on the Titanic dataset, with two predictors (one factor, Pclass and one continuous, Age): library(modelr) library(titanic) library(tidyverse) titanic <- titanic::titanic_train m <- glm(Survived ~ factor(Pclass) + Age, data = titanic, family = "binomial") summary(m) # Call: # glm(fo...
Recently, I built some models (LSTM, XGBOOST, etc) for time series forecasting. I've tested those models in synthetic and real data. In some obscure forum, I've read that it would be better to transform my data into a logarithmic scale. I've done this transformation and my models performed much better. However, I'm not...
In my experiment I have a randomly allocated control and experimental group, as well as pretest and posttest. To control for baseline differences, I saw that conducting an ANCOVA is recommended. However, two assumptions of the ANCOVA are that 1) observations are independent from each other and 2) covariate variables an...
Suppose my data has $N$ observations, and each observation may be classified into one of three factor levels $\{A, B, C\}$. Using a vector of attributes for each observation, $\{x_1, x_2, \ldots, x_n\}_i$, I run hierarchical clustering and decide to use $K = 2$ clusters. In counting the factor levels in each cluster,...
Context and current approach: I read through quite a few posts on this website and on the internet but I'm still not 100% sure on what exactly the assumptions are and how to check them in practice. Below a (hopefully exhaustive) list of the assumptions I have in mind: The model is correctly specified (i.e. linear rela...
With MAD, 50% of all values fall within one absolute deviation. How many within two, and three?
For convenience and context, I'm looking at the formula for standard error of the slope coefficient from here: https://www.statology.org/standard-error-of-regression-slope/ If X is not normally distributed but the residuals are, is the estimated slope coefficient's distribution characterized by the T-distribution?
First time on Cross Validated, so here goes. I am running a logistic regression where I am trying to predict the occurrence or non-occurrence of an event. I have a number of independent variables, two of them are not independent from each other - the presence and absence of a valve (categorical variable) and the size ...
Assume I have two datasets, each one containing 5000 samples, and each sample has three dimensions. I am looking for a way to "reorder" the samples in one (or probably both) dataset such that the sum of least square error between these two data sets be minimum. Please see the attached photo for clarification.
Wikipedia gives the following formula for normal distributions: What changes, if any, do I need to make to handle multivariate lognormal distributions instead?
The convoys documentation describes how survival analysis can be used to analyze the time to resolution for complaints filed with the NYC Department of Buildings. One of the charts compares the Kaplan-Meier estimator to a Weibull model. Is there a reason why the K-M curve 'goes vertical' for the 2005-2009 and 2015-201...
I have the following problem, I have a dataset with several countries, and a columns with prices for each year. Something with the form of: country_name 2018 2019 2020 USA 0.04 0.5 0.6 ... And another dataset with the same structure but different data. I want to check if those two are correlated applying som...
Apologies for the very confusing title. For example, in my dataset, I have the list of people who ate an apple from january to march 2022 and also, from the same list, i know who ate a banana from january to june 2022 To create an indicator that is "proportion of people who ate a banana AND an apple," must I only selec...
I understand that multivariate GLMs/multiple regression are valuable for predicting responses for observations with multiple covariates and for inferring interactive effects of different combinations of covariates. However, if the primary goal of modeling for a particular study is inferring the relative effects of diff...
I am modeling a dependent variable which is heavily right skewed by a large number of independant variables. This variable is integer. But let's assume this is our model. $ Y = a_0 X_0 + a_1 X_1 + b_0$ . It seems I have a few options: - Max-limiting the dependent variable (capping). We can build a model where, we model...
Do Vector Autoregression models have the same p, and q order terms as a ARMA model? Do you have n (Partial) autocorrelation function plots (P)ACF, one for each of the n time-series, or do you still have one ACF and PACF plot?
I am using a dataset that has three waves divided by months (e.g., Wave 1 April to June 2021, Wave 2 July to September 2021, Wave 3 October to December 2021). Some of the participants have participated in just one wave while others are in all three. I defined the analyses I am doing as repeated cross-sectional analyses...
Cox models assume proportionality. These assumptions can often be formally tested (an example in R is cox.zph from the survival package). Is there any statistical method for seeking out violations of the proportional hazards assumptions for a Cox models that are fitted with an ElasticNet-style procedure?
The PR curve plots the precision as a function of the recall, and the AUC can be interpreted as the average precision. The ROC plots the recall as a function of the specificity. Can we interpret the AUC as the average recall?
I’m trying to classify some drugs like very active, active, non active (label: 0, 1, 2) against the cancer. To do that I built a Graph Convolutional Network using PyTorch Geometric, this is the code: class Net(torch.nn.Module): def __init__(self): super(Net, self).__init__() self.conv1 = GCNConv(n_features, ...
If we are given X1, X2, X3, X4 , all exponential random variables with the same mean λ and said that another random variable T = X1 + X2 + X3 - X4. Can we then say T basically has a Gamma Distribution with parameters (2,λ)? I know we can sum up exponentials and obtain a gamma; however, I wonder if we can apply the...
I want to do KFold Cross Validation on a specific model and I am wondering what data to use. In my project I have got a Train, Test and Validation set (this was already provided). Now I want to to Cross Validation. My approach would be to concat the Train and Validation and split it into K Folds. Is this the right appr...
If I have a model of level-percentage such as: Harvest(Y) = β0 + β1 GrowthPrice%(X1) + β2 GrowthCostIndex%(X2) Regression Result: Y = 43946.11 + 7498.16(X1) - 30585.34(X2) The dependent variable (Y) is the harvest in ton (level variable), then is it right to interpret the model like level-log model? "One unit increase ...
FA Premier League 2019/20. The season was affected by the COVID-19 Pandemic while each team had a so-called quarter of their schedule left. ("quarter" ? Since each team has 4/9 or 5/9 number of away games and 4/19<1/4<5/19 mathematically, just don't mind about it.) Here a proposal to shut down the Premier League as fol...
I am trying to analyse the effect of season (autumn or summer) on frog sperm cell concentration (continuous, expressed as cells/ml). Because I don't know if there is an effect of male variation I want to run a model with a random effect. My data is not normally distributed, and the residuals are not random. I think ...
Suppose I have a classification task and I assume a Gaussian discriminative model: $$ P(y|x,\theta)= N(y|\mu_x,\sigma_x) $$ where $x\in \{0,1\}$ are the features (1 for Company A, 0 for Company B) and $y\in R$ are the delivery time. The book "Probabilistic Machine Learning: An Introduction" (Murphy, 2022) said that th...
I have read that the parameters of Dirichlet distribution must be strictly positive. The Dirichlet distribution of order $K \geq 2$ with parameters $\alpha_{1}, \ldots, \alpha_{K} \color{blue}{> 0}$ has a probability density function with respect to Lebesgue measure on the Euclidean space $\mathbf{R}^{K-1}$ given by $...
In linear regression, we assume errors are normally distributed with mean 0 and variance $σ^2$. We use MSE = (Residual sum of squares) / (n-p) as the estimator for σ, where n= number of observations and p = number of coefficients. I think I understand the concept till here. However, when we come to standardized residua...
According to Wikipedia there are two main operations between two kernels: product and composition. They look almost identical to me and I cannot figure out what's the intuition between these different operations. All kernels below are s-finite, $(S, \mathcal{S})$, $(T, \mathcal{T})$ and $(U, \mathcal{U})$ are measurabl...
I am evaluating a classification model and I am using the PR curve because of my highly imbalanced dataset (negative class is the 5%). In the end I'm comparing the training PR curve and the test PR curve. I got this graph: I've also calculated PR AUC: after training it is equal to 1.0, after test it is equal to 0.9931...
Here is a problem of machine learning interview: For a classification problem, suppose you have labels a, b, c. During test samples, suppose the lose that the samples with label a are classified as label c is very large even compared with being classified as b incorrectly. Namely you don't want label a sample to be cl...
I might not be using the correct terms, will be grateful for explanations and directions to relevant sources. When running linear least squares, we look for the weight vector $\vec{w}$ whose weights will minimize the term $||A\vec{w} - \vec{b}||$, where $A$'s row vectors are the training set feature vectors and $\vec{b...
I have 3 tasks and want to find out which one is more effective (that is, to find which task people performed better in). Just over 30 people have participated in all 3 tasks, and their performance gives a numerical score in each. Would it be appropriate to use a paired samples t test to compare performance between tas...
Like many others I am seeking for a method to create a "correlation" like matrix for an unpredictable mix of variables which can contain unordered categorical ones as well. While there are ideas of defaulting to different options depending on variable types for each pair of variables this seemed complicated (plus Spear...
I am studying the relationship between the concentration of metals in organisms (Y axis in the image) and the environment (X axis). The regressions are not very good due to some outliers, and I want to prove this by doing regression models with and without the outliers. My problem is: how do I determine what values are...
I have a bunch of small datasets (billions of sets of 7 samples). Each dataset represents the smallest 7 samples of a larger set of 15 values which are normally distributed. Given just the smallest 7 samples, how could I calculate the mean/stdev for the full 15 sample set efficiently? I suspect this involves using orde...
I want to define precisely, exhaustively and constructively the conditional expectation of a random variable given the sigma algebra generated by a set. This question has some discussion on it but the definition is not made explicit. Set Up Let $(\Omega, \mathcal{F}, \mathbb{P})$ be a probability space, $(\mathsf{E}, \...
Given a dataset that follows "some"[1] distribution, how can we add noise to the dataset, such that when the original dataset plus the noise is shown to someone, it looks uniformly random[2]? [1]: I understand that this will depend on the distribution that the original dataset follows, but I could not find any related ...
I am currently working on a probabilistic forecasting problem (outputting the full predictive distribution, possibly in the form of samples) and I need to decide on a measure to evaluate the forecasts. Considering I do not have an explicit density function, so likelihood-based metrics are out of the question, I have ma...
I'm working on an implementation of a Variational Autoencoder (VAE). There are lots of helpful examples and guides out there, which typically introduce VAE in the context of image data, e.g. MNIST. Since pixels (input features) are scaled between zero and one - $x\in[0,1]$ - these examples use sigmoid activation in the...
I aquired the median activity data of animals per hour and wanted to model them dependent on time. Now I have tried different models and came up with the following. (This only includes a small portion of the whole data) data <- structure(list(group = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, ...
library(astsa) soi= scan("soi.dat") rec = scan("recruit.dat") soi=ts (soi) rec = ts(rec) ccfvalues =ccf (soi, rec) ccfvalues Reproduce these results with https://online.stat.psu.edu/stat510/lesson/8/8.2. How is it determined from this cross-correlation plot that: Note! The correlations in this region are negative, i...
Imagine we conduct a survey using stratified sampling, and after the survey closes, we find out that we had misclassified some of the respondents. They actually belong to different strata than we had assigned. We can let $n_H$ and $N_H$ be the size of stratum H in our sample and in the population, respectively. $n^*_H$...
In the context of t-distribution confidence intervals, when computing the standard error of the difference of means when population sizes are uneven, the harmonic mean of the sample sizes must be used. standard error normal dist mean: $\sqrt{ \frac{s_1^2}{n_1} + \frac{s_2^2}{n_2} }$ Standard error T-distribution: $\sqr...
I think this is simple: I want to test if a treatment (that I know a priori does something) is stronger in one group vs. the other (in the presence of random effects). This seems like it should be straightforward with emmeans, but I'm struggling to find the example that matches my use case and would love a pointer. Bel...
Let $y_1, y_2, \ldots, y_n$ and $z_1, z_2, \ldots, z_n$ be samples of size $n$ of a normal distribution $\mathcal{N}(0,1)$. My goal is to find the distribution of $$\frac{\sum_{i=1}^n (y_i - z_i)^2}{\sum_{i=1}^n(y_i - \bar{y})^2},$$ where $\bar{y} = (y_1 + y_2 + \cdots + y_n) / n$. My first idea was to approximate the ...
Suppose we have a data matrix $\mathbf{X}\in \mathbb{R}^{M\times N}$ with $M$ features, $N$ samples and zero means ($M \lt N$). The covariance matrix of $\mathbf{X}$ is $\mathbf{C_x}=\frac{1}{N}\mathbf{X}\mathbf{X}^T$, where $T$ is the transpose. We can find the eigendecomposition of $\mathbf{C_x}=\mathbf{U}\Sigma\math...
Is there an package to design an experiment with a single factor, potentially with multiple levels? I want to know how a certain voltage depends on temperature and for that I initially planned to measure the temperature from $5 ° C$ up to $80 ° C$ in $5 ° C$ steps. But simply ramping up the temperature feels wrong. To ...
Sorry, I don't know the math words. I have a data set that looks like the following. I am counting things, and the graph shows how many of each thing there is. for example, I have a LOT of thing #0, and not many of thing #300. In my application, things that are ubiquitous are assumed to exist; I don't need to include t...
I have a question regarding the impact that censoring has on the predictions from a survival model. For example, let's say we are trying to estimate the risk a client has to churn in the next 1 month using a survival model, and we have data for 24 months. In this case, should we censor individuals that churn after the ...
I am hoping to simulate survival times from a lung transplant dataset (n > 20,000). In order to do this I need an estimate of the cumulative baseline hazard function. I have used the basehaz function in R and then fit a Weibull distribution to it using nls. However the resulting simulated survival times are significant...
This thread provides an excellent explanation of the calculation of the standard deviation of the sample standard deviation. However, I'm not sure if it's appropriate in my case. I'm attempting to measure the stability of a classification scheme across groups of documents across years. My data contain 10 variables for ...
I am utilizing a cox model for time to event analysis. I have a continuous predictor, that appeared to violate the linearity assumption. I then re-did my model with a spline function, and compared my two models with a likelihood ratio test like so: model_a ~ A + B + C model_b ~ A + B + pspline(C) anova(model_a, model_b...
THE PROBLEM I have a Generalized Linear Mixed Effects (GLMM) model that is relating counts of an organism to relevant environmental covariates. Once this model is generated, I intend to apply it to areas where observations have not yet occurred by making predictions about what counts we'd expect given the environmental...
We're working on a sequence-to-sequence problem using pytorch, and are using cross-entropy to calculate the loss when comparing the output sequence to the target sequence. This works fine and penalizes the model correctly. However, we also have the added constraint that the prediction can't contain repeated indices, e....
I am learning to apply constrained ordination to community data using the vegan package in R. According to some materials, like this one, in a scaling type 2 RDA triplot: Angles between all vectors reflect linear correlation. It confuses me how the triplot would look like if all explanatory variables are uncorrelated...
Should one look at cross-correlation plot before performing Granger causality test to avoid type I errors? If we can't find any dependence between two series from the cross-correlation plot, then should we always not perform a Granger causality test?
What is the null hypothesis in a multivariate Granger causality test? Is it that one series does not cause any of the n-series, or that n-series do not cause one particular series? https://stackoverflow.com/questions/44967016/multivariate-grangers-causality describes how to implement the software. I have no idea what ...
Does anyone know how I could create a graph like this one to visualize time series of anual temperature for different years in R? Thank you very much for your help! :)
Say we get some value $t$ from test statistic $T$ for a sample $X$ of size $n$. The $p$-value is the probability that under the null hypothesis $H_0$, we observe a value $v$ of $T$ that is at least as extreme as $t$. The value $v$ is outputted for some variation of the $n - 1$ degrees of freedom. Is this above reasonin...
I am writing a custom variation of Lasso regression, using sklearn's Lasso implementation as a "source of inspiration". And I don't quite understand the very last line in the calculation of the Lasso duality gap in sklearn. The Lasso primal problem is ${\bf w^*} = \arg \min \limits_{\bf w} \|{\bf y} - X{\bf w}\|_2^2 + ...
Here is the big picture of my problem: In the image below, X and Y represent 2 independent gaussian distributions. So the circles are the representation of the resultant bivariate gaussian. This bivariate gaussian is traversed by a line L: aX+bY=c where a,b and c are real numbers. So It is know that when a bivariate ga...
I was searching for some public material on F-static for multiple regression equation and come across with this link https://www.statisticshowto.com/probability-and-statistics/f-statistic-value-test/#:~:text=The%20F%20value%20in%20regression,model%20has%20no%20predictive%20capability. This says that The F value in regr...
Explanation: Lets say we have a dataset, df with 'n' columns/variables. Two of 'n' variables are named as Case 1 and Case 2. Case 1 and Case 2 are categorical variables with value levels "Low" and "High". Logistic regression: Dependent variable: Case 1 and Case 2 Independent variable: Remaining (n-2) columns Objective:...
I am working with a dataset (~4000 subjects, 40 predictors, five continuous outcome variables) and I am interested in both feature selection and identifying the ordering of importance of various predictor variables across five regression models. I was interested in exploring linear and nonlinear ML algorithms. I have ...
If I find that a time-series fits GARCH(1,1), would EGARCH, or other GARCH variations still be X-GARCH(1,1)?
How to calculate the Fisher Information Matrix in GARCH? I want to know how to calculate the standard errors in them and without the empirical fisher information, empirical likelihood, I have no idea what my software does.
I'm trying to test the hypothesis that $\beta_{1} = \beta_{2}$ for the SLR $y_{i} = \beta_{1} + \beta_{2}x_{i} + \epsilon_{i}.$ I start by letting $\delta = \beta_{2} - \beta_{1}$, so my null hypothesis is that $\delta = 0$. When I use the Wald test to complete the test, however, I'm stuck trying to find $\hat{SE}[\del...
Weight Cross-Entroy (WCE) helps to handle an imbalanced dataset, and Cityscapes is quite imbalanced as seen below: If we check the best benchmarks on this dataset, most of the works use bare CE as a loss function. I don't get it if there are any special causes that would lead WCE to a worse result for semantic segment...
Updated question: Why do we use RMSE: $$RMSE = \sqrt{\frac{1}{n}\Sigma_{i=1}^{n}{\Big(\hat{y}_i -y_i\Big)^2}}$$ Why is it not MRSE: $$MRSE = \frac{1}{n}\sqrt{\Sigma_{i=1}^{n}{\Big(\hat{y}_i -y_i\Big)^2}}$$ I understand that other methods (e.g., MAE and MAPE) can be used as a metric for error. My question is specificall...
Suppose I wish to find the median survival time of each sex in lung data. library(dplyr) library(survival) test_pool <- survfit( Surv(time, status) ~ sex, data = lung, error = "greenwood", type = "kaplan-meier", conf.type = "log-log", conf.int = 0.95 ) %>% summary() %>% .$table test_1 <- survfit( S...
Most learning (training and validation) curves that I see in literature and through online resources depict a steep decrease/increase in loss/accuracy during initial epochs followed by a subsequent flattening/plataeuing of these curves. As the performance of a model is generally measured by its accuracy on the validati...
I have $n$ sensors which output either $0$ or $1$. These sensors have known measurement error reflected by a false positive rate, $fpr$ and false negative rate, $fnr$. In my case, $fnr > fpr$. Given measurements from the sensors $s_i$ where $s_i$ is $0$ or $1$ for sensor $i$, I'm interested in calculating the expected ...
I'm developing a decision rule for a study using an interim analysis with a Bayesian characterization of the event probability. At a certain point, we will perform a planned stop, and only proceed with the study if it meets certain benchmarks. I'm interested in ensuring that the probability that the posterior exceeds a...
I have fitted a multiple linear regression equation and looked at the Durbin-Watson test statistic for the same. I was told that in order to not rejecting null hypothesis of no auto-correlation against negative/postive auto-correlation, the p-value should be between 0.01 to 0.90. Is above statement correct? Is there an...
So my team wants a single best linear unbiased estimate (BLUE) using 2 response variables. I have asremlR and here is my code to produce the model: >asreml_Iblock_di <- asreml(fixed=cbind(sb_pro,la_pro) ~name+year+linmat, random = ~rep + Block+ rep*Block, data=e,family=asr_binomial(link="logit",disper...
I'm trying to prove that, under the random sampling, linear in parameters, and exogeneity Gauss-Markov assumptions, the error terms in $y=\beta_0+\beta_1x_1+\dots+\beta_kx_k+u$ are uncorrelated when working with cross-sectional data. So far, I have: Since we know the sample data is independent and identically distribut...
I'm training a logistic classifier to classify 5 classes using scikit-learn. The data isn't extremely imbalanced (class 1: 27.7%, class 2: 19.4%, class 3: 17%, class 4: 19.6%, class 5: 16.2%). I'm trying to tune the number of features and the regularization/penalty coefficient based on the macro average F1-score, but I...
I have a large amount of telemetry for a population of users using a tool suite. In many cases, users are working on a number of different tasks over the course of a day, and hopping back and forth between tools constantly. The data mostly looks like <timestamp, userid, tool, complex json blob describing what they did>...
For the experiment, 12 people were invited. All participants were pre-tested (10 tasks with 0/1 marks). Then we randomly divided all the participants into two equal groups of 6 people: experimental and control. A treatment was conducted and all participants were post-tested (again 10 task with 0/1 marks). Results of te...
I have developed three likelihood ratio tests (LLT) based on three different hypotheses for a certain distribution, say $X.$ I understand how to use it when dealing with real data application. I do not understand where to start for simulation study. Say $X$ has 3 parameters, $a, b, c$ and the first hypothesis is $a = 0...
I have a very difficult binary text classification problem for which I am trying to fine-tune a bert model (bert_en_uncased_L-12). By "difficult" I mean, the text data contains a large amount of features that are shared between classes and the differences between my classes are probably more subtle and often require re...
I used SMOTE and ADASYN on a dataset separately and used Random Forest and KNN on them. Both giving quite close accuracy(RF= 97.75 %, KNN= 97.22% where SMOTE was used) & (RF=97.67% and KNN=97.42% where ADASYN was used). Now I learned about statistical tests which can be used to compare two different models using single...
I'm new to time series data, and I want to answer a question like: "On days when I eat a banana, is my average blood sugar level higher?" That means, I have a time series where I have a bunch of blood sugar levels sampled every day, from which I can calculate a daily average. Let's say I have this data for 60 consecuti...
In this suspiciously brief comment on another article, the author suggests that analysts should only correct for multiple comparisons in univariate regression when the predictor has more than two levels, and that in non-hierarchical multivariate regression, with several or many predictors "...statistical correction of ...
As far as I understand relative risks and hazard ratios are very similar concepts (although this paper seems to disagree). The advantage of hazard ratios is the inclusion of temporal information. I always thought that the Cox model at least theoretically requires that events and censoring can take place at any given mo...
There is a marked dataset of $n=2879$ objects on 7 classes. Each object (an object is a text of 1-3 sentences) was marked up by different users. Class 1 includes $n_1=790$ objects, Class 3 has the fewest objects: $n_3=192$. On can see the dataset is not balanced because the ratio $n_1/n_3 = 790/192 =4.11$ is large. An ...
It is known that $(x,y)\in \mathbb{R}^2 \mapsto \min(x,y)$ is a positive definite kernel. Can we generalize this result in the following way : Let $k_1(x, y)$ and $k_2(x, y)$ be any two positive definite kernels. Is $$k:(x,y)\in X^2 \mapsto \min(k_1(x, y), k_2(x, y))$$ a positive definite kernel? I think it is a psd. I...
If $X\in\{0,1\}$, then $\frac{cov(X,Y)}{Var(X)}=\mathbb{E}(Y|X=1)-\mathbb{E}(Y|X=0)$ I have no idea what to address with the conditional expectation part. Thank you for any comments, someone has provides a solution that I cannot understand. Please help me out with this question sincerely. https://math.stackexchange.com...
I am performing a logistic regression analysis after performing a stepwise regression. I would like to know why the odds ratios of the logistic regression cannot be higher than the stepwise betas.
In Wei and Kusiak, 2015 a metric is used to evaluate the performance of a time-series prediction model. The paper calls it [the] correlation coefficient ($R^{2}$) and defines it as $R^{2} = 1-\frac{\sum\limits_{i}{(f_{i}-y_{i})^{2}}}{\sum\limits_{i}{(f_{i}-y_{i})^{2}}+\sum\limits_{i}{(f_{i}-\bar{y}_{i})^{2}}}$ where...