instruction
stringlengths
9
38.7k
Batch normalization has been credited with substantial performance improvements in deep neural nets. Plenty of material on the internet shows how to implement it on an activation-by-activation basis. I've already implemented backprop using matrix algebra, and given that I'm working in high-level languages (while rely...
$T_n$ is a random variable having pdf $$f_n(t) = \begin{cases} n; & 0 < t < n^{-1}\\ 0; & \text{otherwise} \end{cases}.$$ Consider the the sequence $T_1, T_2, \cdots$ and give the pdf or the pmf of the limiting distribution. Here is what I came up with: The support of $T_n$ is $(0,1/n)$, so we have that the CDF is $$F_...
I'm training a classification model for highly unbalanced data where hits are pairs that have similarity of almost 1 on independent metric. Everything else are non hits. Does it make sense to pick negative samples from pairs which are at least to some extent similar? Will it make the model more powerful?
$X_1$, $X_2$,... are iid random variables having pdf $$f(x)=3x^2 I_{(0,1)}(x)$$ We also have that $V_n = n^{1/3}$ min$(X_1,...,X_n)$ and $W_n = n^{1/3}$ max$(X_1,...,X_n)$. a.) Consider the sequence $V_1, V_2,...$ and give the pmf or pdf of the limiting distribution b.) Consider the sequence $W_1, W_2,...$ and give the...
I'm studying the difference between regularization in RKHS regression and linear regression, but I have a hard time grasping the crucial difference between the two. Given input-output pairs $(x_i,y_i)$, I want to estimate a function $f(\cdot)$ as follows \begin{equation}f(x)\approx u(x)=\sum_{i=1}^m \alpha_i K(x,x_i),\...
Are there any existing methodologies of deseasonalizing time series data online, in order to avoid lookahead bias? It seems that if you don't deaseasonalize time series data online, you would not be able to evaluate a machine learning algorithm that runs online on time series data that you wish to deseasonalize.
I have been tasked with finding the return on investment of a vaccine. The vaccine is used by farmers for their cows and the number of cows kept varies drastically between farmers (from $1$ to $1,000's$). I have produced a rather complex model of the death rates based on the number of cows kept (non-linearly) and whet...
I was reading a paper and came across this sentence: "ML methods perform well by employing regularization to reduce variance and trading off regularization bias with overfitting in practice.: I am wondering if anyone would have any insight into this sentence. I understand that regularization involves shrinkage of p...
It does not seem to be explicitly mentioned in the methods of the paper (available at https://arxiv.org/pdf/1409.4842.pdf).
The very concise explanation of GLMs in my course describes the link function without saying much about the error distribution. From what I read in other places such distribution seems much more important than it would seem in my course. For GLMs in one the most useful answers on this site I read "The link function is ...
Context: I'm trying to improve a pose estimation model so that it works better when my camera is in Infrared mode. Unfortunately I only have RGB images to train on. I realize that you can't convert RGB to IR directly, but my hypothesis is that converting the RGB images to look more like IR, and then training on a data...
I am attempting to build a model which, for a patient currently admitted to the hospital, predicts the remaining amount of time until the patient is discharged. Some of the predictors I'd like to use are patient-level (e.g. ethnicity), others are admission-level (e.g. admission diagnosis), and others can be entered man...
I have been trying to apply the correct model with GLMM to a data set that I believe has nested and random effects. Specimens were collected from 7 sites from 4 states that fell into 3 biome and 3 latitude groupings and a different number of families (replicates) were obtained (see image). Basically state X is either i...
Say I have n items. How can I find the amount of combinations possible of subset sets covering all items, when order does not matter. This is maybe badly worded, so allow me to give an example: n=3, so we have items A,B, and C. All possible subset sets covering all items would be - [A B C] - [A BC] - [AC B] - [AB C] -...
I'm trying to understand how to include group-level effects in posterior predictions. I am reproducing a figure from Statistical Rethinking by Richard McElreath, but using the R packages brms and tidybayes to do the work. A fully reproducible example is below (requires several packages) My understanding is that by sett...
I have a dataset where there is list of 20 subjects, and each subject has data for 2 variables (X and Y). There are multiple entries of Xs and Ys per subject. It is believed that there is some meaningful correlation between X and Y within each subject. Due to the heterogeneity of the population, it was requested that ...
I want to predict the price of the next item a user purchases based on the prices of the items they have purchased in the past. The caveat is that most users have less than 3 previous purchases, so I am wondering what would be a good approach for predicting a purchase when the historical data is so sparse?
Let $X$ and $Y$ two random variables with dnsity distribution function $f_{X}$ and $f_{Y}$ respectivelly. We assume that $(X,Y)$ is a random variable on $\mathbb{R}^{2}$ where $$\mathbb{P}((X,Y)\in A)=\iint_{A}f_{X}(x)f_{Y}(y)dxdy. \tag{*}$$ Let $X_{1},\ldots,X_{n}$, and $Y_{1},\ldots,Y_{n} $ samples of $X$ and $Y$ ...
Comparing three regression functions, one has a has three coefficients. The other two functions have two and one coefficient respectively. The coefficients are the same a the one function with three coefficients though. The sum of the r-squared value of the two equations with one and two coefficients is greater than th...
If $T$ is distributed from a Binomial $\mathcal{B}(n,p)$ distribution, is there a simple way to compute the variance of $$ \frac{T(n-T)}{n(n-1)}=\frac{\sum(X_i-\overline{X})^2}{n-1} $$ where the $X_i$'s are Bernoulli $\mathcal{Be}(n,p)$? The motivation is that $\frac{T(n-T)}{n(n-1)}$ is the UMVU estimator of $\text{va...
I am reading Statistical Rethinking (Section 4.2). When defining the components of a model description the author says: ... we define a likelihood distribution that defines the plausibility of individual observations. In linear regression, this distribution is always Gaussian. Why is the likelihood distribution alway...
I read Neil's presentation and found this joint model is confusing: $$p(y_*|y, X, x_*) = \int p(y_*|x_*, W)p(W|y, X)dW $$ where $W$ contains $W_1$ and $W_2$ and $p(W|y,X)$ is posterior density Can anyone explain it to me?
Please help me with a question. I want to use the hidden Markov model (HMM) to predict sequences of binary vectors of fixed length. For example, there are such observations: 01001 00101 10010 and so on. I need to predict the next binary vector of this sequence. How can I do it? What will be the model? Thank you very mu...
I stumbled upon the following quantity and I'm wondering if anyone knows of anywhere it has appeared in the stats literature previously. Here's the setting: Suppose you will observe data $y\in \mathcal{Y}$ which is distributed according to the density $p(y\,\vert\,\theta)$ for some parameter $\theta$ having a prior den...
A completely random measure assigns independent mass to nonintersecting subsets. I cannot figure, however, how the Dirichlet Process does not qualify as a CRM? Aren't the atoms all independent from each other?
BACKGROUND This is basically a reputation problem that involves a set of interacting entities $e_i$. Each entity has, in principle, a reputation vector $\vec{b}_i$. That reputation depends on what the entity is intrinsically, i.e., on the features $\vec{\delta}_i$ describing $e_i$, but also on the reputations $\vec{b}_...
I'm fitting something similar to a naive Bayes model to a data set where each data point has six features, $A_1$, $B_1$, $C_1$, $A_2$, $B_2$ and $C_2$. $A_1$ and $A_2$ can both take values in {$a_{1}$, $a_{2}$, $a_{3}$, ...}, $B_1$ and $B_2$ can take values {$b_1$, $b_2$, ...} and similar for C. The important part here...
I'm a data scientist who has not used central composite design before, I only heard of it, but I'm not able to grasp for what it can be used and how it can be used. Can someone please explain this to me in a high level for beginning and maybe point me to some useful literature?
I searched about Bayesian Ridge Regression on Internet but most of the result I got is about Bayesian Linear Regression. I wonder if it's both the same things because the formula look quite similar
Is the supremum test of cumulative martingales residuals (as implemented by assess in SAS PROC PHREG, and other software) OK for testing PH of both continuous covariates and of group?
This is not a home work and the question is not related to studies (I am not a student). I have to do the weekly desk rota at the office and thought this forum might help with suggestions. My problem is below: I need help for desk allocation. In the office we are assigned different desk every day and we rotate. I need ...
I am conducting a survey in 9 restaurants, hoping to gather data on our customer demographic profile. The population is equal to the number of covers the restaurant had over the corresponding period in the previous year. This ranges from 4000 to 10000. Across all sites then, I understand that I would need between about...
Scikit-learn's univariate feature selection module offers three similar sounding methods for feature selection SelectFpr - false positive rate SelectFdr - false discovery rate SelectFwe - family-wise error rate Only SelectFdr has a reference, which is to the Wikipedia. That article also covers fwe. I can't find a ref...
I need to calculate the minimal detectable change (MDC) for my dataset and found the following formula in several publications: $MDC = 1.96 * SD * \sqrt(1-ICC) * \sqrt2$ They argue $\sqrt2$ is used, because of the uncertainty of two measurement timepoints. However, in my dataset I don't have just test-retest measureme...
Hopefully someone can help me as the question drives me completely crazy. I'm using R to calculate Cohen's d with the following code and every time I get different results. What am doing wrong? library(effsize) treatment = rnorm(75,mean= 15.37, sd= 8.43) control = rnorm(75,mean=21.20, sd=8.37) cohen.d(treatment,contr...
I'm working out a sum out that asks to find P(a < x < b), and the usual way to do that is to calculate F(b) - F(a). This particular sum however adds up F(a) and F(b). The PDF is:
For this example, I am using the data "appendix_example1_wide.SUPP.FINAL.csv" posted here. In the paper, the authors use the to MCMCglmm package fit a multivariate multilevel model. Of particular interest, they use the following code to estimate covariances between random effects (e.g., random intercepts from each out...
I would like to be able to code the following linear mixed model into a bayesian framework. In the traditional/frequentist view, the model would be coded like this: # Generation of simulated data set.seed(123) varY <- rnorm(100, 0, 1) facX <- gl(n = 4, k = 25, labels = c("A", "B", "C", "D")) block <- factor(rep(x = pas...
I am doing a policy evaluation and wanted to do so with a Difference-in-Differences regression. There is an assumption about common trend, where the treatment group and the control group would follow a common trend if there had been no treatment. Between the control group and the treatment group there is common trend ...
it has been a while since I had to deal with any probability analysis. I will try to explain as best as I can, feel free to ask any clarification. I have around 150 number of events (sales projects), each with its on Probability P of occuring (selling). Each event has a value V of (sales price). Now some events might o...
Let's start with the binary cross enntropy as defined in tensorflow: $$\mathcal{L}(\mathbf y, \mathbf t)=-\frac {1}{N}\sum_n t_n\log y_n + (1-t_n)\log (1-y_n), $$ where $$ t_n \in \{0,1\}, y_n \in [0,1]$$ In order to weight false negatives, we can put a weight $\mathbf c_n$ as follows: $$\mathcal{L}(\mathbf y, \mathbf...
When we have sparse data and need to regularize the posterior, we could use informative priors instead of vague ones. However, the information that we choose to construct those informative priors is sometimes not directly related (i.e. it might pertain to a parameter that we know is only similar but not the same with ...
In order to compute the $R^2$ for generalized linear mixed-effects models, I use to follow the procedure described in Nakagawa & Schielzeth (2013). This procedure requires to access the fixef() and getME() functions, which do not work with "mixed" objects, as shows the following error message: Error in UseMethod("fixef...
I have a dataset that I am trying to fit an analytic function to in order to use the functional shape as a PDF. Disclaimer, I am a physicist so I don't have too thorough background in statistics, and so I am basically wondering how do I decide what type of function to use just by inspection? This is the shape I am try...
I ran a linear regression on a month of hourly Nox concentration using StatsModels ols function. how can I get summary OLS Regression Results on the test data? I was able to predict for new data but I want to get parameters like AIC and R-squared : %matplotlib inline import pandas as pd import numpy as np ...
Given some multivariate normal distribution $P(\mathbf{x|\mu,\Sigma} )$ I'm looking for a method to maximise $P$ subject to $x_i \ge 0 \; \forall \; i$. I guess this is typically approached by instead minimising $f(\mathbf{x}) = (\mathbf{x - \mu})^{\top}\mathbf{\Sigma}^{-1}(\mathbf{x - \mu}) $ subject to our constraint...
I have a small data set with 40 patients (20 positive and 20 negative on some disease), where for each patient gene expressions of 40 cytokines are measured. The goal is to be able to predict status of disease and reduce dimensions simultaneously. I am trying to perform PCA on part of my data and subsequently use the r...
I am working on a project where I have to train a model to identify if a trade is considered large based on certain features. I have a large amount of data labeled with 1's (for large) and 0's (for not large). I figured I'd run a logistic regression for this model, but I was told by the end users that the amount of wei...
As stated in this thread Why do we need to normalize the images before we put them into CNN?, normalization of the inputs to a deep network to have zero mean and unit-deviation will make SGD more effective as each channel is on the same scale and thus the learning rate has the same effect in all. This issue is though ...
I took two separate water samples (one sample per bottle) in twenty one river locations (n=42). For the purpose of this question I am calling the two bottles duplicates. I am trying to show how environmental DNA (eDNA) attenuates with river distance from a cage of organisms. So the samples were taken every 0.4 km up t...
I have the telecom customers data and there is another team who writes scripts which handles the customer's requirement. When Someone messes up the script the issues will be reflected in the customer data and I do not have access to the scripts. When a customer makes changes to his/her services probably he may end up p...
I have a question on the coding/use of categorical variables: In short, I have two control variables in an SPSS regression model. One is participant (15 levels, or participants) and one other categorical variable (10 levels). And there is just one predictor variable in the model. I've tried two different approaches to ...
I am analyzing buy-and-hold abnormal returns of stocks (dependent variable) using OLS regression. These returns, however, tend to be positively skewed (and are so in my case). The residuals obtained by OLS are slightly skewed (skewness of 0.921 and kurtosis of 5.073). Although the histogram of residuals looks quite n...
I am trying to understand the benefits of transformation functions. Mainly, I am trying to understand the kick / the motivation to even attempt a transformation function on a sample data being analyzed. So, below I have 2 scatter plots of the same dataset. The first plot is carat v/s price: The second plots is log(ca...
I'm trying to build a classification model where observations are classified based not on some linear combination of their explanatory variables, but instead based on whether the variables are all within some (unknown) ranges. So, for example, if I had two independent variables, and my observations (independent, follow...
If I am comparing means of say four groups with unequal variances, I will have to go pair wise. So it would be 4C2 combinations.Now I can get different pair with mean significantly different, Is there any way we can claim that this specific group's mean is significantly different than all others? Suppose the groups ar...
Why is it important to have a large cohort or sample size in epidemiological studies?
I was wondering how to calculate the following joint distribution by assuming that $x_i$'s are continuous observations from normal distirbution $N(\mu, \sigma)$ with mean $\mu$ and variance $\sigma$ and $p(\mu, \sigma)$ is the joint distribution of $\mu$ and $\sigma$: $$ p(x_1,x_2,..., x_n, x_{n+1}) = \iint {\displayst...
I want to create a regression tree from a dataset that has predictors of continuous and categorical variables. For ex: to predict the profit of a company based on State(categorical) & Total Amount invested in R&D(Continuous). My question is how will the algorithm decide which variable to pick first as its root node? W...
I have a dynamic force model in time-series, let's say for example: $F(t,x,\frac{dx}{dt}) = p1\cdot x + \frac{p1+p2}{p3} \cdot \frac{dx}{dt} $ where p1, p2, p3 are parameters, x is displacement, $\frac{dx}{dt}$ is velocity, and $F$ is force. I identify parameters of this model from experimental data using least square...
I have read about model checking for multiple imputation MI (https://ete-online.biomedcentral.com/articles/10.1186/s12982-017-0062-6), but I am not sure how one can check their model for a general imputation using random forests, hotdeck... More generally, when imputing data, how do researchers decide the best imputat...
I've seen the derivative of the weights for a sigmoid binary output classification layer written as: $\frac{\partial \mathcal{J}}{\partial W^{[i]}} = \frac{1}{m}\frac{\partial \mathcal{J}}{\partial Z^{[i]}}A^{[i-1]T}$ Where $A^{[i]} = \sigma(Z^{[i]}) \\ Z^{[i]} = W^{[i]}A^{[i-1]} + b^{[i]} \\ \sigma(x) = \frac{1}{1 + e...
maybe a very basic hmm implementation question. Would there be a way to determine the most 'likely' of two different HMMs for a specific sequence? I was thinking about using the forward algorithm through the 'HMM' package in R. However using the forward function gets me a table rather than a single probability # Initia...
I keep bouncing into the following result. Let $X$ be a random variable with a cumulative distribution function $P(X<x)$. We draw $n$ independent values from this distribution, and the minimum of these $n$ values is $x_{min}$. Then for large $n$, it is true that: $P(X< \langle x_{min}\rangle) = 1/n$ where $\langle x_{m...
I would like to understand if we should remove variables with less p-Values after regression with regularization. If p-value is high doesn't it mean that our beta is just by chance and it might actually be zero? If so, then this beta should ideally be removed. Is there any case where I should be careful about this conc...
Suppose, I know what's the minimum $\min$ of a random walk $w_t$ in period $[0,\Delta t]$. I also know $w_0$ and $\sigma$. How to construct the Brownian bridge for the latter period? I guess it's not even a bridge since I don't know $w_{\Delta t}$, so my bridge starts at known $w_0$ and goes down to $t=\Delta t$, while...
I've seen similar questions posted elsewhere with no answer, so I thought I'd put this out into the CrossValidated universe. I am attempting to do a Tukey's post-hoc test on a model that has an interaction. To do this, I have used the interaction() function to create a new variable that combines my two main effects, H...
I'm building a table/graph to compare multiple video cards according to a given benchmark. The benchmark consists of multiple measurements using games. For each benchmark measurement, I build a performance per cost metric. I want to average all the performance per cost metrics for given a benchmark. For instance, consi...
I'm having a couple logistic regression-related questions that I can't for the life of me figure out the answer to on my own. Disclaimer that I'm not super stats saavy, so thanks in advance for bearing with me. The model I'd ultimately like to be able to interpret involves two categorical predictors each with 2 levels,...
My question comes from this tutorial about RNNs, but it can be a general RNNs implementation question. Suppose we want to develop a model to predict the next character using a RNN, and we have the following training data: X = [A, B, C, D, E, F, G, H] Y = [B, C, D, E, F, G, H, I] During training we only consider 1 epoc...
I've been playing with TensorFlow on two similar problems, both of which are trying to classify images into one of ten classes. I'm trying a range of relatively deep convolutional network architectures (8-12 layers) inspired by the VGG net. The problems and observations of results on them are as follows: scaled-down p...
I would like to find out how to select an appropriate error distribution and link function to model count data to determine a treatment effect using a generalized linear mixed effects model. I have mostly followed this practical guide, which I found helpful, but I still have some questions. Q1: In the particular case...
I have the following model to look at the effect of humidity (AverageHumidity) on the proportion of insects surviving in climate controlled chambers. I have used a glm for proportions. My response variable is the proportion of males that have survived (Im looking at the sexes separately for now): ySrubusMale=cbind(...
I've a dataset that contains several attributes and a KPI column. I would like to understand through statistics which of the attributes are more important or key attributes in influencing this KPI column. Is there a statistic model that I could run to get this analysis? Please help, As you can imagine, I'm a novice in ...
I'm new to neural nets, and I'm having a hard time wrapping my head around the concept of weights and whatnot. I've been staring at a diagram of the XOR neural network for an hour, and I genuinely have no idea what I'm looking at. I just can't figure out how it works. Can someone explain how the four possible cases w...
I ran a study where each participant rated 20 different foods. There were two conditions, so half the participants saw one set of foods and half saw another. I would like to compare these two conditions using a t-test. When making this comparison, should I: A) Compare the individual ratings for foods for one group to...
I do not fully understand how second-order optimization approaches help machine learning algorithms, like multilayer perceptron, to achieve the global minimum error. As you know, Stochastic Gradient Descent is in the first-order optimization family as it helps to optimize the error function by going downhill toward the...
So, I have a some experience with standard econometrics, and I also understand GARCH's basic concept, but I can't figure out what actually goes into its model. So we have the standard GARCH(1,1) recursive equation: $$\sigma_{t}^{2} = \alpha_0 + \alpha (\sigma_{t-1}^{2}) + \beta (\sigma_{t-1}^{2}\eta_{t-1}^2) $$ If I ha...
What is the major difference between SVM and Logistic Regression? As both are used for classification purpose and while SVM provides better classification than logistic regression then how is logistic regression advantage over SVM?
Lets say I have a group of student and I assign them to both conditions - condition 1: View videos from lecture A and condition 2: View videos from lecture B. After each students view the videos from both lecture, the student have to complete survey for each lecture which is a 5 point Likert item (a single question) ...
Let's move right onto the reproducible example using R: library(moments) library(magrittr) dat <- data.frame(V1=c(1.36,0.65,0.66,1.27,0.57,0.58,0.85,0.67,1.56,1.28,0.59,0.64,0.8,0.8,0.74,1.01,0.68,0.6,0.5,1.56,0.76,0.96,1.16,0.73,0.61,0.67,0.82,0.69,0.5,0.47,0.68,1.34,0.97,0.5,1.64,1.12), V2=c(173.64...
I'm working with R and confirming my results in Python with the overwhelming majority of the work matching between the two quite well. There are two outputs coming out of R that I'm not seeing how to get in Python and for now I'm looking for pre-packaged calls but if I have to do it manually so be it. Still, I would ex...
I have fitted a DCC GARCH model to my multivariate financial returns data. Now, I need to compute the time-varying conditional correlation matrix by using the standardized residuals obtained from the DCC-GARCH estimation. Here, the problem is I do not know how to compute conditional correlation matrix by using standard...
I have the following time series and need to show that the ACF is zero except at lag one. $$X_t=\frac{0.8\epsilon_{t-1}^2}{1+\epsilon_{t-1}^2}+ \epsilon_t, \text{ and that } \{ \epsilon_t\} \sim_{i.i.d} N(0,\sigma^2)$$ My guess is that I need to calculate the covariance for the lags and show they don't share the same ...
Lecture in question: https://www.cse.buffalo.edu/~jcorso/t/CSE555/files/lecture_hmm.pdf Slide #6 shows this graph: Slide #7 gives these probabilities: Is P(Dry|High) = 0.3 on slide #7 a typo?
I am sampling a random variable from a system so as to find the underlying distribution. To do so, I can plot either a histogram, or a kernel density estimate. Either way, how do I indicate the confidence in the data? Conventionally, when one performs an experiment, one uses the standard error (stddev/sqrt(N)) as such...
Suppose, we have three metrics (M1,M2,M3) for one database D1 which have time series data and similarly same metric (M1,M2,M3) for other database D2 and so on.How do we cluster using K- means clustering on what dimension? sample time series data of metrics M1 -- (43 value at 12 am,23 at 1 am, 78.5 at 2am ...6values) s...
Sorry for being a bit vague here, but I have an A/B experiment design question that I can't figure out Suppose I have a treatment that I want to apply to a group over a month or so, but have the following constraints: Once a member is in the group, the treatment has to be applied until the either the period ends or th...
This is my question: I have to perform a mini-meta-analysis on two studies(independent, balanced sample) with a Repeated measures design and with two within factors. I have the F statistic and the p value of two significant interactions in study 1 and study 2. I want to present a unique p value, so I have to combine th...
I am working on a dataset with two variables for my thesis: sensor_value: numerical variable containing information about the value gathered by the sensor cat_quality: categorical variable of 4 levels measuring the reliability/quality of the information gathered by the sensor. It ranges from 0 (No signal) to 3 (extrem...
In learning of hypothesis testing, I want to see if different gender has the same survival rate. By using Australian AIDS Survival Data Here are my hypothesis statements: Hº: Gender has no significant difference in survival H1: Female has better chance of survival I want to calculate the Z score to test the hypothesis...
I have a dataset containing 40 input columns and 12 output columns (float values). I suppose it is a regression problem and I am wondering, how to choose the ideal architecture of the neural network? I didn't find examples of neural network regression with multiple outputs. What is the right way to do it?
I have been playing around with using restricted cubic splines using the RMS package. Output below. library(rms) nlmodel_ni_bi_4 <- lrm(outcome~ rcs(age,4) + ethnicity + AV + sex + nb, data=df) nlmodel_ni_bi_4 Frequencies of Missing Values Due to Each Variable outcome age ethnicity ...
I have a regression setting in which I would like to explore the influence of a given variable on a certain patient condition, given a level of risk for the same outcome, predicted with a more complex non-linear model. How do I factor out this per-patient risk? should I include it as a covariate (of course it will get ...
Standard teaching says that sensitivity and specificity are properties of the test and are independent of prevalence. But isn't this just an assumption? Harrison's principles of internal medicine 19th ed says It has long been asserted that sensitivity and specificity are prevalence-independent parameters of test accur...
Is it possible for ridge regression in some rare case to reduce some co-efficients to zero(Lambda being huge but less than infinity). Or is it never possible? Same with LASSO, is it possible for LASSO to reduce all co-efficients to 0 only when lambda is infinity? If there are examples for these cases it would be helpfu...
I am quite new to R and also to LME statistics and would greatly appreciate any help. I am trying to figure out whether I have changed the variables in my study accordingly, and how to read the results I got from an lme using package lme4. My data look like: Subject Age sex Session Match Learned Average.Rating 1 ...
Lets say I have v1 and v2 and I have 400 data points for each variable. I expect them to be negatively correlated, so a simple approach here would be to calculate the correlation However, the 400 pairs of data points came from 40 different people, where each person only offered 10 pairs of datapoints One way I could ap...
Sorry if the title seems a little roundabout, but let me explain what I'm trying to do. I'm training a XGBClassifier (in python) on samples that aren't strictly in the class of 0 and 1, but have a little granularity of range-- anywhere from [0, 1], [.25, .75], [.5 .5], [.75, .25], [1, 0] for each of the two classes, wh...
I have been trying to do classification of my hyperspectral data. The variable selection were done with variable importance in projection in pls-da. The selected variables were then used for classification, but in pls-da it did not show any clear separation. However when the selected variables were then analysed with l...