instruction stringlengths 9 38.7k |
|---|
I have a question when I apply fixed and random model, then hausman test, the results show that the appropriate one is fixed model based on hausman test, then I want to check the heterocedasticity for the fixed model using xttest3 (modified wald test ) I found that there is an heteroscedasticity to correct it I have ad... |
I have a hypothetical time series data which is derived from following . equation
y =0.10 + 0.75 Trend+ 1.00 −1_ + ε
When I apply standard ADF procedure to data, I see that y has a unit root while log(y) is stationaty. However, when I apply ERS Point Optimal Unit Root Test, I am receiving an absurd 51,465,638 value a... |
I am quite new to SEM analysis so I'm trying to figure out how to make my model a good one (whether drop a variable or something else?) I have tried all sorts of things in order to make my chisquared/df better or the RMSEA, or the SRMR, almost nothing changes the result. I have 6 latent variables measured by 32 items w... |
I am trying to understand the proof of the scoring function (log likelihood) of a graph $G$ of a Bayes Network given in this slide. Given a Bayes Net $G$, the log likelihood of data $D$ can be expressed as :
$log L(G|D) = m \sum_i^n(I_{P}(X_i,Pax_i) - H(x_i))$
but the derivation seems very confusing to me. Can anyone b... |
I have a few Independent variables that's normal and a Dependent variables that's skewed , I pick log(feature+SHIFT) to correct skewness. The procedure I follow to get prediction is just take exp(predictions)-SHIFT.
Now how do I get my predictions for the following cases.
1) I have Normal - dependent variable and the i... |
This doubt arose when dealing with the typical exercise of calculating the expected grade of a multiple-choice exam answered at random (where each right answer is given $p_1$ points and each wrong answer gets $-p_2$ points).
Let $X \sim \mathrm{Bi}(n,p)$, and consider $h(x)=p_1x -p_2(n-x)= (p_1-np_2)+(p_1+p_2)x$.
In th... |
The picture shows my results. I have reviewed all the row data many times. Unfortunately, I couldn't find mistakes in data entry. Are there any possible solutions or alternatives in such cases?
|
How to prove that $X_n \xrightarrow[]{p} 1$:
$X_n = 1 + nY_n$, where $Y_n$ is a Bernoulli random variable with mean $1/n$
|
I am evaluating a Neural Network performance using 4-fold cross validation. I produced the ROC curve in the picture.
1) How can I average the folds to obtain just one ROC curve?
2) How can I justify this plot to retain it?
[ maybe it's useful to plot different folds to see the spread and how stable the model is, cou... |
Once you plot your coefficients in beta space over time (either as sum of coefficients or univariate), assuming you have a companion F-statistic joint significance plot, these alone are useful to see correlation and perhaps structural breaks or changes at each window over time. But aside from just glancing at such plot... |
i have applied NG Perron's modified tests to my timer series data. But when I tried to interpret test statistics I saw that, decision given by MZa and MAzt contradicts with MSB and MPT.
Is there an assumption which I should know, that would cause thise diversion
Thanks..
|
For example, I have the following plot, where y-axis is the values and x-axis is the index of the data point.
There are clearly two gaps in this plot, and I wonder what is the best way to identify these two gaps.
I hope the method could be based on statistics without fancy machine learning methods with regularizers,... |
Imagine that I have a random number generator $X$ where it is impossible (or mathematicaly intractable) to calculate its probability density function
- this can happen when we compose several simpler random variables, that is, the parameters of a random variable are determined by another random variables.
That random v... |
I trained a classifier that outputs probabilities for 3 classes. I produced the plot of the weighted accuracy achieved on test and train set, throughout training.
First, I want to explain how I constructed the contingency table to check if I did a reasonable thing. For each instance, I picked as predicted label the one... |
To preface, this is a homework question for me so hints and pointers are what I am primarily looking for, not just the answer.
I have been having problems with this problem, specifically part b
I have gotten part a to $$E\left[ (x_{n+m} - \tilde{x}_{n+m})^2 \right] = \sigma^2 \sum_{i = 0}^{m-1} \psi_i^2 $$ and I think... |
This question is purely academic in nature; I have no application for the knowledge scholastic or otherwise other than curiousity.
Suppose you have a KxN matrix of data, with each row representing a variable, and each column representing an observation of each variable, called M.
Suppose you now generate a correlation ... |
There has been a lot of research about weighted linear regression. Most of the discussions are about weight of samples though, i.e., weight on $y$, rather than weight on $X$,
\begin{align}
X &= [X_{0}, X_{1}, ... X_{n}] \\
y &= \beta X
\end{align}
In most engineering problems, there exist some a-priori knowledge abou... |
This is in a similar vein to a recent question I asked, however I feel that it is sufficiently different to warrant another question. Again, this is from Andrew Ng's excellent freely available machine learning class.
This question asks for the conversion from index notation to matrix vector notation of the cost functio... |
I'm using a program called GPower to calculate the achieved power of a certain test I've performed. Below is the screen shot of my inputs and outputs.
It states that my test achieved a power of 1.0 - meaning there is a ZERO percent chance of a Type II error occurring. I've never seen it described in this way before, j... |
Most of the times when people talk about variable transformations (for both predictor and response variables), they discuss ways to treat skewness of the data (like log transformation, box and cox transformation etc.). What I am not able to understand is why removing skewness is considered such a common best practice? ... |
I am given a set of training values $X$ and $y$, and the goal is to predict the value $f_* \equiv f(x_*)$ for a new data point $x_*$, where $f(x) = x^Tw$. How can I show that:
$$
\begin{align}
p(f_* | x_*, X, y) &= \int p(f_* | x_*,w) p(w|X,y) dw\\
&= \mathcal{N}\left(\frac{1}{\sigma_n^2} x^T_*A^{-1}Xy, x_*^TA^{-1}x_*\... |
Are numbers generated by True (hardware) Random Number Generators (TRNGs) more uniform than numbers from a Pseudo Random Number Generator (PRNG)? I understand that there are not much (analytical/numerical) information of TRNGs compared with PRNGs. What are the main users of TRNGs other than in gaming and cryptography?
|
I have to do my graduation project and I am facing this question regarding a statistical test.
This is my question:
Assume that I have to classify one image by a Neural Network 5 times (5 iterations) and each time it gives me these results:
Iteration 1 : class1: 0.0, class2: 0.5, class3: 0.5, class4: 0.0 >> The total i... |
I have an urn with $R$ red and $B$ black balls. $R$ and $B$ are large numbers. I draw some $n$ samples of different sizes without replacement until the urn is empty. The sizes of the samples are not a random variable, consider it a known determined value.
I want to see whether I am drawing samples that are more balance... |
I have a 16-item questionnaire that measures responses on a 5 point Likert scale from 1 = none of the time, 3 = some of the time, 5 = all of the time.
I define each item as an ordinal variable; however the 16 items can be summed together to form a total score or several subscale.
is this total score still an ordinal va... |
I'm trying to fitting a line with IRLS with L1 norm, but I'm struggling to understand why my idea is wrong.
1 - init the weights $w$
2 - fit with simple LS and obtain a starting model $\beta_0$
3 - at each iteration t then until convergence do:
compute the residuals $e = |y - x\beta_0|$
update the weights $w = \dfrac{... |
I have a dataset comprised of two $n$ x $d$ matrices, $A$ and $B$. Each is comprised of $n$ observations of $d$ angles. The angles are taken from two different meshes of planar triangles that are in correspondence such that columns $A_i$ and $B_i$ both represent $n$ measurements of angle $\alpha_i$. Many columns of ... |
How do we calculate block-cluster-robust SEs for the average-treatment effect? (Note, I do not want block bootstrap. I want the analytic estimate, calculated with block-population-weighted block-level SE estimates.)
This is for a research design with blocks, clusters within blocks, and we want to use Eicker-Huber-White... |
Is there a way to get the time stamp of an arbitrary element in time series object in R? Let me give you an example of what I mean. Imagine you had a series:
library(foreign)
bjg <- read.dta("http://www.stata-press.com/data/r9/air2.dta")
airline.ts <- ts(bjg[, 1], start=c(1949,1), freq=12)
The function time() retur... |
I would like to find the inverse of the sum of a Kronecker product and a diagonal matrix. I found this answered here, but I don't see how the last step is valid.
Because of the fact that $C$ is diagonal, the spectral decomposition of $D^{−1}C$ itself is easy to obtain from that of $D^{−1}$.
It says that if we know... |
The formula (i.e. y~x) used for beta-regression is unclear to me. I would like to know what the resulting equation would be for a predicted beta-regression curve with the following summary output:
Call:
betareg(formula = DRatio ~ SVL1 + I(SVL1^2) | SVL1 + I(SVL1^2), data = sub.data, link = c("loglog"))
Standardized... |
Context:
I'm building a model to predict the type of offense (7 classes) from NYPD data.
features = ['occurrence_hour', 'borough_labels', 'time_to_entry']
X_train, y_train = train[features], train['offense_labels']
X_test, y_test = test[features], test['offense_labels']
from sklearn import tree
clf = tree.DecisionTree... |
I am working with a city's crime data and am trying to classify the type of crime in a city based on various features. Two of the features are latitude and longitude and I have been thinking about what is the best way to use these features in a model? Using them as regular numerical features does not seem right to me i... |
I've trained a simple Neural net (scikit learn's MLPClassifier) in order to perform binary classification on some data (the titanic dummy problem on kaggle).
I know that standardizing data prior to using it to train neural nets is supposed to make training faster but I didn't expect it to change the results (it scores ... |
In an incomplete block design they say that block size is smaller than the total no. of treatments to be compared whereas complete block design is one where each treatment occurs once in each block?
What about those kind of designs where block size is equal or larger than the total number of treatments yet all treatmen... |
I trained a CNN model for regression and getting facial landmarks of a face, it works well when input window has specific ratio but, it fails whenever I want to try it with bigger window and different scales and ratios. Now I want know how much is a CNN model robust to different input image ratios?
|
I just realized I have always worked regression problem where the independent variables were always numerical. Can I use linear regression in the case where all independent variables are categorical?
|
If i'm working in a car company and I have some data for every customer i.e.
Their license plate
Date of their car's service in the dealer
Number of km in their car when they service it
Their periodic service (e.g. 1000 km, 2000 km, etc.)
Can we predict when will the customer back to the dealer to service their car a... |
I have obtained the answer on my own question Manual calculation of ARIMA(1,1,0) forecast, then I have seen the question and answer Forecasting with ARMA models.
I'd like to write the formula to the manual calculation of ARIMA(p,d,q) forecast in common case. I'm starting with ARIMA(2,1,2) which is:
$$y_t = \beta_1(y... |
I am working on a Neural Network that should predict certain transport-tariffs based on start and end region of the transport.
The region can take different forms, from a whole country to a range of zip codes or just from one zip code to another. When I feed my network the data I just extract the geocoordinates of the ... |
I am wondering the correct way to calculate the covariance matrix found by using Maximum Likelihood Estiamtion. The following equation is the result after having followed algebraic steps:
$\Sigma_{MLE}^*=\dfrac{1}{n}\sum_{i=1}^n(x_i-\mu_{MLE}^*)(x_i-\mu_{MLE}^*)^T$
And I interpreted the above equation into matrix form ... |
I am trying to create a coefficient plot from multiple logistic regression models, which all have the same predictors, but different sample sizes. This is a pre-test to a multilevel model. My question is two fold:
Given, I want to compare the effect sizes of the same predictor in the different models, I assume I need ... |
I am working my way for the first time through predicting a continuous dependent variable in a problem where all independent variables are categorical. Say I need to predict a continuous variable starting from a single categorical independent variable that can take 4 values. After dummy-encoding the categorical variabl... |
Although I know some basics of linear classification, I do have some questions about the formalism. In our script, a binary linear classifier $F$ is defined as follows:
$$
F(x) = \textrm{sign}\left(\langle w, x \rangle + b\right) \in \{-1, 1\}
$$
where
$$
\textrm{sign}(z) = \begin{cases}1 \hspace{8.5mm} \textrm{ if } z... |
Consider the integral $$ p(Y) = \int \mathcal{N}(HX, I \sigma_e^2) \mathcal{N}(0, FF^\top\sigma_w^2) dX $$
I'm trying to evaluate $p(Y)$ by solving this integral. However, so far I'm not able to do it. We know that $p(Y)$ is Gaussian. So we just need to work with the argument of the exponential function. $$p(Y) \pro... |
I have been attempting to solve this set theory question, and am unsure exactly how to answer part b) :
For part a), I got P[A] = 0.4 and P[B] = 0.5. For part b), the only way I can see to solve it is to assume that $P[A \cup B \cup C] = 1$. This is my current working:
$$
\begin{align}
P[B^c] &= 1 - P[B] \\
\therefore... |
Consider the bivariate stochastic process:
\begin{equation}
\begin{cases}
y_t = \alpha y_{t-1} + x_t + \epsilon_t \\
x_t = x_{t-1} + \beta y_{t-1} + \nu_t
\end{cases}
\end{equation}
with a bivariate white noise {$\epsilon_t,\nu_t$}.
Find the admissible triangular region of the parameters $\alpha$ and $\beta$ for the st... |
I know that most statisticians are against removing outliers unless one carefully looks at the data, however there might be applications where multiple models are automatically generated and hence looking at the data is not possible, so the process needs to be automated. When outliers are present because of errors in m... |
I am trying to get the correlation between 2 variables, given a set of data.
Once in a while, in the given data set,When one of the variables has a constant value, since the standard deviation of that variable is zero, I get an NA value for the correlation. (In R).
I would like to assign a value for the correlation in ... |
I am looking at the effect of threats on populations of animals using mixed effects modelling. However, when interpreting the LMM's output the intercept is based on one of the threats, which is in overall decline. Is there a way to impose an intercept in an LMM that I can set the values for?
When I make a results tabl... |
What is the basic difference between confounding and interaction? Is it possible to occur both at the same time in data? Can anyone please explain this plainly and with an example?
|
I'd like to know the necessary assumptions of maximum likelihood estimation for a linear regression. Hope to hear some explanations.
|
This may seem so simple, but im new to r and would really appreciate if someone could tell me how to set all outcomes in a variable/dataset which are above 1 to 1. putting the max value at 1
|
Assuming a normal likelihood function is used for a maximum likelihood estimate of $\mu$, how can I prove that the maximum likelihood estimate of $\mu$ actually provide a maximum likelihood estimate?
The following is what I have done to get a maximum likelihood estimate of $\mu$ for a multivariate normal distribution:
... |
I have a single ordinal sample, where there are five possible scores (1-5). Most of the scores are the middle value (3), so tests of the median are no use to me.
I am interested in the other scores: those in {1,2} and {4,5}.
I can count
x = the number in {1,2}
n = the number in {1,2,4,5}
and do a binomial test with s... |
Where can I find a reliable word2vec model trained on some English articles?
I need a word2vec black box, where I, for example, can pass a sentence as array:
["London", "is", "the", "capital", "of", "Great", "Britain"]
and receive:
[some_vector_of_floats1, some_vector_of_floats2, some_vector_of_floats3, some_vector_of_... |
I conducted an experiment where some participants were subjected to high levels of CO2 for 11 consecutive amounts of time. Some were controls "C" that had no CO2 but thought they did and the rest "N" were actually subjected to high CO2.
A boxplot of their respiration rate over time looks like this:
Normalising the res... |
Does anyone know what is the difference (theoretically speaking) between
under sampling
over sampling
weight based classifiers
when dealing with highly imbalanced datasets (1:1000, 1:10000)?
When is it recommended to use each one?
Is there a theoretic justification for any of these methods? or do they just "work p... |
I'm working with a dataset containing crimes data from Chicago. There's a lot of geographical data, and I'm looking for advice on pre-processing.
We have qualitative variables represented by integers, the blocks for example : 2 blocks with a close number aren't necessarily close to each other.
Will the algorithms lear... |
My goal is to classify samples based on their dynamic time warping distances with k-nearest-neighbor classification.
Therefore I compute a nxn matrix, where n is the total number of samples. This matrix contains the distance from each sample to each sample.
The precomputed metric should be the right choice for the task... |
I'm doing a exploratory factor analysis for an investigator who wants to find factors from 7 variables. I did a preliminary analysis and found two main factors, each have 3 variables with loading > 0.6. There's one variable left alone for itself as a factor with loading >0.99. Should I report it as one factor or just l... |
Let's say I'm doing a two-tailed hypothesis test at 5% significance level and get a test statistic that corresponds to a p-value of $0.03$. As it is two-tailed I double it and therefore, as $0.06 > 0.05$, I fail to reject the null hypothesis.
However, let's say now I'm checking for a result strictly greater than the me... |
I'm trying to calculate the amount of noise in data that fits to an exponential decay function. I'm trying to calculate signal-to-noise at different times of the data. Here is the code for how I create some data:
import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import curve_fit
time = np.arange(0... |
I've been experimenting with the seasonal_decompose() feature from Python's statsmodels (equivalent to the same in R). The problem is that the 'seasonal' series it extracts uses the whole timeseries, where in reality, at some point in the past, such data would not have been available.
Is it possible to produce this sea... |
I wonder if sklearn has any feature selection mechanism that chooses features that are highly correlated with target variable and maintains low inter-correlation among them. I know there is one in Weka, called CfsSubsetEval. I wonder if there is any equivalent method in sklearn. I have checked but could not see any rel... |
I'm wondering whether it's a valid approach to construct a model that uses a panel of company data that is available with yearly frequency to predict outcome data that is available at a quarterly frequency.
I guess our setup in this case would be to repeat the yearly data for each of the following 4 quarters (in which ... |
In a prediction experiment with regularized regression methods (Ridge, Lasso, and Elastic Net), I have tried two feature-selection methods prior to running regression, and I have obtained very similar results although the feature sets were largely different as determined by the feature-selection methods.
First, I used ... |
After browsing in CV for some answers, I haven't really found what I am looking for.
I am planning to run a regression (on Stata) between the client satisfaction (Y) and the provider satisfaction (X1) and some socio-demographic variables (age, gender, income). All the data I have comes from surveys. I combined differ... |
I'm trying to build an arima model for some data that has a lot of missing values. I find that if I leave the predictors for month, day, hour, year out I can train a model quickly, but if I add them I get the error below. Is there a setting in auto.arima that can be used to deal with na, or does anyone have any tips. ... |
A fair four-sided die has its sides labeled U, D, L, and R, respectively. A token is placed at (0, 0) on the Cartesian plane and the die is then rolled repeatedly. After each roll, the token is moved as follows:
Token Moves
U (a, b) → (a, b + 1)
D (a, b) → (a, b − 1)
L (a, b) → (a + 1, b)
R (a, b) → (a − 1, b)... |
I'm using pre-trained word2vec model lexvec.enwiki+newscrawl.300d.W.pos.vectors with gensim
this model "knows" a lot of words, but it doesn't know things like this: "great britain" or "star fruit"
how to use phrases in my case?
|
The expected number of events for a Poisson distribution under a Gamma prior with parameters $\alpha$ and $\beta$ (with mean $\alpha/\beta$) is:
$$
\newcommand{\paren}[1]{\left(#1\right)}
\begin{aligned}
\sum_{k=1}^\infty k & \cdot P(k \mid \alpha, \beta) \\
= \sum_{k=1}^\infty k & \int_0^\infty P(k \mid \lambda) p(\la... |
I am dealing with grocery shoppers' transaction data and trying to measure how a customer regularly shops for a certain retailer.
With the intershopping time (days), How can I measure each individual's shopping regularity?
Can I use just standard deviation? or Can I use a measure of volatility?
|
I am using RandomForest to generate a model to detect burned forest areas based on the reflectance values of satellite imagery. The burned area accounts, on average, for 10% of the pixels in my images, meaning i have a real world ratio of 1 burned area to 9 non burned. A random sample of 10.000 observations has led me ... |
As I understand classical recomendation system (like Netflix for example) use user-movie relations to predict missing data - rating that user will set to movie.
But what about some kind of recomendation system that operates vector-vector realtions (vector length not necessarily equal), for example something like dating... |
After using model selection methods, I've arrived at a final model which removed two of the predictors out of ten. My question of interest is whether one predictor has a positive relationship with the response. The final model has a positive coefficient for that predictor, so can I say that my hypothesis was correct?
|
I want to compute a test statistic based on the Euclidean norm of two data matrices with same number of columns (i.e variables) but very different number of rows (i.e observations).
I am using the eqdist.etest function from the energy package which requires that I combine the two matrices as the first step.
Can you te... |
I have some data and wish to fit several distributions to it, many of which are compound and/or complex. I'd like to know whether a given family of distributions is appropriate which I can apparently do via Anderson-Darling.
Wikipedia:
Essentially the same test statistic can be used in the test of fit of a family... |
Given the following model:
$$ y_t = \alpha x_t + \epsilon_t~~~~,~~~\epsilon_t \sim NID(0,\sigma^2) ~\text{and}~~x_t = y_t + z_t$$
Given that $z_t$ is a non covariate variable with $\epsilon_t$, how is it possible to derive the following unbiased OLS estimator of $\alpha$:
$$ 1 - \dfrac{\sum_{t=1}^T z_t^2}{\sum_{t=1}^T ... |
When cohort matching (I'm thinking specifically of either propensity score matching or Mahalanobis distance matching), is it appropriate to include the same covariate(s) in both the matching and the final outcome models? Or can you only include a covariate in either the matching model or final model, but not both? In o... |
If my likelihood has the form of a beta distribution, and I want to use Jeffreys' prior for its parameters, what is form of the prior?
For some distributions its pretty straight forward to calculate. for example, in the binomial case, the expectation of the second derivative clearly gives you $\operatorname{Beta}(0.5, ... |
This question has been asked before, but I have a specific case I'm curious about. Essentially, I have a very low MSE, but the R^2 turns out to be negative. Even the scatterplot shows that a horizontal line isn't a good fit, so I'm not sure what to make of these results. I used sklearn's Linear Regression object, and c... |
I face the following problem: For my startup I came up with 3 different marketing messages. I will display each of the messages to 1000 different people, so 3000 people in total. I will then measure click-through rate.
Now my question is: Which test should I use to test for statistical significance? I want to know whic... |
On p. 383, Fox writes that "[with a gamma GLM] the dispersion parameter is simply the inverse of the shape parameter." I am trying to understand for what distribution this applies to. Using an intercept only model (see first analysis below) it seems that we are modeling the distribution of Y. But when I add a very s... |
Looking at Google Analytics, I can't help but think that the summary stats which present averages have the potential to be very misleading (and probably are, in practice). For some of these summary stats, there doesn't appear to be an easy way to determine the distribution of the numbers underlying the data. For other ... |
I am trying to predict a count variable that ranges between 0 and 10 and 60 out of the 94 examples have the value 4.
I rejected building a classification model, since that would ignore the inherent order of the data. Also, regression models are defined for continuous variables, so generalized linear models are more ... |
I`m trying to make a ARDL model and have 6 variables were the dependent variable are I(0), stationary at level, with 6 lags and the 5 remaining independent variables are I(1), stationary at first differances, with 1 lag.
I was reading in a blog (https://nomanarshed.wordpress.com/2014/11/16/a-manual-for-ardl-approach-to... |
I have two random variables $X$ and $Y$, representing times-to-event, drawn from Weibull distributions. When $Y$ occurs, then $X$ cannot occur after that. Aside from this, we can assume independence. Importantly, we don't actually observe $Y$-events, only $X$-events.
(If it's helpful to make this more concrete: let's ... |
I'm trying to come up with a test for parameter constancy that's general enough to use for both OLS models and ARIMAx models. In all cases, we have non-stochastic exogenous variables.
Here's the chow prediction interval statistic for OLS with $k$ parameters, equation (31) in Chow's paper from 1960, "Tests of Equality B... |
Simple question that I haven't found easily online: why are the estimates obtained from a Gibbs sampler consistent (converge to the true probabilities)?
|
I am building a dataset so I can do time-series analysis at the census-tract level in the United States. I have income data for 1990, 2000, 2006-2010. Is there a way to impute/estimate income values for the years 2001-2005 at the census tract level based off the existing income data I have? If the answer is yes, what w... |
This is more of a follow up question regarding: Confused with Residual Sum of Squares and Total Sum of Squares.
Total sum of squares can be represented as:
$$\displaystyle \sum_i ({y}_i-\hat{y}_i)^2+2\sum_i ({y}_i-\hat{y}_i)(\hat{y}_i-\bar{y}) +\sum_i(\hat{y}_i-\bar{y})^2$$
Where:
1st term residual sum of squares
2nd ... |
In most Neural Network (NN) forecasting studies on Sea Surface Temperature, they stated that they create different models for different lead times of 3,6,9, or 12 months. I still can not understand how is this done. And I need explanation of what does it mean b lead times and exactly how do we use it in the NN model.
|
I understand that, scaling (multiplying or dividing by a constant) the normal vector of a plane, does not affect the plane itself.
But what happens when we do so? Are we zooming in or out of the space, like in a linear transformation?
Or in simpler words, what's the intuitive effect on scaling the normal vector of a pl... |
A common question I get from other faculty members is when they are conducting a longitudinal analysis, i.e., pre-test and post-test, they wonder if where the participants' score at pre-test, i.e., initial level, is associated with their score at post-test, i.e., ending level. in other words, where the participants end... |
I am not sure if I am following the steps correctly. Here, first I do a feature selection:
selection = SelectKBest(score_func=f_regression, k=15).fit(X,y)
X_features = selection.transform(X)
Then, I use cross-validation to calculate the alpha_ with the selected features (X_features):
model1 = LassoCV(cv=10, fit_interc... |
I am working on fleet management system these days, basically, I am trying to predict the usage 'y' of our fleet in a zip code in the future. We have some factors 'X', such as number of active users, number of active merchants etc.
If I can fix the time horizon, the problem will become relatively easy:
y = $\beta$X
Ho... |
Is inference based on a full model appropriate, and if so, in which circumstances?
Suppose you are interested in the potential relationship between a response variable and several candidate predictor variables, and use some form of regression (e.g. generalized linear model) to answer that. One approach to inferring whi... |
I have established that the effect of an independent variable X on outcome Y is fully mediated by a second independent variable M using the approach by Baron and Kenny (1986). However, the theory suggests that the direct effect of X on Y may be moderated by a third variable Z. In fact, the results show that the moderat... |
I want an interpretation of this BP test result:
Breusch-Pagan / Cook-Weisberg test for heteroskedasticity
Ho: Constant variance
Variables: fitted values of envdisc
chi2(1) = 0.02
Prob > chi2 = 0.8829
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.