instruction
stringlengths
9
38.7k
Ranger documentation states that if the importance mode is set to 'Impurity', then the estimated measure is '...the variance of the responses for regression..." Could someone expand on this or provide a relevant publication? As a starting point for an answer, I'm assuming it is something like the the sum of all the dif...
So I'm running into an issue I can illustrate as follows. Lets say you have a shipment of fruit, of various kinds. You want to compare across shipments. You, for some reason, decide to Z-score these shipments. In the first shipment, you have 10 tons of Apples and 10 tons of Oranges. In the second shipment, you have 10 ...
Suppose you sample N people with unequal probabilities from some superpopulation. Your sample contains W_sample the probability with which the person was sampled from the superpopulation and their outcome Y. For our purposes, let's assume W in the superpopulation is a draw from a dirichlet distribution, so W is a proba...
Let's say I have a range of formulations, and each formulation contains a different starting rate of water "x", and I want to test how fast the formula dries out over time (ie. loss of water over time), and put this on a plot. Let's suppose the starting rate of x for each formulation is known, but there is no control f...
Odds ratio, as the word itself demonstrates, refers the ratio of odds. Hence, we need 2 events in computing odds ratio. But in simple logistic regression, given that we are interested in estimating is the relative likelihood of event A over the event of not A, why should we call it odds “ratio” not just “odds”? Perhap...
Some papers I see take the uncertainty estimation of a prediction as simply its softmax/sigmoid output, whereas some papers will use techniques such as MC Dropout and calculate the variance across the predictions. The softmax function is typically used in machine learning models to convert a set of input values, often ...
In Mann-Kendall test there are 3 values, p-value, Z-value and Kendalls Tau value. What I want to know is what the difference in concept between Z and Kendalls Tau, as I read that both of them indicate the positive or negative relation between the variable?
I created a CausalForest (from econml) model to estimate non-binary outcomes (similar to daily sales amount) given covariates and a binary treatment. I evaluate the model using the following procedure: use the model, denoted $\tau(X, w)$, to estimate the effects for my dataset; rank and bin the estimated effects of th...
I am trying to fit a RJAGS zero-inflated negative binomial model. The data I am using has 451 observation and only 12 of them have values different to 0, which means that 97% of my observations are 0. My objective is obtaining the the posterior distribution of the probability of the data belonging to the non-structural...
I am trying to generate evenly distributed particles in an $n$-dimensional flat torus or a periodic hypercube. I am not sure if any of this approaches suffices. Can you suggest alternative methods for generating evenly distributed particles in this space or how to correct any of these? First approach: Sampling $\varphi...
Data health for PLS modeling Hi, I am working on a manufacturing data that is fairly new (only has 60 batches produced so far) dataset size is 60 observations of 150 variables and I am building a PLS model to predict the Final Product quantity in Kgs that meets minimum specifications. After removing intermediate produc...
I have a business use case around adverse news detection. We have set-up an experiment where we compare the human vs a bot and we need to test it. The experiment results will come out something like this: Case #, Human (0,1), Bot(0,1) 0 - No adverse news detected 1- Adverse news detected Some quirks about our case: H0...
Suppose I'm running a regression that looks something like $$\log(price)=\beta_0 + \beta_1\log(population)+\beta_2\log(population)^2.$$ I have found the residuals, grouped them according to the number of sellers in the observation's town, and calculated the mean residual for each group. Suppose the residuals are 0.05 f...
Screenshot from page 80 of the textbook "Introduction to Linear Regression Analysis" fifth edition by Douglas C. Montgomery Let $X$ be $n \times p$, $y$ and $\hat{y}$ be $n \times 1,$ and $\hat{\beta}$ be $p \times 1$ matrix in the multiple linear regression model. From the matrix calculation, we can easily find $\hat...
I am using ANOVA and T-Test to compare wheat grain characteristics between states, agroecological zones, soils, etc. Most of this data is grain mineral concentrations but some of it is ratios describing grain mineral bioavailability. For example, a phosphorus fraction expressed as a percentage of total phosphorus. My q...
I have a confusion related to the likelihood function. I suppose that users waiting time $W$ follows an Exp distribution with the rate $\lambda$, and the prior of $\lambda$ follows Gamma($\alpha$, $\beta$). We have the information that after the user has waited for 5 min, he still needs to wait for another 10min. But, ...
I have carried out a designed agricultural experiment with two treatments and recorded the effect on the abundance of a pest insect on three dates. The field experiment was divided into four blocks with two plots (replications) per block, resulting in 2 x 2 x 4 = 16 plots. Pest insects were counted per plant on the sam...
I am currently conducting a set of analyses examining the relationship between two predictors and an outcome. For example, the relationship between motivation (predictor 1), revision (predictor 2), and performance in an exam (outcome). I have reason to believe that predictor 2 (e.g. revision) may mediate the relationsh...
I have an experiment which comprise a numerical dependent variable, say a feature such as growth_rate, and three independent factor variables describing where the samples were collected, i.e. locality, were the collected samples were growth, i.e. medium, and which taxonomical group they belong to, i.e. taxa. plus, ther...
For my Master thesis I have to perform the DCC-GARCH model to examine the correlation between real estate house prices and the stock market. I tested the data for normality (both not normal) and stationarity (both not stationary) and variance ratio test (was significant). I used the log function because of the non-norm...
I'm trying to predict some financial feature (continuous) and there are two or more good regression models. Is it possible to combine multiple regression models? If so, what kind of method is it called?
For example, I am interested in specific brain regions' development over time. I have data, but data is one-time point data. it is not longitudinal. But in the data, I have participants aged from 0~17. Also, I have the depression score of each participant. So, my research question is: if there is any statistically sign...
Motivating question I have a high-dimensional state space $\Omega \subseteq \mathbb R^n$ with an admissible subset $S\subseteq \Omega$, which is connected. I would like to draw a uniform random sample from $S$. In my application, it is easy to verify whether a state $\vec x$ is in $S$, but difficult to find a state in ...
That’s a sequel to my previous question Does Gaussian process functional regression fulfill the consistency condition? The conclusion was that: Gaussian process regression with i.i.d. Gaussian noise returns the same posterior Gaussian process for any partition of the data; ... but with completely different calculation...
I run a null binomial generalized additive models (gam) using mgcv and it gives negative deviance explained! As far as I know deviance explained is analogue of R^2 so it should be between 0 and 1. So is this negative deviance explained occurred by the package error? If so, then how can I manually estimate deviance expl...
Consider a simple regression model $Y_i = \alpha + \beta X_i + u_i, (i=1,...,n)$ where $(Y_i,X_i)$ is a random sample. Let $\hat{\beta}$ be the OLS estimator of $\beta$ and $\bar{X}$ be the sample mean of $X_i$ given by $\bar{X}=n^{-1} \sum_{i=1}^n X_i$. I'm trying to derive $Var((\hat{\beta}-\beta)\bar{X})$. If $X_i$ ...
Suppose I have a likelihood maximisation problem $$ \hat{\theta} = \max L_n(\theta;y) $$ where $\theta = [\theta_1, \theta_2, ...., \theta_k]^T$. What if I would estimate instead estimate the maximisation problem leaving out a parameter $$ \hat{\theta_{-k}} = \max L_n(\theta_{-k};y) $$ but a loop over each value of $\t...
I am developing a credit risk decisioning model, i.e. a model that assesses the risk of default of an incoming transactions and decides whether to accept it or not. Of course my dataset is imbalanced : the minority class (i.e. defaulted transactions) represents ~5% of my data. What I care about is discrimination power ...
I conducted a moderation analysis on repeated-measures data using the MEMORE macro for SPSS (https://www.akmontoya.com/spss-and-sas-macros). However, I need standardized effect sizes but I haven't managed to figure it out and it's quite urgent. So each participant read 2 character descriptions about a healthy (Conditio...
In the book Mathematical Methods for Physics and Engineering it is said that the likelihood function tends to a Gaussian (centred on the maximum-likelihood estimate) in the large sample limit. The way it is phrased makes it seem like they are saying this is due to the central limit theorem, but I am struggling to see h...
I am looking for ways of estimating or mitigating the risk of applying a classification model (say logistic regression for simplicity) in a certain population (the inference set) that is known to be different from the training population. We know that our metrics estimated in the test set are not directly applicable to...
I have an lme model with a significant categorical variable. I have recently been advised to test for autocorrelation in the residuals of that model separately for each level of that variable. The result is that some levels show autocorrelation and some don't and I am not able to deal with this autocorrelation by speci...
So, I need to do some exploratory data analysis and I picked MDS to figure up if there were trends in the data. The structure of my data looks like this: $ Generation: int 2 2 2 2 2 2 2 2 2 2 ... $ Panel : chr "A" "A" "A" "A" ... $ Line : int 1 1 1 1 1 1 1 1 1 1 ... $ Rep : int 2 2 2 2 2 2 2 2 6 ...
I want to conduct a meta-analysis of single means. However, these means are restricted mean survival time (RMST) of cerebrospinal fluid shunt inserted to treat hydrocephalus. For this, I have digitized published survival curves with https://apps.automeris.io/wpd/. Then I have extracted the individual patient data with ...
I'm working on Cox regression in my PhD research and I would like to know some references about applying the stratified-extended cox regression model on a real life data. I'm interested about combining the two approach: stratification and the extended cox PH in a single model and not separately.
I have used RandomForestClassifier from Sklearn to solve a multiclass classification problem (12 classes in total). I get my x and y from a pandas dataframe. label_bin = LabelBinarizer() unique_classes = np.unique(y) label_bin.fit_transform(unique_classes) x_train, x_test, y_train, y_test = train_test_split(x, y, test_...
I got contrary results from my log-rank (not significant) versus my cox regression (significant) regarding the effect of my treatment variable with the aim of hypothesis testing. That's no real wonder, considering that the cox regression adjusts for 6 covariates other than my treatment. However, I'm confused about th...
I have a dataset containing a fair amount of continuous and categorical variables. I one-hot encode these variables to be used in various machine learning algorithms. Let's presume a variable has n categories, which we one-hot encode into n columns. If we work with penalized models, we want to standardize all variables...
Suppose $x$ is an isotropic random variable in $\mathbb{R}^d$ with $E[\|x\|^2]=d$ and $v$ is some vector. It appears that $\sum_i x_i^2 v_i \approx \sum_i v_i$ when $d \approx \infty$. What is an easy way of showing it? The hard way is to follow this answer or this paper.
I am currently running a mixed log-linear model which is in this form: Log yit = Xit + X2it + (1|individu) I suspect a multicollinearity ( cor (Xit , X2it) close to 1 ). Do you think it makes sense to scale the explanatory variables (Xit). Or is there another alternative? If yes, how may I interpret the result( 1 SD?)....
Suppose I'm running a regression that looks something like $log(price)=β_0+β_1log(X)+β_2log(X)^2$. I have found the residuals, grouped them according to the number of sellers in the observation's town, and calculated the mean residual for each group. Suppose the residuals are 0.05 for 1 seller, -0.01 for 2 sellers, -0....
We know that for a sample (assume it's a data set that has two variables $x$ and $y$ of size $n$), $$R = \frac1{n-1}\sum_{i=1}^n\left(\frac{x_i-\overline{x}}{s_x}\right)\left(\frac{y_i-\overline{y}}{s_y}\right)$$ Say we add in a data point $(\overline{x}, \overline{y})$ to the sample, which lies on the linear regressio...
After logistic regression of the cross-sectional data sets, link test _hatsq shows insignificant. However, when I pool the same two data sets, the link test using the same set of variables regression gives significant _hatsq which shows specification error in the pooled data regression. Why is this happening?
Apologies if some of my terminology is incorrect, I only have relatively basic stats knowledge. I have two groups of patients where we've done some experiments on the electrical conduction within the heart. Within each group, I've got a measurement of the degree of electricity abnormality (fractionation) during differe...
Let $X_1,\ldots,X_n$ be i.i.d. log-normal random variables such that $$\log(X_i)\sim N(\mu,\sigma^2)\ \ \forall i=1,\ldots,n$$ Now let $Y$ be equal to the $\min(X_1,\ldots,X_n)$. It is quite easy to obtain the relation between the corresponding CDFs: $$P(Y<y)=F_Y(y)=1-[1-F_X(y)]^n$$ Is there a closed form to calculate ...
i am confused at how to estimate the variance of a classifier. Currently, i have split my data into training and test sets and used the training data with a k-fold cross-validation strategy to get the best model. Then, i could use the whole training set to train the selected model and then evaluate the test set, but i ...
The calculation the MAD (Mean Absolute Deviation)/Mean ratio is this, according to the title: $$ \frac{\overline{\left | Forecast - Demand \right |}}{\overline{Demand}}$$ However, the calculation is often shown as this, because of the derivation from wMAPE (weighted Mean Absolute Percentage Error), with sum not average...
Generally, my default practice in regression for nominal categorical variables, including race, is to use dummy coding, with the majority/plurality level as reference. Interpretation of the model coefficients using this scheme is straightforward. Additionally, I typically view comparisons to the majority/plurality grou...
I have read that the Vuong test is no longer considered appropriate for testing whether a ZINB fits better than a negative binomial test because it is not strictly non-nested nor partially non-nested. I'm modeling in R (glmmTMB) and there is not the Vuong (nested) option that I can find. If the NB is nested in the ZINB...
I have started reading this paper, and do not understand a line in its first paragraph in the introduction. He says: Indeed, as far as the mean square error is concerned, Gaussian distributions represent already the worst case, so that in the framework of a minimax mean least square analysis, no need is felt to improv...
Let $A_t$ and $B_t$ be $I(1)$ processes and assume that they are co-integrated i.e. there exists $\beta$ such that $A_t - \beta B_t$ is $I(0)$. Woolridge's Introductory Econometrics text (5th edition, page 646) claims that if we fix $A_t$'s coefficient at 1, then $\beta$ unique. A naive proof would be to assume to the...
I am using hierarchical GAMs to examine the effect of weather covariates (n=21) on annual bird counts. The hierarchical part is to account for nested observations with s(site, bs="re") and temporal autocorrelation with s(year, by=site, m=2). None of my covariates have significant smooths in the global model, so I have ...
We have a Linear Hierarchical Model where $$Y_i | \theta_i \sim N(\theta_i,1)$$ $$\theta_i | A \sim N(0,A)$$ with $$Y_i |A \sim N(0,A+1)$$ where $ i = 1,2,\ldots,k.$ I found the likelihood function for $A$ by using the marginal distribution of the $Y_i$'s, where $$L(A+1) = \prod_{i=1}^k f_{Y_i}(y_i | A+1)$$ $$ = [2\pi(...
Suppose $X_1$ is a random variable. I want to test the hypothesis $$ H_0:X_1\sim \delta_0 \textrm{ vs } H_1:X_1\not \sim \delta_0.$$ Where $\delta_0$ is the Dirac-measure in $0$. As teststatistic I take T(x)=x, if i get the sample $x_1=0$, then I would calculate the p-value through $$2\cdot\min\{P(T(x_1)\geq T(X_1)|H_0...
I have a dataset with symptoms and its severity (integer: 0-10, over 20 variables), and a columns with chosen treatment (0/1, over 10 variables). The dataset include over 1000 records. Correlation plot seems inconvenient for me. I am looking for a statistical test and/or visualization for analysis of associations betwe...
Does anyone know where there is information on fit tests or something that can be done to help choose the best fitting family and link for a glm model? I have panel data that I am trying to run a regression with using a binary dependent variable (0/1). I am trying to decide between a glm with a poisson distribution and...
I perform an LSA with textmodels_lsa of the quanteda package in R, but I have little idea about interpreting the results. A minimal example taken from here txt <- c(d1 = "Shipment of gold damaged in a fire", d2 = "Delivery of silver arrived in a silver truck", d3 = "Shipment of gold arrived in a truck...
I am comparing the difference of medians between two groups of sample sizes $n1$ and $n2$. I would like to confirm that my boostrap approach for finite population size without pooling sample data correctly provides a distribution function of the differences between samples. Below, I provide examples of approaches that ...
Steps followed for testing : Derive parameter estimates using fitdistr() function in MASS package for the dataset, dt consisting of discrete values varying from 0 to 50. df=dt[[1]] nbfit <- fitdistr(df,'negative binomial') pfit <- fitdist(df, "pois") Use parameter estimates for creating reference distribution ...
I'm writing my thesis on private equity funds' financial performance and ESG integration. The data is gathered from funds at a single point in time and is therefore cross-sectional data. I want to run an OLS regression on the below dataset. I was a bit in doubt if I should use a logit model, however, as I understand it...
I have the following model. Let $BP$ be a continuous variable s.t. true relationship is $BP=144+0.5age+4sex+3gene+\epsilon$. Suppose for subjects with $BP>160$, there is a probability of 0.5 getting some treatment with effect following truncated normal distribution with mean -15 and standard deviation $sd=2$, where tre...
In GLM, we assume that $\mathbb{E}[Y|X]=\mu(\beta^\top X)$ and $Y|X$ follows exponential family distribution. I am going to assume that the probability of success in the Bernoulli distribution is modeled as $\beta^\top X$. However, the issue is that because $\beta^\top X$ can take values less than 0 or greater than 1, ...
I have the following project in front of me: Clients are going to get a bill informing them of a price increase (let's call them group A). However clients are getting the bill at different points of time. I want to learn which individual characteristics eg age will make individuals to quit. Then I want to use these lea...
Really a pretty basic question about generative models, but I'm trying to map my (limited) understanding of NNs generally to what's going on when I invoke an OpenAI API: When the OpenAI API docs state a limit to the prompt size for a model ("max tokens", which I assume is the same as what's also referred to as in the ...
I estimated a variable for three different species and have a posterior distribution of 4000 estimates for each species. Now I want to know if the distribution between species differs significantly. How do I do this? I have displayed the mean and 95% credible interval for each three species and would like to indicate i...
Suppose we are using the matchit function from the MatchIt package in R, as in the following example given in the package, m.out1 <- matchit(treat ~ age + educ + race + nodegree + married + re74 + re75, data = lalonde, distance = "glm", method = "nearest", replace=FALSE, caliper = NULL, ratio = 1) Suppose now, you want...
My model estimates the percentage of living-in agricultural workers (that is, the ones provided with board & accommodation) in labor force. The unit is the % of those workers in a district: Y = a0 + a1 * cattle + a2 * horses + a3 * popden + a4 * altitude + e Cattle and horses (more specifically, their densities, i.e. t...
I want to run an A/B test to examine the effect of a marketing campaign on revenue. I’m using a synthetic control setup, hence I have to compare the revenue generated by treated units to the counterfactual revenue given by the synthetic control. One way of assessing if there is a non-random effect of the campaign is to...
I am modelling change in the mass of an animal over time with a GAM. These animals are caught at one of two ages (1 or 2, but 1's never become 2's in the subsequent year). I also have a large number of sites in my analysis. The most simple model I am considering is: mm <- gamm(MASS ~ s(YEAR.s, SITE, bs = "fs", by = A...
The Forecasting Model I have developed a proprietary forecasting model (call it AMA) that forecasts an expected range in price movement of a particular security. An example of the way it works is by giving out expected price range movement of $\mathrm{$10}$ for a $\mathrm{$100}$ stock within the next hour (or any given...
I'm working on a machine learning classification project and i faced some difficulties: all of my features distributed like this: I'm not sure what should i do, should i use any scalers/other preprocessing methods? All features means count of some events for a specific person. What problems can this distribution cause...
I have a set of $k$ random variables, $y_i(x) = f_i(x) + \epsilon_i, y \in \mathbb{R}$ where, $\epsilon_i \sim \mathcal{N}(0, \sigma_n^2)$ (a noise term) $x \sim \mathcal{U}(-\infty,\infty; -\infty,\infty)$ (a 2D uniform variable) $f_i(x) = \varphi(x,\mu_i,\Sigma_s), \mu_i \in \mathbb{R}^2, \Sigma_s = \begin{bmatrix}\s...
This is probably a very crude question and I've been thinking about it for a while. Is the odds ratio the same for generalized additive models (GAMs) as it is with generalized linear models (GLMs)? If no, then how can I interpret them in a logistic GAM? I found many links about odds ratios for GAMMs but not GAMs.
People sometimes include the interactions between their instruments and region/year or the interactions between different instruments in the first stage of a 2SLS regression. I wonder if the effect hierarchy principle applies to the instruments in 2SLS. I'm asking this question because this paper selects instruments us...
A colleague wants to analyze two outcomes (X1, X2). They believe the two outcomes measure the same construct or something similar. They decide to Z-score both outcomes in separate dataset and combine them (X3). They assume that because they are Z-scored they are now on the same scale, and because they are both measurin...
Suppose I have three variables (x, y, z) and I am calculating their regression coefficients. How to calculate Z-score between two variable (Z-score_xy) if Z-scores of two variable with a third variable are known (Z-score_xz, Z-score_yz)? If you can show the calculation with beta would also be helpful. Give reference pl...
I am trying to develop a strategy to deal with outliers. Below is the residual boxplot that I have generated for the test data, train data and both the test and train data. My question is, what is the best way to deal with these outliers? Is it ok to just leave them if I had looked at them closely and there is no evide...
Question A drug maker wants to design a study in which two medications are compared. The first group has seen a improvement in 40%. Researchers want to see if the newer drug will improve this by 10% so they design a study. Assuming a study with power of 80% and a two-sided significance level of 5%. How many participant...
I am considering the following log log model : $$ log(y_t) = log(\beta_0) + \sum_{i=1}^{K}\beta_ilog(x_{i,t}) + \sum_{j=K+1}^{L}\beta_jx_{j,t} + log(\epsilon_t) $$ to explain the sales of a company given several factors. After estimation of the model, I would like to "decompose" the dependent variable (the sales) by co...
I'm trying to understand the proofs on the The information bottleneck method paper by Tishby, Pereira and Bialek without luck. In particular, the second term in the functional derivative of the Mutual Information, i.e., $$ \frac{\partial}{\partial p(\tilde{x} | x)} I(X, \tilde{X}) = \frac{\partial}{\partial p(\tilde{x...
I have data with a large proportion of zeros that we are committed to analysing with ITS [to fit in with other parts of a project] and have been advised that the best approach would be to convert to a binary outcome. I've done so and fit a binomial glm to the data, but[with experience of more standard count/rate based ...
I have run a binomial generalised linear mixed model (GLMM) via the lme4 package in R. The optimal model of mine is from this syntax: fm1 <- glmer (answer~ (1|subj) + (1|item) + seeconversationmask, data=analysis1, family=binomial, control=glmerControl(optimizer="bobyqa",optCtrl=list(maxfun=2e5))) I have three independ...
Can a Mann-Whitney test be done on different sample sizes, one sample about 18 and the other about 32? The problem is looking at the difference in views of tourists and locals about the environmental quality of a location.
I have a general population of let's say 100,000 people, 10,000 of which are on a register following a diagnosis of kidney disease (this involves looking at a blood result and coding a diagnosis). However, I hypothesize there may be more undiagnosed people in the 100,000 general population (blood results indicates but ...
I am trying to identify a list of features that are significantly over represented in one population when compared to the other. Experiment is designed such that I have two groups of individuals A and B. Each group has 20 individuals. Over 2 million features have been analyzed in these two groups and for each feature i...
Is it safe to run a logistic regression with time as independent variable? For example, I want to test whether a certain outcome (say, blue or red) changes along time. I know that, in general, one should be careful on time series because of autocorrelation. EDIT: the dataset I have contains hundreds of observations pe...
Why do some definitions of the Kullback-Leibler divergence include extra terms $-p_i + q_i$? For example, kl_div() (in the Python scipy.special module) defines the Kullback-Leibler divergence as $$ \sum_i p_i \ln\frac{p_i}{q_i} - p_i + q_i. $$ The documentation says: The origin of this function is in convex programm...
Assume we have $n$ non-iid standard normal random variables $X_i$. I'm interested in the distribution of $Z=\sum X_i^2$. It is clear to me, that the sum of independent $n$ squared standard normal variables will follow a chi-squared distribution with n degrees of freedom. However, as said above, we assume the $X_i$ to b...
I have an experiment where I take a set of samples, and test them. If I then take a second set of samples and repeat the experiment, how can I test if there is a significant difference between the sample sets? More specifically, I take 25 rods of a material and subject them to a breakage test at five different strain r...
I met a problem in interpreting z values in my GLMM and its post-hoc tests. Since what I am calculating is the counts, I used the poisson family from glmer. and I got a z values of z value = 2.278. But after I put the model into post-hoc analysis ("Dunn" adjustment) with "emmeans", the z value became z value = -3.350. ...
I'm new to Bayesian statistics. I'm running a linear mixed effects model in R (using lmer), and I want to report Bayes Factors using these results, as demonstrated in Silver,Dienes & Wonnacott (2021). This paper uses a R script version of Dienes' Bayes Factor calculator found here: http://www.lifesci.sussex.ac.uk/home/...
I have an AR(3)-GJR-GARCH(2,2,2) model. How can I test the presence of ‘leverage effects’ (i.e. asymmetric responses of the conditional variance to the positive and negative shocks) with 5% significance level? Below is my code for the model: startdate = '2009-01-01' enddate = '2021-12-31' data = yf.download('GD', start...
I am trying to model the following and would be happy about input/if its correct. I want to compute a model that checks on differences between Statuses between data sets plotted here on the graph: The question is: are there significantly more poor/moderate/good statuses in one data origin, in comparison to the other or...
despite my searching, I cannot find a clear answer to the question: Do dynamic logistic regression models require data points to be temporally independent? An answer, an hint and/or a reference would be appreciated, if anyone knows. Thank you.
Research Problem We are trying to help universities recruit as many students as possible for different projects for a good cause. To be eligible for any project offered by their university, students can self-register online via a brief form that asks for contact information and some more data. Some questions are mandat...
The agent has two actions, a0 and a1, whose effects in each state σ0; . . . ; σ3 are described in Figure 1. The edges from actions are labeled with the probability that this transition occurs. For example, Pr[st+1 = σ2 | st = σ0; at = a1] = 1; similarly, Pr[st+1 = σ0 | st = σ1, at = a0] = 1-p. If there is no edge from...
x_t=(1+ θL)*ε_t,ε_t ~ iid N (0,σ^2) What is the long-run variance of x_t? Does it depend on θ? If so, how?
I have been studying linear models recently and I'm confused why $cov(Y) = cov(\epsilon)$ holds for $Y = X\beta + \epsilon$. This was just kinda assumed in my course notes I was looking at this section specifically
I'm learning about recommentation systems and I'm trying to build one using item based collaborative filtering approach. I have this dataset in which the lines correspond the items and columns the user. The matrix is filled with the ratings[1, 5] of the items. I chose sklearn.neighbors.NearestNeighbors class to find th...
I am thinking about a problem in which features comes in batches and in different moments of time/environments. My current problem set is the following: Let's say you have n datasets with an arbitrary number of features. Is it possible to set for the boosting optimization to use the first dataset in the first k estimat...