instruction
stringlengths
9
38.7k
lets say I have a set of values (R-code below for creating a vector) x <- c(5.0, 4.8, 4.3, 4.4, 4.6, 4.8, 4.6, 4.5, 4.2, 4.1, 4.6, 4.2, 4.2, 4.3, 4.2, 4.4, 4.8, 4.0, 4.0, 4.0, 4.1, 4.3, 4.1) I want to calculate most likely value with a range. or in other words, an expected value for x. I think in normally distributed...
I have classified (label encoding) independent variables. To calculate VIF, I converted them to dummy variables. When I calculate VIF for dummy variables, there are VIF values for each class of an independent variable. If I calculate the average of VIF values of all classes of an independent variable, can I say it is t...
I am learning the code of minGPT. In the function, the author excluded layernorm and embedding layer from experiencing weight decay and I want to know the reasons. Besides, what about batchnorm?
Apologies if this is a very basic question - I'm still definitely a beginner when it comes to statistical tests. I understand that chi-square tests are conducted to determine the relationship between two categorical variables or to determine how well a categorical outcome fits a discrete probability distribution. Howev...
I have recently come across articles suggesting we should avoid conducting SEM when variables are highly correlated. I have a model in which X1 and X2 predicts Y through M1 and M2. Which gives me the following indirect path: X1 -> M1 -> Y ; X1 -> M2 -> Y ; X2 -> M1 -> Y ; X2 -> M2 -> Y. Can I test this model if: X1 an...
I’m currently working on forecasting yield curve evolution over time using a state space model where the transition dynamics are described using a vector autoregressive model of order 1. This model assumes normally distributed structural shocks, as such this assumption drives the dispersion of outcomes to follow a norm...
I am training a 'specialist network' to reconstruct images of an object using a Variational Autoencoder (VAE). The training set (~15000 images) is of a single object in multiple poses. I also want this network to classify the object identity as being either the object it was trained on (class 1) VS anything else (class...
I have a dataset that I am not sure how to analyze, or at least I am not sure of the terms to read up on. I have 25 groups. Each group belongs to one of 3 locations. Each group consists of multiple individuals, and every individual has 3 categorical predictor values. Importantly, the number of individuals in each group...
What are the reason/s to use a nonparametric normality test (e.gr., Shapiro-Wilk, Jarque-Bera) instead of generic, parametric goodness-of-fit tests (good for any distribution including but not limited to the normal, with parameters, like $\chi^2$ or Kolmogorov-Smirnov) for some data we want to check for normality?
I am working on a data science project on an industrial machine. This machine has two heating infrastructures. (fuel and electricity). It uses these two heatings at the same time, and I am trying to estimate the temperature value that occurs in the thermocouple as a result of this heating. However, this heating proc...
A friend and I were looking at the following graphs and discussing their possible future evolution: The blue graph is inflation while the orange one is interest rate. Neither of us is particularly well versed in statistics (or economics..) and we were wondering which mathematical/statistical methods are at our disposa...
I have a simulation that returns "yes" or "no" for each iteration, and I measure the average number of "hits" over many iterations to estimate the likelihood of "yes" occurring. I'd like to be able to say how accurate/trustworthy that estimate of the likelihood is, though. Monte Carlo integration explains a similar ba...
The idea of this project was to use a Machine Learning model to find the best variables to include in a decision tree algorithm. After evaluating with caret a number of different models I found the one with the best accuracy (0.88) with my database. Then, I selected the most important variables used (Importance > 50%) ...
I want to test for individual-level side preference of a behaviour during an experiment, and found a way to do this using a chi-square test that uses the number of right (or left) turns out of the ten trials of an individual and compares the observed variance in the data to the expected variance, to see if the data has...
e.g. 3 white balls and 7 black balls. Prove that the probability to draw two different coloured balls is 0.42 I get the intuition, but can't formally explain the probability.
Since the probability of a continuous variable $X$ assume any particular value is always zero, how can any sample be obtained from such distribution? How can we obtain, e.g., the set of observations $\{0.3, 1.1, -0.5, -0.6, 0.9\}$ from a normal distribution, when $P(X = 0.3) = P(X = 1.1) = \ldots = 0$? Is this happenin...
I recently got comments back from a review who suggested I use a gam to compare two time series to see what the trends are and if the two time series are different from one another. I'm am trying to figure out how this would work, as combining two time series seems misleading. Here is some made up example data: years =...
I'm conducting a three-level meta-analysis on correlations using the {metafor} package on R. I'm quite a newbie when it comes to three-level meta-analyses, so I have two doubts. 1) From each study, I collected effects sizes that indicate: correlations between variable A and variable B (A-B) correlations between variab...
I am using ICCs to test the inter- and intra-rater reliability for a body condition scoring system. I have two different groups of evaluators: specialists and students. I would like to evaluate the intra-rater reliability when the raters are asked to score the same photo two different times, to insure that the rater ca...
To add a little more context, I am working with a dataset from which I want to predict the population-normalized count of emergency department visits on county level, with 50+ independent variables. The dataset itself contains raw counts of the ED visits, as well as the county populations, so I have a bit of freedom in...
Is interpreting log-log regression with log(1+x) as independent variable the same as having log(x) as independent variable? 1% increase in x results in beta% change in y? What is x has both negative and positive values with the absolute value less than 1 so that 1+x are all positive?
I am trying to examine if the interval between recurrent suicide episodes becomes shorter over the course of repeated incidents. My data is in long format with each participant occupying multiple rows based on the number of attempts they made. Then for time-variable, I have time between 1st and 2nd attempt, the time be...
If I have independent cts variables [x1, x2, x3] and categorical variable [x4] which can be categorized into [x4_1, x4_2] for dummy variable 0/1 If I fit linear regression in sklearn it will give me something like this: y = intercept + a*x1 + b*x2 + c*x3 + d*x4_1 + e_x4_2 Supposed i want to add an interaction term lik...
I have a function $\lambda(t)$ which returns the instant probability of dying at a time $t$. I'd like to compute the function $F(t)$ which returns the probability of being dead at a certain time $t$. Using some reliability theory, I have obtained the following relation: $$ F(t) = 1-e^{- \int_{0}^{t} \lambda(u) \,du } $...
Suppose I want to understand the influence of gender $X$ on wage $Y$, so I use the linear regression model $$ Y=\beta X + \varepsilon $$ We might want to be conscious of omitted variable bias, so we include a control variable $Z$, for example, college major choice. Now we have $$ Y = \beta X + \gamma Z + \varepsilon $$...
I would like to use a multinomial logistic regression to get win probabilities for each of the 5 horses that participate in any given race using each horses previous average speed. RACE_ID H1_SPEED H2_SPEED H3_SPEED H4_SPEED H5_SPEED WINNING_HORSE 1 40.482081 44.199627 42.034929 39.00...
TLDR: Some of my larger dataset has two levels, while some has three levels. Is it appropriate to test everything using one-way ANOVAs or should I do some as t-tests and some as ANOVAs (Welch's for both)? I am comparing results from three different methods (M1, M2, M3) used for measuring a functional property of food. ...
To estimate the Value-at-Risk of a two-dimensional portfolio (d=2) by the archimedean copula approach, the process can be for example : x<-mvdc(archmCopula(family="gumbel",param=3),c("norm", "norm"),list(list(mean=0.00034,sd=0.0147),list(mean=0.00021,sd=0.0114))) set.seed(123) xy.sim <- rMvdc(100,x) ### generate the ra...
Suppose $x \sim \mathcal N(\mu_x,\sigma_x^2)$ and $y \sim \mathcal N(\mu_y,\sigma_y^2)$ are random variables, and suppose $\mu_y$ is large compared to $\sigma_y$. I want to know about $$ z=\frac{x}{y^2} $$ in particular, its mean and variance. I'm hoping that since $\mu_y/\sigma_y$ is large (and so unlikely to be 0), t...
I am working on a homework question and got stumped on this question. Suppose researchers perform a large-sample test of a population proportion where the null hypothesis is that the population proportion is 0.4, and the alternative hypothesis is that the population proportion is not equal to 0.4 (two-sided). They obt...
Suppose $X$ is a normally distributed random variable with unknown mean $\theta$ and known variance $\sigma_{X}^{2}$. Suppose that $Y_{1}, \ldots, Y_{n}$ are random variables that, conditioned on $X$, are independent normally distributed random variables with mean $X$ and unknown variance $\sigma_{Y}^{2}$. We are given...
For my research, I am using the following model, which tries to determine whether economic uncertainty (as measured by some proxies) influences fund inflows and outflows: Net fund flows (i.e. money inflows or outflows) = β1 + β2*economicuncertainty + β3laggedfundreturn + β4fundage + β5fundsize + β6fundrisk + error term...
I am working with a dataset that includes a binary target variable (0 or 1). I have built a model with the gamlssMX() function included on the "gamlss.mx" package to explain a continuous target variable as a function of continuous and qualitative features, alongside with the target one. My goal is to find out if this p...
When I fit a mediation model using mediation::mediate, like this: library(mediation) set.seed(30) df <- data.frame(x = runif(100), x2 = runif(100), y = runif(100), m = runif(100), p_id = sample(1:5, 100, replace = TRUE), item = sample(LETTERS, 100...
$\textbf{Description of Dataset:}$ I've got a dataset where 3 mice per cage are fed a certain diet. There are 3 diets and a control diet (4 diets all up), and 3 cages tied to each diet, so 36 observations. Their microbial data (or microbes) are recorded and there are 42 variables/columns of data. Since I'm no biology s...
Let $X=R^{2}$. Let $u=\left(\frac{\sqrt{3}}{2},-\frac{1}{2}\right),\ w=\left(-\frac{\sqrt{3}}{2},-\frac{1}{2}\right),\ v=\left(0,1\right)$ and $C=H=\left\{h\left(r\right)=\left\{\left(x_{1},x_{2\ }\right)\ |\left(x_{1},x_{2\ }\right)\cdot u\le4,\ \left(x_{1},x_{2\ }\right)\cdot w\le r,\ \left(x_{1},x_{2\ }\right)\c...
I already referred the posts here but this question is different. I don't wish to use categorical encoding. details given below I have a dataset of 3000 unique customers purchase data. The dataset size is 380276. I am working on a binary classification. The purchase data includes info on the below items a) Name of the ...
I have developed two machine learning models which I evaluated with two different datasets. My initial hypothesis was that their performance would be higher in dataset 2 as compared to dataset 1. After calculating the metrics (Accuracy, MCC, Balanced Accuracy, Sensitivity, Specificity, PPV, NPV, and a few others) I not...
Are endogenous variables stochastic or non-stochastic? If they are stochastic,can we say they are uncorrelated or correlated with the error term? I read this in Basic Econometrics by Gujarati (5th edition) page 594, section 16.3, "It is assumed that the explanatory variables are non-stochastic. If they are stochastic, ...
I want to test if a few test subjects show improvement over days in a test. I have 2 groups, 1 that did some training before the test and 1 that did not. My test lasted three days, with 10 trials a day, and now I wanted to see if my test subjects showed improvement over days. For this i thought i cannot use a regular C...
I'm a new user of linear mixed models and I'm experiencing some troubles with that. I have a dataset with 680000 measures of milk production from 2017 to 2020, from a population of almost 37000 cows in 175 farms. I'm just trying to delucidate if there is an interaction between the thermal stress of the animals with the...
library(coxphf) library(survival) im <- data.frame(X1 <- c(0.482, 0.283, 0.806, 0.510, 0.828, 0.675, 0.430, 0.743, 0.285, 0.954, 0.323, 0.349, 0.338, 0.818, 0.688), X2 <- c(0.750, 0.690, 0.604, 0.566, 0.770, 0.022, 0.475, 0.052, 0.259, 0.604, 0.946, 0....
I have a data set (time-series) with the shape {$2190$x$63$}. There are 63 variables, 2 products ($A$ and $B$) worth of 3 years of daily data, thus I have $1095$ observations per product and total of $2190$ observations. Important note: Product $A$ has spikes every 30th of December. I've built a lightgbm model which ov...
I really am at a loss here. I have several tree-based binary classification models trained on a balanced dataset of ~300 samples and ~15000 features. The models have AUROC around 0.8. I want to retrieve feature importances. I have used the permutation_importance from sklearn, and another function self-made, all return ...
Assuming I have proportions for clicks to impressions of 0.10 for p1 and 0.05 for p2. This is equivalent to 10% and 5% click through rate. One way is to say that p1 is 5% higher but can we even say that p1 is 100% more than p2 ? If so what is the best possible way to word this to not confuse the reader if only the delt...
I originally posted this to stackoverflow, and was advised by I_O that the question would be appreciated more here. I am not sure how to reformat this to be appropriate here, so I am copying it over for now: Before I get into the problem, I want to acknowledge that I have seen that there is a previous question that has...
For my PhD I started a three-arm, clinical trial which due to the pandemic I have to stop after having recruited 69 participants instead of 150 originally calculated to give a power of 80%. The trial will continue until completion, but without me and for my PhD thesis I have to analyse the results I have so far. Additi...
given this outcome of the dice {2, 3, 4, 6, 6}. You decide to re-roll both sixes. What is the probability that you roll either a small straight (four dice are in a row) or a large straight (all five dice are in a row)?
Two models in R: mod_a = lm(height ~ age) mod_b = lm(height ~ age + sex) Those models have different degrees of freedom. Once they are applied in a separate set, do those degrees of freedom from the derivation carry over? E.g., testing the models in a second, separate set of test data might look like this: m0 <- lm(he...
I have the following CEF: $$ y_{i}=\beta_{1} d_{i}+\beta_{2}\left(1-d_{i}\right)+e_{i} $$ And the following assumptions: $$ d_{i} \perp\left(y_{i}(0), y_{i}(1)\right) $$ $$ \mathrm{E}\left[e_{i} \mid d_{i}\right]=0 $$ I would like to get the asymptotic distribution of the following t-test: $$ \mathrm{H}_{0}: \beta_{1}-...
I'm running a couple of fixed effect regressions with the leads of my independent variable. My outcome variable is the number of people absent in a set of factories (unit) and my independent variable is the cumulative number of employees who attended the health camps conducted in those factories. I created three leads ...
As the title says, is $ p(a|b) \propto p(b|a) $ if $ p(a) $ is uniform? Why?
I recently heard an interesting interpretation of Survival Models : A "standard" Survival Analysis problem (e.g. where at the end of the study, observations can either be "Censored" or experience the "Event") can correspond to a Markov Chain with 3 States (Healthy = First State, Event = Second State, Censored = Third S...
everyone. I'm a political sciences undergrad student working on a study of the activity of the Upper Chambers in the UK and other former British colonies. I came across a 2008 study by Russell and Sciara called 'The policy impact of defeats in the House of Lords' (https://journals.sagepub.com/doi/full/10.1111/j.1467-85...
What's the difference between B and Exp(B) in GLM? And is it more correct to replace B with β? I don't need an extremely detailed answer about the theory behind it.
I am currently self-learning hypothesis testing and am looking at the independent samples t-test whose test statistic involves the pooled sample variance (https://libguides.library.kent.edu/spss/independentttest), $$ S_p^2 = \frac{(n_1 - 1)S^2_1+(n_2-1)S_2^2}{n_1+n_2-2},$$ where $n_1, n_2$ are the sample sizes of the t...
Let $c > 0$ and \begin{equation} L(\theta,a)=\left\{ \begin{array}{@{}ll@{}} c|\theta-a|, & \text{if}\ \theta < a \\ |\theta-a|, & \text{if}\ \theta \ge a \quad. \end{array}\right. \end{equation} We assume here that $\theta$ has a continuous distribution. How do I show that the Bayes estimator of $\theta$ ...
I was been told that failing to account for repeated measures can cause more type 1 errors, since sample sizes are over-counted. However, I simulated some data under mix effect model while ignore the random effects, the p-value distribution looks skewed to 1, which is opposite to what I expected. Here is how I set up t...
I would like to model a problem using IRT, but my response is continuous and possibly infinite (e.g. score of a game). I'm aware of Samejima's and Wang and Zeng's approach, but both attempts to bound the continuous response to [0,1]. In both models, the max is assumed to be known, but in my case, the response is the po...
I have 10 variables in a dataset (X1, X2, .., X10) plus the binary target variable (Y). When I train a model with xgboost.sklearn.XGBClassifier() and then plot the feature importances with xgboost.plot_importance(my_model, importance_type='gain), I get that X1 variable is the most important (~70%) for this first model....
So, I have two multivariable logistic regressions for the same sample. They differ in one independent variable: Model A has a dummy variable for membership in the top 50% (compared to the bottom 50%) of X, and Model B had a DV for membership in the top 25% (compared to the bottom 75%). The other control variables are t...
I want to train a neural network with $\mathbb{R}^{d\times d}$ symmetric and positive definit matrix output. Are there rules which loss function ( in dependence of the predicted matrix $A_{\text{pred}}$ and $A_{\text{true}}$ ) to choose? I guess MSE on the flattened matrices equales Frobenius norm of the difference $\|...
Suppose $X$ and $Y$ are two discrete random variable take values on $\mathcal{X}$ and $\mathcal{Y}$ with their iid observation $\{ X_i\}_{i = 1}^n$ and $\{ Y_i\}_{i = 1}^n$. If both $\mathcal{X}$ and $\mathcal{Y}$ are finite, we can just use chi-square test to testing whether $X \perp Y$, see Pearson's chi-squared test...
I'm trying to compare the CCS class between two groups, which is a tool to assess chest pain severity graded by physicians on a scale of 1-4 with a higher number indicating greater severity.I was given the following code to generate a stripchart but I don't understand what it means. In particular I don't know why a t-t...
Normalization in machine learning is the process of translating data into the range 0 -> 1 or -1 -> 1. What if the values goes above 1 or below -1. What does that mean? Is it again an outlier? If this scenario happens when normalizing the labels, will it help to improve the accuracy of the prediction?
I have the following formula. $$\int_{0}^{\infty} x^{\frac{n-1}{2}-1} (a+x)^{\frac{1}{2} \frac{-n}{2} -v} dx.$$ The quantities $d1 ,d2$ appearing in the pdf of the F distribution are the following. $$d1=n-1,\ d2=2v.$$ My problem is the term $a$ (which is a constant positive hyperparameter). I want to go from $(a+x)^{\f...
Let's say we are wanting to test the conversion rate for multiple landing pages. To be safe, we must allocate 50% of our traffic to our current "champion" page. We then have 8 "challenger" pages we'd like to test. Normally, for a simple comparison between two web pages, one might use an A/B test. For multiple pages, si...
I have data of a function $f(t)$, where I always have just a single data point per $t$. It is known that the data is affected by noise, where the noise itself is also a function of $t$. Now I want to estimate the standard deviation of the noise for different $t$. What methods could I use to do this?
I have a few generalized linear mixed model questions. I have an experiment that asked "is there a differential response between asexuals and sexuals by population density?". I am performing a generalized linear model with gamma distribution (my data is right-skewed). My model has fixed effects: Status (Invasive vs Na...
I'm having trouble identifying the differences between the two. Are they equivalent? Here's the definitions from http://www.stat.yale.edu/~yw562/teaching/itlectures.pdf
Would it be methodologically acceptable to export all the different decision trees constructed by an XGBoost model and test them singularly as a potential risk classification system?
Background The Henderson-Hasselbalch equation is given by $$\text{pH} = \text{pK}_{\text{a}} + \log_{10} \left( \frac{[\text{Base}]}{[\text{Acid}]} \right)$$ where $\text{pH} = -\log [\text{H}^+]$. Solving for the $\text{pK}_{\text{a}}$ we obtain the equality $$\text{pK}_{\text{a}} = \text{pH} - \log_{10} \left( \frac{...
I have used the R package eventglm to construct pseudo observations, and want to estimate the relative risk and the risk difference for exposure with age adjustment. First, I use the identity link function, and calculate the risk difference and the risk in each group. This gives me 3 values, let’s say Risk group 1: 0.2...
While analyzing the data for my bachelor thesis, I got some results that I just don't know how to make sense of. I've been trying to predict a binary variable (yes/no choice in a questionnaire) from a variable (dark personality factor) that can be split up into 4 subcomponents (callousness, vindictiveness, deceitfulnes...
In a paper published in Ebiomedicine (part of the Lancet family journals), the researchers built a logistic model including a variety of predictors and then reported both "univariate" regressions (model with only one predictor) and "multivariate" regressions (logit model with all predictors), see the following table : ...
Why is it that when dealing with continuous time observations of a diffusion process $(X_t)_{t \in[0,T]}$, we say that the volatility $\sigma^2$ is "perfectly identifiable" and just usually assume it to be known. I am not quite sure why this is this case, and why is this not the case for the drift function $b$ as well?...
I've picked up this project half way through, and I'm working through the last guy's code, so please bear with me. So the original data consists of 500+ points in 150 dimensions, and I want to calculate the distance between pairs of points. I also want to calculate the distance from a 'neutral' point, that is an array ...
Here is the setup for an m-class classification neural network. $$z_j=\sigma(\alpha_0j+\alpha_j^T x), (j=1,...,k)$$ $$t=\beta_0+\Sigma^k_{j=1}\beta_j z_j)=\beta_0+\beta^Tx, (l=1,...,m)$$ $$ y=f(x)=g(t), (l=1,...,m)$$ And here is the baseline category logit model for nominal responses: $$log (\pi_j(x)/ \pi_k(x))=x^T\be...
How exactly adjustment for baseline helps to minimize the bias and increase effectiveness in randomized trials? I heard about: it minimizes the unexplained variance - but how? it minimizes the differences at baseline - how? Randomization makes any baseline differences in RCTs just statistical garbage, even if observed...
I am trying to make simulation, and I have some events that happened durring a day. Some times it s for example few events durring half hour for one day, and sometimes we have event, and then few hours nothihg happened, and then other events and so on. My data set collect data in period of 5 months and I am using R Stu...
I have used the LOOCV to validate my model. As we know, the LOOCV method is a special case of cross-validation where the number of folds equals the number of instances in the data set. Thus, the learning algorithm is applied once for each instance, using all other instances as a training set and using the selected inst...
I need to do a multiple hierarchical regression analysis for my master thesis. my continues independent variable is: online exposure to cannabis use. I used five items/questions/variables to compute a total score. However, the five variables have different scales (4 answer questions and 6 answer questions) thus, i need...
I am trying to find the parameter $\hat\omega = min_{\omega}\Big(-log|\omega| + tr(S\omega) + \sum_{i,j}\lambda|\omega_{ij}|\Big)$ This is to regularize the precision matrix $\omega$ for the GLasso. I have been studying the Lasso for regression and that makes sense, but I have no idea and cannot find how to find $\hat...
I already referred these posts here and here. Currently, I am working on customer segmentation using their purchase data. So, my data has below info for each customer Based on the above linked posts I see that for clustering, we have to scale the variables if they are in different units etc. But if I scale/normalize a...
I have some questions about concurvity in a GAM using time series weather and mortality data (for details and model output see below). I'd be really appreciative of some help as most questions about concurvity in GAMs seem to remain unanswered on CV. I have run the concurvity function which tells me there is high conc...
I am reviewing old exercise solutions and the following info is given: Assume that the conjugate prior for θ (as a special case of the gamma distribution) is following the exponential distribution with E[θ] = 2. When finding the posterior they've used a prior proportional to $\exp(-\frac{1}{2} \theta)$. How does one co...
I remember reading about this. Say there's a basket of 60% red balls and 40% black balls. And many statistical laymen if say given a reward for a correct guess -- they will guess red and black and etc. Although obviously the maximum "expected value" move is to guess 100% red every time. Is there a name for this particu...
In my project I have to study the vigilance behaviour of birds, and I need to determine if adults start escaping from an approaching human more often than chicks. So I have the frequencies of adults starting the behaviour, and the frequency of chicks starting the behaviour. What type of statistical test would be most a...
I hope you can help guide me in the right direction! Any advice is appreciated! Situation I'm currently analyzing the effect of a price increase from a retailer on a few 100 products. I'm interested in understanding the effect of the price increase on volume, sales value, and margin. The data I have available is weekly...
When we are dealing with Mean Square Error (MSE) loss function in optimization problems, we often add $L_1$ or $L_2$ penalty terms (or a combination of both) to the MSE loss function while training. When used with MSE loss, these regularisation terms can promote sparsity in the weights or control the magnitude of the w...
I am having troubles coming up with the proper statistical model and R code for a forestry trial we did several years ago. We looked at whether wood piles left over in clear cuts were beneficial for biodiversity. I include a schematic of the design: We looked at wood piles left over in forest stands 2,4,and 6 years pos...
I have a random forest with let's say 256 trees and say 2000 features. from data processing to actual prediction, it takes several hundred microseconds, I was wondering if there were any ways I could speed this up? Is there anything extra I can do if I find that most of these 2000 features, bar a handful stay the same?...
I have a survival dataset which I’ve experimented with to create several Cox PH models using different techniques (lasso, forward selection, backwards elimination etc), however no matter which technique I use, I can’t get a concordance index above 0.57. The dataset consists of a little over 12,000 rows with 88 variable...
I am looking at equity returns and they are not stationary at level. So i take the 1st difference to make them stationary. My GARCH(1,1) model is modeled using an AR(1) parsimonious model. But, since I've taken the first difference in the equity return series, does that indicate it's an ARIMA(1,1,0) model rather than a...
I have a dataset of images with very different sizes (ranging from 100X100 pixels to 5000X1000 pixels) and aspect ratios. I want to use neural networks for dealing with this problem. Is there any standard way to deal with datasets with this characteristics? I know that a common practice is to resize the image and perfo...
Let's say I have a region that is divided into 3 subregions. In each subregion, I run ~90-110 randomly allocated surveys asking a binary question. I want to know if the way that I am estimating the region's proportion of people that answered "yes" is valid. This is my approach: Context: We have a region composed of su...
I saw below formula to derive the variance calculation for $Var(\widehat{\delta_{cdx+}})$. I am wondering what theory has been applied in the second and third rows.
I have a question. Do the following assumptions in logistic regression Linearity between the log-odds and the continuous covariates Non multicollinearity Absence of outliers need to be satisfied in order to apply AIC or LRT criteria for variable selection? As far as I know, those assumptions must be satisfied if y...
I want to make sure I'm running these proportion tests correctly to show that there are differences in outcomes for three groups. I am working off of this guide, except I have an additional group. Does the proportional test from this code work?: crosstab(hcad_acs$type_flag, (hcad_acs$distance < 50), plot=FALSE, prop.r=...
I fitted a Poisson model using svyglm in R. The null and residual deviances from the svyglm model are as expected. For the degrees of freedom however, I get confusing results. With a sample size of n=4526 and 7 parameters in the model (including the intercept), I expected a null degrees of freedom of 4526-1 = 4525, and...