instruction
stringlengths
9
38.7k
So, I have more than 20,000 entities. Each entities has their own data point (time series). Let say entities A1 to A20000. A1 has data point from year 1 to year 60. A2 has data point from year 5 to 60, and so on. We can make some plot year vs value each year for each entities. My task now is to make a cluster of the e...
Excuse me if this question is not correct, I am not very familiar with the field. I am trying to calculate EER based on FAR and FRR, when having both upper and lower bounds (max_threshold, min_threshold). I have not come across anything similar yet, but my thinking is the following: I have classified values as genuine ...
I have daily time series data of a shop's revenue. Now I would like to test for seasonal differencing with the OCSB test originally intrduced in (Osborn et al. (1988): Seasonality and the Order of Integration for Consumption). This test is explained in more detail in (Ghysels, Osborn (2001): The Econometic Analysis of ...
I'm working on an outlier detection method using the principal component pursuit(https://statweb.stanford.edu/~candes/papers/RobustPCA.pdf). The algorithm decomposes the data matrix D = L+S; L being a low rank matrix and S a sparse gross error matrix. Here, the main assumption is that D is a Low rank matrix that has b...
I have a dataset for which I need to study both fixed and random effects. And I would love doing it with a LMM or a GLMM, but my data is not normal at all and I cannot transform by any means. So... my only option left is Bayesian statistics (which I know they rock but I don't really understand) My data looks like thi...
I had a matrix with values and I wanted to identify the outliers. For doing so, I computed the z-scores (so, I had a new matrix with z-scores) and I took those values above 3. Now, I have 2 replicates (2 matrices from the same origin). Therefore, I would like to consider both matrices in order to get real outliers for ...
How can one generate two sets of data which are different at each quantile values (say decile)? Ex: 10th & 80th percentile is 4 & 22 respectively for the first set and the same should be 8 & 44 for second set which implies the second set has larger values at each quantile. If I can generate such data, I am planning to...
I am having facing an issue with time series. I have collected data over an 18 hour time period of 1.Heart Rate 2. Running Time in HH:MM:SS.O and 3. the associated behaviour (either active or sedentary). The issue is that the data frame has over 18 hours of recorded entries (~250,000 rows) marked as either active or se...
I want to run a regression on a dataset with very few participants but with multiple related observations. How I may form random effects? i must declare them for every instance of them? I found also that, is of any help?: "[post][1]" e.g. summary(lme( Run ~ wellness* id + fit * id + happiness * id, data=df, random= ...
Is there a rule for selecting which experimental design one should carry out? I am new to statistics/ED and sometimes I find myself asking which design is best to use. My general guidelines have been (please correct if wrong): Use a Plackett Burman (PB) for screening the number of variables Use a fractional factorial...
I'm working with time series data (Forex data) using a random forest. When training the model using the caret package in R I have few options. One of the options is to use e.g. 10-fold cross validation but I'm not 100% sure that it's a good idea for time series. I could also use time series cross validation (timeslice ...
Can someone explain to me how I do a balance test in a randomized controlled experiment? Do I choose the important covariates and estimate whether there is a significant difference between my two treatment groups and my control group regarding the chosen covariates?
I'm currently working on a statistics paper for practice (complete beginner here) and need to "test the hypothesis with a t-test". Unfortunately, most of my data is ordinal (because it's from WVS 6th wave), and I'm confronted with a lot of situations we didn't get to discuss in class. I figured that an ordinal logisti...
Suppose I have a dataset consisting of $3N$ elements ($X,Y$ pairs) and I split it evenly into three subsets. I know the Pearson correlations between $(X,Y)$ in each of these subsets, and suppose they are all equal to some value $k$, i.e. $r_1 = r_2 = r_3 = k > 0$. Is it possible for the correlation $r$ between $(X,Y)$ ...
I am building a CNN and I want to maintain translational variance. Most CNNs use pooling and stride which allows for the useful side effect of translational invariance, meaning that if a feature appears in a scene it will be picked up as the same feature. But what if the position of the feature in the scene is informat...
This question has to do with the underlying statistical methodology. I have some expert knowledge of the domain but I am not certain the method I want to use is statistically sound. Let's assume that data quantity and quality is not a problem and there is no seasonality. Please let me explain the details: I have a vari...
I asked it here as well: https://datascience.stackexchange.com/questions/19998/why-is-my-tree-showing-only-one-node Hello, I have $N=1520=19*80$ samples, each of which are $p=1764$-dimensional. So $N < p$ here. I want to perform a $19$-class classification of these samples. The training data consists of $80$ samples fr...
I want to use this algorithm as a black-box, I'll be implementing it either in Python or R, but I don’t really understand it well to be able to turn it into a program. How do we choose the initial values for parameters? What exactly is q(xt, ·) & q(y,x), I understand these are probabilities, but how do we calculate the...
I have a set of drivers that are binary and a concept to measure that contains natural numbers between 1-10. I'm currently using Kruskal's key driver analysis to determine the relative contribution of each of the drivers. It's discussed as being more robust that Pearson's Correlation by taking into consideration the co...
There is something I'm not understanding about the Student's $t$-test, so I will write here an example to explain my doubt. I will write some considerations about the several steps: feel free to comment them if you think I'm wrong, also in details. Let's say I know that the mean absolute B-magnitude of the population o...
Following the paper Practical Bayesian Optimization of Machine Learning Algorithms. Link It's not clear to me as to how the hyper-parameters (different from the target hyperparameters for some other method) for the Gaussian Process (GP) is been learned. The paper mentions it as follows (Pg.4 under section 3.1): After ...
I always thought we select the model with the lowest cross validation , since cross validation is the estimate of prediction error. However, there is the "one standard error" rule according to "Elements of Statistical Learning", which choose the most parsimonious model whose error is no more than one standard error ab...
Given a finite sequence of $s+1$ IID normal random variables $X_1, \ldots, X_{s+1}$ They are spherically symmetrical. This means that the radial projection of the point $(X_1, \ldots, X_{s+1}) $ onto the unit sphere $S^s$ has uniform distribution on $S^s$. My questions are: what is meant by radial projection and how ca...
I have a network that I am training for an image classification task, with about 30 layers. The network is softmax activated at the end and uses cross entropy loss. When I train, I have been noticing the following: The training goes well for a few epochs. The losses keep decreasing and the accuracies increase. The pro...
I know decision trees commonly reuse continuous features down a particular branch of the tree and splitting them in different locations. I am wondering what the downsides are to disallowing this? For context, I am attempting to use a binary classification decision tree to create a white-box model of a feature hierarchy...
I realize similar questions have been asked several times, but I think this is different enough to warrant a seperate question. I have poisson distributed catch data with independent variables of Tool (the thing used to catch the fish), Species, and Habitat. I am most interested in testing whether different tools catch...
let's say I have the following model log(y) ~ log(x1) + log(x2) and I want to test the if an increase of 1% in x1 will will result in an increase of more than 0.2% in y. Due to the fact that we have a log-log regression, t should be calculated as follows: t = (b1 - 0.2)/Std. Error I base my assumption on the fact that ...
I have 36 variables and I want to fit simple MLP with one output. Do I need to select most descriptive variables? I think it should be better to feed MLP with all variables. I know that people are making feature selection before fitting ANN but why is it the case? Shouldn't MLP make feature selection in learning proces...
I could really use some help to determine what statistical test to use in my particular case here. I work with insects and I have two sets of individuals, a test set and a control set, on which I applied the same treatments. The data collected is a proportion type one: for each repetition in each treatment I get a ye...
I'm running a GAMM in R on count data with multiple explanatory variables, including both continuous variables with smoothers and factors, a random effect, and a Poisson distribution using the gamm4 package. After running the model, I have several explanatory variables that are signficant with p-values in the range of ...
I've looked here: How do I fit a set of data to a Pareto distribution in R? do-i-fit-a-set-of-data-to-a-pareto-distribution-in-r and I've checked out the poweRlaw library which is built for fitting data to power distributions. But all of these solutions focus on fitting data which is a single vector. I have data whi...
Let us consider the conventions on names used in the theoretical derivation of Metropolis-Hastings Monte Carlo as outlined here, for the sake of common nomenclature. What we are building is a step-by-step Markov Chain Monte Carlo (MCMC) algorithm to describe the evolution of a system in an initial state towards a fina...
What is the best approach to deal with a dataset that has unranked alternatives? For example, suppose that we have some unranked alternatives on the Games dataset: set.seed(62617) data("Game2", package = "mlogit") library(dplyr) library(mlogit) df1 <- Game2 %>% group_by(chid) %>% mutate(ch = ifelse(ch > sample(2:6,...
I want to know whether x2 is better than x1 in explaining y. My data frame looks like: study y x1 x2 Latitude Longitude 1 1.2 0.5 0.7 -4389124 12118426 1 1.8 1.2 1.5 -4389926 12110034 2 1.6 1.2 1.3 -4392865 12104837 I used glmmPQL(y ~ x1 + x2, random=~1|Stud...
I am trying to estimate a difference in difference model with 10 time periods (t=10) and many different plots of land, which are the unit of observation. Each plot of land which becomes treated at some period t (but never at t=1, so there is a pre-treatment time period) corresponds to a 'control' plot of land, which ne...
I've fit a dataset using the zeroinfl model with a poisson regression. I'm having trouble understanding why it is that when I use the predict function, all of the values are non-zero. I know that I have an excess of 0 counts, and that this model fits my data much better than the regular poisson regression. Can anyone e...
I have some exposure data, where a number samples were exposed to a specific chemical over time. The test was repeated at different concentrations. At regular intervals a group of samples was tested for chemical accumulation -- the test is destructive, so the same sample cannot be tested across the whole exposure time...
I'm still fundamentally confused how one should evaluate how well a GLM Poisson regression model fits the data. Here is an example, using R and the dataframe total_data, whereby food_type is a categorical variable. Call: ...
I am in search of a fixed intercept (through the origin) random slopes model. However, instead of additive errors, I want the SLOPE to be the source of random error. The problem is this: for a known volume of fluid, we are performing a regression between the volume and the surface area created when that volume of fl...
I have a dataset that has 6000 instances, each with 8 boolean values. mat = matrix(runif(6000*8) > 0.5, nrow=6000) colnames(mat) = LETTERS[1:8] mat = as.data.frame(mat) multidimensional_cont_table = table(mat) If I want to perform a exact fishers test on a 2 dimensional contingency table: fisher.test(table(mat[,1:2]))...
I need to find the expected value of $\frac{\sum x_i}{n-\sum x_i},\ i=1, 2, \ldots, n$, where the $x_i$'s are negative binomial $NB(1, \theta)$. Edit: More context about the problem: I looked for the MLE for $\theta$ using $x_i$'s, iid negative binomial variables to estimate $\theta$ which gave me $\frac{\sum x_i}{n}$...
Batch normalization is described in this paper as a normalization of the input to an activation function with scale and shift variables $\gamma$ and $\beta$. This paper mainly describes using the sigmoid activation function, which makes sense. However, it seems to me that feeding an input from the normalized distributi...
In a data set I have, all of the results of the residual vs. predicted values appear as parallel lines as pictured below. I interpret this according to my training as a violation of homoscedasticity which makes running a multiple regression untenable. Here is some context about the data sets, type of analysis used,...
Since in skip frame, the same action will be executed the next 4 frames. What should I do if during the the skip frame period, rewards are given? I mean in the game API, if skip frame is used, is the reward the accumulated reward during the skip frame period or only the reward at first frame during the skip frame perio...
I've built a (deep learning) model for a binary classification problem. For this problem I'm interested in sub-dividing my data set to maximize performance (as measured by precision) by essentially throwing out hard-to-predict samples. This would leave a smaller set of easier-to-predict samples with higher precision. H...
I am collecting stats results for 15 consecutive days for network lines and the outcome for a line could be: 1 No problem 2 Problem of type A 3 Problem of type B What is the best attack for this problem? Bear in mind that we have to reevaluate the probabilities for every line every day. A solution in terms of proba...
I really confuse about hazard function. Initially, I was thinking hazard function should be a proportion, which indicate if we know some one still alive at time t, so he/she got h(t) (eg. h(t)=20%) chance to die at time t. But through reading, I've been told hazard function is not a proportion, it is a hazard indicator...
I have a hierarchical multi-class classification system, that classifies records into about 500 different categories. I want to summarise the performance of the classifier in a simple way. A measure of accuracy on validation data is easy to implement: correctly coded/all coded. For each class, we can look at binary mea...
Via trial and error where I guess the number of statistical degrees of freedom, I have determined that the single variable linear regression "automatically" performed by Excel provides a p-value for the Y-axis-intercept that is identical to the one that can be calculated by "explicit" Excel functions as follows: 2*T.D...
I have a weekly data at Brand Level, Sub Segment level and Segment level (the other two are derived from rolling up the Brand level data). The data includes product characteristics, sales, marketing and external factors like weather. I want to model with "Market Share" as my dependent variable, and I've been asked to ...
I have a stats question, and not enough experience to even begin to know how to find the answer. It's a time series question relating two time series: A = anomolous conditions (-,0,+) --- continuous variable B = # of events --- discrete variable If I wanted to find out, quantitatively, a threshold of duration under wh...
I am trying to predict Solar Energy value at particular date.So,for this I am applying Artificial Neural Networks model.I am having problem in deciding activation function. Since sigmoid function gives me output 0-1 but I want output something like 256.33. So I thought to apply sigmoid for hidden layer and ReLu for out...
The pymc3 documentation says that the support of the mixture model $f(x|w, \theta) = \Sigma_{i=1}^{n}w_if_i(x|\theta_i)$ is $\cap_{i=1}support(f_i)$. I was thinking that it should be the union of all the mixture models' functions support, i.e. $\cup_{i=1}support(f_i)$, rather than the intersection? Am I right or have ...
I have ratings data. My ratings data contains some technical features like the Originator (Channel), the exact day & hour of the broadcast, duration of the program etc. and, obviously, the label, which is the rating. So the data looks like that: +---------+------------+-----------------+----------------+------------...
This basic formula of finding the Standard Error (Or Standard Deviation) of a Sampling Distribution, S.E= s/sqrt(n) Where s= std deviation of sample n=sample size Is this only for the Sampling Distributions of "Means" alone and of those that are Normally Distributed? Or does it apply to other point estimates, or othe...
There is a well-known modification of the initializing step of K-means, named K-means++. It chooses cluster centers with probability proportional to its squared distance from the point's closest existing cluster center. If the data are coming from a mixture distribution of normals, what is the distribution of the clust...
My data are 500 children learning a skill. About half of the children are male, and about half are female. These children are in one of 20 classrooms, each classroom has a different teacher. 12 of these 20 classrooms are at a private, the other 8 at a public institution. About half of these classrooms are for children ...
I want to find the optimal number of clusters (k) for some clustering algorithm (agglomerative hierarchical, if that matters). I want to evaluate the quality of clustering based on some metric for each possible cluster (k=1, 2, 3, ...). Since the number of possible k's can be as large as the number of data points, it i...
This happened to me in poker the other week. 2 players going head to head getting the same 2 non-pair cards (of different suits). E.g. a 4 and a 6 of any suit, where the other player gets a 4 and a 6 of any suit. I wish to calculate the probability of this occurring, but I'm failing. Using 'combination' and 'counting ...
What are methods that combines/regress on frequent low quality estimates (laden with bias+noise) with infrequent high quality estimates to yield estimates that have lower uncertainty?
I am looking at a Monte-Carlo engine with N simulations. This Monte-Carlo engine builds a distribution from which I would like to read the 99%-tile (called the VaR). The problem can be interpreted as Monte-Carlo VaR (value at risk). I use a confidence interval on this quantile obtained with 2 different methods: Asym...
I have a single-channel image and want to make it multichannel by corrupting it with various sources of noise. Let's say the end dimension is [height , width , number_of_corrupted_copies]. How can I apply a 2D convolution to this and get a single image, with 1 channel? What I want is to convolve in depth and take avera...
I wonder what is theoretically easier for Faster Rcnn to learn (by fine tuning after initialization on imageNet). If I have a dataset of 2000 bottles pictures 500 water bottles 500 soda bottles 500 wine bottles 500 beer bottles I have the choice to tag my bounding boxes as I prefer. Either tag all as "bottles", and hav...
Ok, so this may be a silly question, I know the literature recommends at length the simplex or interior point method to optimize a quantile regression problem. However I cannot figure out why a simple (stochastic or not) gradient descent isn't able to minimize the quantile loss which as a reminder looks like this. Of...
I am new in statistical studies and on this site and I came across the "zero-sum property" in my book regarding the mean. It seems to be straight forward but I still can't understand the notion of it. The only information it gives with the formula is the sum of the difference between each value of a variable $Y$, note...
I am interested whether there is a name for the below process / models, so I can read up on more of the statistical literature on this. Consider the following situation where I want to estimate the effect of X(t) on Y(t): Y(t)=b1*X(t)+error1(t) However, I am interested in the case where X(t)=b2*Y(t-1)+error2(t) such ...
I am not sure how to formulate the following model in mgcv: FactorA*s( Smooth ) + FactorB*s( Smooth ) This is FactorA + FactorB + FactorA:s( Smooth ) + FactorB:s( Smooth ) (i.e. this is not a three-way interaction, because FactorA:FactorB:Smooth is not present). My best guess is s( Smooth, by = FactorA ) + FactorA + ...
I am learning about the likelihood ratio test. Is the LRT applicable for non-Gaussian distributions too? Up to now I have only been able to find examples of the LRT for Gaussian and Gaussian mixture models.
A definition of orthogonality in the context of statistics is An experimental design is orthogonal if the effects of any factor balance out (sum to zero) across the effects of the other factors. Being a non-native speaker, I am not sure I understand that. With my favourite example of a latin square, how can I see t...
Dear forecast scientists, I'm using the R 'Forecast' package to generate batch forecasts. I have a question regarding some of the great auto-fit techniques offered by this package (E.g., auto.arima,ar,tbats,ets). The proposed workflow is as follows: Step 1: Define hold-out period (test data, basically) and then push t...
I have three independent variables (A, B, C) with two levels each (low, high) as well as a metric dependent variable X. I now want to test whether respondents that reported to be high on each of the three independent variables have -- on average -- higher values on X. In order to do so I created a new grouping variable...
Let $Z_1, Z_2,... Z_n \sim Ber(\theta)$ Let $X$ be the number of trials before the 1st success. So $X \sim NB(1,\theta)$ First, I was asked to find an MLE of $\theta$ based on $X$. I did this by going through the MLE procedure for a single rv $X$ which yielded my estimator $\frac{1}{x}$. Next, I was asked to find the M...
I have a data set which contains closing prices of a stock every day (total 1 year). Can i forecast that set like 1 or 2 year with using Markov methods? If yes, then how?
In this topic, you explain how you get to to point estimate of the last class. How to fit a glm with sum to zero constraints in R (no reference level) I wonder, how do you calculate the st error, because I have this problem and want to know something about the significance of the last level of my category. Thank you ...
I searched through questions on parametric and non-parametric test distinctions and it seems that the questions are all focused on a very specific test, data problem, or some technical distinction. I'm not interested in the issue of testing assumptions (don't; examine instead), or the issues of power or error rates. My...
In a previous question (Equivalent to Welch's t-test in GLS framework) it was asked whether nlme can reproduce Welch's t-test. Below is an abridged version of this older question: A standard independent samples t-test (where it is assumed that the samples being compared are drawn from populations with equal varianc...
I am planning on doing a Cox model analysis to study risk factors for a disease, retrospectively via medical record review. Will the model allow for mixing of binary , continuous, and/or ordinal variables in one equation? I am using Redcap, which allows you to create a data-form with a graphical user interface with mul...
I am trying to understand the following: do more customers purchase an item because it is discounted 'now' because they engaged with the product before (viewed it, added to a wishlist etc) vs just brought it because its on discount 'now'. Different products are discounted at different times, so I'm assuming a date rang...
I have spatial data set for 35 studies. In each study, there are variables y, x1, x2, latitude, and longitude. I want to know whether adding x2 to model y~x1 will improve the simple regression model y~x1. I use m_study1 = gls(y ~ x1 + x2, data=study1, correlation=corExp(form=~Lat+Long)) for each study. I also use m_stu...
I am fitting models to stock price time series. The interval of each series is 40-minutes (relatively small time frames, in the context of stocks). I will use ARIMA or GARCH in R. Purpose of project is detecting a structural change point in the data (no forecasting). Is is defensible to claim that as the time interv...
My question is similar to this other one, but I would like to know if it is possible to correct the p-values for multiple testing (and how). I have a large 42 gene expression values which are correlated with 25 clinical variables. So I end with a matrix of 42x25 correlations coefficients and p-values. It is possible ...
May I proceed with a repeated measure one way ANOVA if my subjects (individuals) doesn´t have the same number of measures? Imagine a clinical trial with 30 individuals, with n periods of sampling, but some individuals missed some of the sampling periods. Several packages in R are showing errors based on the NA values.
I would like to fit a lasso model with hierarchical interactions, but only on a subset of all possible interactions. The hierNet package in R allows the user to provide a custom interaction matrix via the zz parameter, but when I create the interaction matrix with a subset of all interactions (e.g., only X1:X2 and X3:X...
Consider an MA(1) process: $$ Y_t = a + a_1u_t + a_2u_{t-1} $$ where $a$ is some constant, and $u_t$ is an error term. How do we know know the error terms? They must come from some previous regression, right? P.S. I've read What can be an intuitive understanding of the error term of a moving average time series? but I...
Does this lead to overfitting? Can a really good neural network be created for classification with like a hundred hidden layers?
In the recent WaveNet paper, the authors refer to their model as having stacked layers of dilated convolutions. They also produce the following charts, explaining the difference between 'regular' convolutions and dilated convolutions. The regular convolutions looks like This is a convolution with a filter size of 2 an...
I have 7 DVs that I want to conduct the same multiple regression analysis on so I thought multivariate multiple regression (MMR) would be the way to go. However, one of the DVs is so skewed and kurtotic that no transformation I have tried can make it both normal and non-kurtotic and when I include it in the analysis, ...
as I've been learning about tree-based classification algorithms, I've learned the single tree algorithms are 'greedy', meaning that they'll minimize entropy at every stage. This means that sometimes these algorithms will fail to minimize total entropy because they are only looking one step ahead. Here's an example: I...
I have a network of the following form: $$ [B:{\rm Binary}]\rightarrow [C:{\rm Binary}]\rightarrow [G:{\rm Gaussian}] $$ $[]$ is a node and the arrows show dependency. In this situation, the Gaussian node is a mixture of two Gaussian's since it has a binary parent. I have some training data and use it to learn the para...
Randomization inference failure? If we want to test the sharp null hypothesis rather than the weak null hypothesis we can use randomization inference (RI). Definition $H_{0,sharp}$: Sharp null hypothesis of no effect The treatment effect is zero for all subjects. Formally, $Y_i(1) = Y_i(0)$ for all $i$. Definition $H_...
I'm after a bit of advice. I've fitted some multi-level models with income as the outcome variable and a range of covariates. I'm interested in the coefficients of the main independent variable/covariate (ethnic group) when I enter various other covariates into the model (so how does income change for each ethnic group...
I am reading about decision errors in hypothesis testing. My question is why is a "Type-II error" considered to be an error at all? From what I understand, it arises when we fail to reject a false null hypothesis. When we fail to reject null hypothesis, it simply means that we do not have strong evidence to reject it. ...
I searched the internet to find out about the effects of outliers on k-means clustering, but could not find any useful source. Does it cause bad clusters to be formed? If so, how? (Please also provide a simple example with data such as a list of integers so that my doubt can be clarified.)
A general nonlinear mixed effect model for the $j$th observation on the $i$th individual is $y_{ij} = f(\phi_i, x_{ij}) + e_{ij}$ $\phi_i = A_i\beta + B_ib_i$, where $b_i \sim N(0, \sigma^2D) $ I know that the random effects $b_i$ are normal with mean 0. Here, $\beta$ is a p-vector of fixed population parameters. What...
I have the following problem. I want to find the expression for the autocorrelation of the following random variable or MA(1) process. $X_n = \epsilon_n - \epsilon_{n-1}$ Where $\epsilon$ is a stationary correlated noise with finite mean $\mu_\epsilon$ and standard deviation $\sigma_\epsilon$. So the mean and variance ...
I am working on a problem where customers make choices. A traditional setting for problem for example would be: Model the Travel by air, bus, car. Each choice is made based on several variables like cost, wait time, travel duration etc. In this case, the data may look like: Discrete choice models; estimating probabil...
I'm using repeated measures ANOVA with one independent within-subject variable and six dependent variables. I want to control the order of the intervention (categorical variable with two levels: 1,2). In order to do that, do I just need to put the order variable in the "covariate" box? Do I need to transform the variab...
I'm performing latent class modelling using poLCA package in R. Below is an example from the documentation. How to interpret G^2? And how to assess whether the assumption of conditional independence holds between each two of the manifest variables A, B, C and D? > library(poLCA) > data(values) > f <- cbind(A,B,C,D)~1...
Assume you’re dealing with an imbalanced dataset. I know I can do things like upsampling, downsampling, and synthetic sampling to build out my train and test split. My question is: if I’m using a random forest classifier, are there any implementations in R or Python that would force each of the randomly generated trees...
I have a dataset with 3726 observations. The values of '1' in the response variable is extremely rare: I have five 1's and 3721 0's. I used Firth's logistic regression to address this rarity (using logistf() and brglm() in R). I used 11 explanatory variables (mostly categorical). The results of Wald test show many of t...