instruction stringlengths 9 38.7k |
|---|
While testing some software I had users fill up a survey which asks questions in Likert type item(1-5) about the 3 different states of the software. These states were: one without aid, one with aid in a particular format and one with aid in another format. This was conducted on the same group of individuals in a "try t... |
Lets say I need to model the survival probability for death from heart disease (noted $H$). There is a competing risk in the study which is non-heart disease (noted $NH$). $H$ and $NH$ are competing risks, we want to model $H$ in presence of $NH$.
I've adopted the Cause-Specific Hazard model, to model the hazard rate o... |
Reading the paper https://storage.googleapis.com/pub-tools-public-publication-data/pdf/b20467a5c27b86c08cceed56fc72ceadb875184a.pdf i came across a rare definition of the likelihood function that in my eyes seems misspelled.
Have a look at function 8 and 9, ctrl-f "(8)" or ctr-lf "(9)" in the document.
"Let Φ denote th... |
Let me describe the problem:
The general form of multi-variate regression model is given by $$Y = b_0 + b_1x_1 + b_2x_2 + b_3x_3 +....+ eta$$
And the statistic to test the significance of coefficient say $b_2$ by student-t test, $$t = \frac{\hat{b_2}}{s.e.(\hat{b_2})} $$, s.e. is standard error.
However, in my develope... |
I'm trying to add time-varying coefficients using the tt() function with coxph to solve the problem of PH violations in my Cox model.
When I try to do this I encounter the error:
Cannot allocate vector of size...
I guess this is because of what tt() does to the matrix (and my dataset is n=100 000 with 135 variables),... |
Equivalence is basic to mathematics, e.g. https://en.wikipedia.org/wiki/Equivalence_relation.
"Equivalence tests" are common in statistics, e.g. https://en.wikipedia.org/wiki/Equivalence_test.
Is the name "statistical equivalence" used intentionally to reflect a particular set-theoretic equivalence (and where is this b... |
How would you respond to the following case/question:
Assume you are testing the effect of an ad campaign at a social media company. The study is divided into two groups, 5,000 subjects who are shown an ad for why Coffee Shop X is better than Coffee Shop Y (group A), and 5,000 subjects who are not shown the ad (group B... |
I have a dataset that has three events: before, during and after. For each of these events there are five categories of rain: drought, dry, normal, wet and storm. For each of the categories there is a water level value. The water level data is non-parametric and the data is skewed. The categories are ordinal. What is t... |
I have a handful of logistic regression models and I would like to report AIC. Should I report it on training or test data? I have quite a big dataset and a maximum of 10 predictors in any of the models.
|
Assume the following research experience. A group of researchers went to a school. On the first day, they gave a questionnaire about a topic for the students to fill. The next day, the researchers gave the same students a lecture about that topic. The study finished on the 3rd day when the researchers gave the same que... |
This is my first post here so I apologise if it is formatted incorrectly or missing key info.
I need a little bit of help/direction with interpreting R results for a project. Basic premise of project is testing the success of different attractants (independent variable) in attracting bears (presence/absence, dependent ... |
i'm quite new to machine learning, so i hope i can get som help on here.
I try to classify pictures of soda-cans and bottles with size 299x299. So based on the shape of the object itself, my networks work very vell. The problem is to get the classification based on the logo right. i.e "coca-cola" vs "fanta". can vs bo... |
I want to conduct a meta-analysis of meta-analyses (aka umbrella analysis). A potential issue is that within each individual meta-analysis I want to include there is some overlap between the studies. Is this likely to create a problem of dependence and artificially inflate the precision of the estimates?
Is there anyth... |
Here's the problem:
I have some options. Each is represented with three attributes or say criteria (with normalized values between 0 and 1). I want to randomly choose one of these options based on these three criteria.
The first issue would be how to combine the three attributes. The weighted sum can be a way.
The se... |
I am performing regression analysis in R on count data which are negative binomial distributed. I would like to use a quantile-quantile plot as a tool to diagnose the fit of my models, but I am struggling to find an appropriate method for my data. A Normal Q-Q plot would not be appropriate since the residuals are not e... |
I understand that latitude and longitude are interval data, but are coordinates (e.g. Point(123, -123)) also considered interval data? If so, how can the standard deviation, mean etc. be calculated?
|
I am trying to write some code to learn the parameters of a normal distribution. I am new to this, and I have patched together the equations from various sources, which may be part of the problem. In particular, I seem to manage to update the prior with a batch of data, though I am having some difficulties interpreting... |
Suppose you have a vector p drawn from a multivariate Beta distribution (not a Dirichlet), such as the one described here ( How to construct a multivariate Beta distribution? ) with a Gaussian copula.
How would you make a draw from a multivariate Bernoulli distribution parametrised in terms of p?
|
I am reading Tutz & Schmid "Modeling Discrete Time-to-Event Data" (2016) chapter 4 Evaluation and Model Choice section 4.3.3 Discrimination Measures. On p. 94 estimators for sensitivity and specificity in presence of censoring are defined:
$$
\widehat{\text{sens}}(c,t) = \frac{
\frac{ \sum_j \delta_j^\mathcal{T} I(\ha... |
I have some output data (around 800 data points) that very nicely fits a negative binomial distribution. I checked using fitdistr() in R and it is a very good fit.
Given this, my plan was to use negative binomial regression from other variables to derive a model so that i can predict the output data. I have around 65 v... |
My panel model is of the following form where x1 is the endogenous regressor and z is the moderator.
y = f(x1, x1^2, x1z)
The instrument for x1 is M (based on averages of similar observations except the one under consideration). Based on the paper by Haans et al.(2015) https://onlinelibrary.wiley.com/doi/full/10.1002/... |
For argument's sake, in the below please assume that the hypothesis test we'd be considering would be a simple z-test to check whether an observed difference between two groups' means or proportions is statistically significant.
Looking at the literature for hypothesis testing, it almost always seems to assume that the... |
Minimizing square loss results in predicting conditional means.
Minimizing absolute loss results in predicting conditional medians.
What loss function results in predicting conditional variances?
I have seen this answer, which works if we can assume a conditional mean of zero (which might be a safe assumption for much ... |
I am studying survival analysis and reading Tutz & Schmid "Modeling Discrete Time-to-Event Data" (2016). The authors often consider the censoring time $C$ to be independent of the time to event of interest (e.g. failure) $T$. At the same time they occasionally suggest each of $T$ and $C$ could be modelled using e.g. a ... |
Is there a way to build a time series that has a known autocorrelation function? For example a time series that has the following ACF $e^t\cos t$.
|
I'm studying reinforcement learning now and I'm quite a newbie to this field.
I have some questions about how to derive the equation as below.
$p_{\theta}(s_{1},a_{1},\dots,s_T,a_T)=p(s_1)\prod_{t=1}^T(\pi_\theta(a_t|s_t)p(s_{t+1}|s_t,a_t))$
The equation above is the probability of a trajectory.
But in my opinion, the ... |
I am trying to solve an inverse problem where I try to approximate a function $f(x)$ that fulfills the following equation
$\ddot{z}_m = \frac{\sigma^2}{2} \frac{\partial^2 f(z_m)}{\partial z^2} + \frac{\partial f(z_m)}{\partial z} f(z_m).$
$z_m$ is a smooth deterministic trajectory that I know in functional form, so I ... |
I am trying to calculate a posterior density given distribution and a prior. And I am a bit confused about how I should act as the domain of the distribution depends on the parameter.
I am talking about the distribution with density:
$g(x) = \frac{\alpha p^{a}}{x^{\alpha+1}}\mathbb{1}_{[x\geq p]}$
and prior
$\pi(p)\pro... |
Take a random variable $X$. Is it true that
(1) $cov(X,f(X))\neq 0$ for any function $f$?
(2) $E(X f(X))\neq 0$ for any function $f$?
I believe the answer to both questions is no. However, can you suggest an $f$ such that $cov(X,f(X))= 0$ and an $f$ such that $E(X f(X))=0$? Let's exclude the constant functions $f(X)=k$... |
A linear least squares problem is always convex as explained mathematically here https://math.stackexchange.com/questions/483339/proof-of-convexity-of-linear-least-squares. However, a linear LS can yield infinite solutions if the matrix A (in the general LS problem $min||Ax-b||^2$) is rank-deficient. Also, from theory ... |
I was reading the paper of CycleGAN and I was trying to implement it.
However, my models does not converge to any good solution whatsoever, and since I've checked the implementation many times, I think that the problem is on how I understood the algorithm.
Specifically, I have some doubts on how the "cycle" is trained.... |
I've been looking for layman-accessible information about implementing the generalised linear regression with a complementary log-log (cloglog) function as survival analysis in R, but couldn't find anything satisfactory.
A similar question has been asked here: link
however, I'm still unsure how to use that function on... |
For ordinary least squares, I know the confidence interval is
$\hat{Y} ± t\cdot\sqrt{\hat{\sigma}^2 * x_{new}(X^{\top}X)^{-1}x_{new}^{\top}}$ and $X$ is the design matrix, n is the number of observations, and p is the number of parameters in the model, and:
$\hat{\sigma}^2 = \frac{Y^{\top} \left(I-X(X^{\top}X)^{-1}X^{... |
Can I use Pearson correlation for discrete variables, if the level of measurement fits (either ratio or interval).
Thanks!
|
I'm trying to see whether good players in chess (those with more than a 1250 Elo) are helped more by puzzles than bad players (those with less than a 750 Elo). Usually, the way I would do this is with an interaction term. However, in this case my DV (Elo, which is a measure of skill) is the thing I want to interact wit... |
I'm trying to see whether good players in chess (those with more than a 1250 Elo) are helped more by puzzles than bad players (those with less than a 750 Elo). Usually, the way I would do this is with an interaction term. However, in this case my DV (Elo, which is a measure of skill) is the thing I want to interact wit... |
I am trying to see if some anthropic variables (e.g., Population density, Population growth, and Roads) explain animals' distribution. My dependent variable is the percentage of area occupied (continuous variable, range: 0-100; e.g., 87.9). Each species has also a status (discrete variable; i.e., 0/1) and an Order (mor... |
I am studying Hidden Markov Models and I'm trying to understand the following exercise:
Consider Hidden Markov Model with hidden states $h_{1:T} = \{h_1,...,h_T\}$ and observed states $v_{1:T}=\{v_1,...,v_T\}$.
When the sequence of outcomes $v_{1:T}$ is observed, it induces the distribution on the hidden states $p_v(h_... |
I ran simple linear regression models, however my model could not meet all the assumptions (e.g., the normality of the residuals, the homogeneity of the variance). I know that both are quite important to be meet if I want to run the simple linear regression model. I tried different kinds of transformations (e.g., squar... |
I am studying some articles related to statistics and some of them mention the term 'Parent Distribution'. What does that mean? Is it a distribution model that the authors decide to use as a basis of comparison with other distributions? I'm quite confused as I couldn't find the definition of this term anywhere.
|
I have a dataset where I have at least one clinical measurement for 1000 individuals, but for a subset I have more than measurement. These are patients with a disease that can temporally become more or less severe, so multiple clinical measurements may reflect periods of increased or decreased severity. Additionally, h... |
I conducted power analyses of a single logistic regression using the R WebPower package as such
library(WebPower)
M1 <- glm(trait ~ ancestry, dataset, family = binomial)
p0 = exp(M1$coefficients[1])/(1+exp(M1$coefficients[1]))
p1 = exp(sum(M1$coefficients))/(1+exp(sum(M1$coefficients)))
wald <- wp.logistic(n=number, p0... |
The answer given to the question Probability distribution of the distance of a point in a square to a fixed point solves for the "distribution of the distance between the origin (0,0) and a random point on the unit square $(0,1)^2$".
Can this be generalized to a rectangle of arbitrary lengths and a random origin within... |
I have a large set of network data, with many groups. Within each group, there are some criteria for creating "candidate" relationships between entities.
Below I have an example of 8 groups, each with a class of "left" objects, with categorical labels A, B, and C, and with a class of "right" objects, with categorical l... |
I am working on a timeseries forecast problem using linear regression. My current model is an OLS like $$y = \beta_0 + \beta_1 x_1 + \beta_2 x_2 + \epsilon.$$ I have the forward curves on $x_1$ and $x_2$ from other sources (e.g. derived from markets), so I can use the forward values of $x_1^{<t>}$ and $x_2^{<t>}$ to ... |
I have a quick question about factor analysis from different scales. Is it advisable to use, conjunctly, items from different measures? For example, if I am interested in doing EFA in the context of mental health, is it advisable to include items from several different scales that have already been published? On one ha... |
I am performing a negative binomial regression, with post-hoc tests using emmeans. I was wondering if I should perform & report the p-values done using the log scale or the response scale.
I am posting an example. In this case, there is not a big difference between approaches but, I am dealing with a scenario where the... |
I am new to statistics, can someone guide me regarding the test I should use to compare the foot dimensions of 9 subjects to footwear dimensions (we have 2 footwear brands).
So, to simplify, I have data of normalised ratio foot width wrt footlength (and other dimensions also) of 9 subjects which needs to be compared to... |
How do I predict the value of an item given its features and attributes? What is the best approach to this regression problem, in terms of performance as well as accuracy? And how do I process this large range of data?
The Data: Each item has an id and various attributes. Most items share the same attributes, however ... |
Hi supposed I have the results below from a cox multivariate model using the coxph function in R.
Is it fair to conclude that the overall model is significant and that sex, being Male is protective? that is holding drug constant and being Male reduces the hazard by a factor of 0.2 or 80%? can I conclude this even if th... |
Is there a way to measure how much of the information that two variables share is also shared by a third variable?
Say that there are three variables $X$, $Y$, $Z$ and that I need to:
Predict $Y$ given $X$. Call this prediction $\hat{Y}_X$.
Predict $Z$ given $\hat{Y}_X$. Call this prediction $\hat{Z}_{\hat{Y}_X}$.
Li... |
I want to use a weighted focal loss for my imbalanced object detection problem.
\begin{equation}
L = - \alpha(1-\hat{p})^\gamma log(\hat{p}) , \ \hat{p} = \begin{cases}
p, & \text{if}\ y=1 \\
1-p, & \text{otherwise}
\end{cases}
\end{equation}
Now, according to the paper
"A common method for add... |
I have heard that when the sample size n is large enough, we can apply the t-test to non-normal distribution due to the CLT. But as far as I can see, the CLT only justify the normality of the sample mean. To apply t-test, we need $S^2(n-1)/\sigma^2$ to follow a $\chi^2$ distribution, where $S^2$ is the corrected sample... |
Trying to do CV for my polynomial regressor. However, for some polynomial degrees:as the polynomial degree increases, R^2 decreases (e.g., R^2 for degree 2 is 0.6 while for degree 3 is 0.28), why is that?
lin_regressor = LinearRegression()
# pass the order of your polynomial here
poly = PolynomialFeatures(1)
# conv... |
I have a number of variables, $X_1, X_2, ...$ which vary between 0 and 1. These are measures representing metrics in a large organization -- e.g: LeadershipScore on a scale of 0 to 1, ResponsibilityScore on a scale of 0 to 1 etc. The DV is whether an employee got a promotion in the last 5 years, a binary response vari... |
I have a doubt regarding the computation of the KL divergence in the loss function of bayesian neural network. Assuming that $Q_\lambda(w)$ is the variational distribution and $P(w)$ is the prior distribution on the weights, how is this integral approximated?
$$KL(Q,P)=\int Q_\lambda(w)\ln{\frac{Q_\lambda(w)}{P(w)}}$$
... |
I am asked to calculate $E(ln (\frac{1}{P(X)}))$
Where X is a discrete random variable over
$\chi $ $\in \{1,2,3\}$ with probability mass function
P(X=1)=0.5,P(X=2)=0.4, P(X=3) = 0.1
I think this would be $\sum_{i=1}^3 P(X=i) ln(\frac{1}{P(X=i)})$
But I am having trouble picturing a real world example.
|
I have been teaching myself IRT. I think I get it, however, I've not yet reached a point where I would say that I'm totally confident.
In assuming that the latent trait is normally distributed with mean θ = 0 and SD = 1, am I correct in believing that θ estimates can be thought of as z-scores on a standard scale and as... |
I want to perform some studies on how material thickness, type of material, humidity and temperature influence tensile strength.
While I was thinking about useful designs I was wondering whether a certain design makes sense at all as I'll use for each investigation a new object.
Let's say a design experiment suggests f... |
I've read a lot of threads/questions about this issue and I got conflicting answers.
I've trained an XGBoost model on tabular data to predict the risk for a specific event (ie a binary classifier). There are 43169 subjects and only 1690 events. I've taken into account this class imbalance with XGBoost's scale_pos_weigh... |
In Data Analysis, Dynamic Time Warping is a method to better speify the similarity between two time series: https://en.wikipedia.org/wiki/Dynamic_time_warping
What is the purpose of introducing a cost function for the cell of the matrix of the DTW measure?
As we know, we would like to identify the optimal path that all... |
I have a pattern of count time series of vehicle demand as shown below.The time series is generated as follows:
Categorical Random Variable, x = {0,1,2} and p(x) = {0.6,0.3,0.1}
low vehicles = 1 + x , every 4 hours
high vehicles = 6 + x , every 8 hours
Is it possible for the RNN to learn the categorical distribution o... |
I have designed a following neural network that combines CNN, RNN and Dense layers.
It aims to predict a positive or negative outcome for the time step t+1, given a fixed sequence of steps t-7 ... t.
Here is a rough sketch of layers, I'm using Mxnet but the question applies to any framework:
Conv2D()
Activation()
Conv... |
Consider that we have a dichotomous variable $D_{i,t}$ that takes the value of 1 if $Y_{i,t}\geq 0$ and 0 otherwise. And $Y_{i,t}$ is a latent variable defined by:
$Y_{i,t} = \eta_{i} + \sum\limits_{k\in K} \omega_{k,i,t}x_{k,t}$
Where:
$\omega_{k,i,t} \sim N(\mu_k,\sigma_k^2)$
Now I'm facing two problems that call for... |
For continuous random variables $X, Y$ the conditional expectation $\mathbb{E}[X | Y]$ is itself a random variable. I understood this in the sense that for a realisation of $Y$ we can say
$$
\mathbb{E}[X | Y=y] = \int_{-\infty}^{\infty}xf_{X|Y}(x|y)dx =
\frac{1}{f_Y(y)}\int_{-\infty}^{\infty}xf_{X,Y}(x,y)dx.
$$
And so ... |
My problem
I would like to infer the relative importance of "habitat connectivity" compared to "habitat quality" to explain tits breeding success in a urban area (more details below). My dataset contains $n_{total}$ = 426 observations (one observation is a [great or blue] tits reproduction event observed in a given nes... |
Something must have gone wrong with my reasoning.
UPDATE: This is the answer to my question provided by Dr. Ben.
Where is $|\theta|<1$ used in recursive method derivation of invertibility of MA(1)?
Given a zero-mean AR(1) process $\{X_t\}_{t \in T}$:
$X_t = \phi X_{t-1} + \varepsilon_{t}$; $\{\varepsilon_t\}_{t \in T}... |
when I have created the training dataset for the subscription classifier, a user with an active subscription was labeled with 1.
I have a dilemma for users with label zero. At first, all the users with no active subscription were labeled with 0. However, a user with no active subscription can be a subscriber in the fut... |
I have a question. I have run a logistic regression model with 5(X1,..., X5) continuous predictors. The predictor with the highest coefficient is X2, but the predictor that reduces the most deviance is X3 (no matter the order of the predictors in the model). How is that possible?
|
I have fitted a LMM in R using the lme4 package in R of the following form:
lmer(y ~ (1|time)+(1|subject)+group)
Where y is my response variable, time indicates the measurement time point and subject the individual, from which the data was taken. group is my fixed factor with two levels, lets call them "A" and "B". Th... |
I have a random variable $X$ which follows the following probability density function,
$$ p(x) = \frac{1}{4\pi} \Big[ \operatorname{erf}\Big(\frac{k\mu-x+2\pi}{\sqrt{2}k\sigma}\Big) - \operatorname{erf}\Big(\frac{k\mu-x}{\sqrt{2}k\sigma}\Big) \Big]$$
I wanted to find the probability density function for the function of... |
I have calculated the sample size for two different populations, N1= 29414 and N2= 625 (see code below). Why do I almost get the same sample size n1= 380 and n2= 239. There is not much difference, although the population size is very different...
#z-score (confidence level) 95%
z = 1.96
#Sample proportion)
p = .5
#Ma... |
May we choose the confidence interval or credible interval based on an empirical risk loss-function?
I think we blindly generate the width intervals without any optimization or rely on some asymptotically correct notion of standard error.
I know the point estimates are based on loss-functions, but the intervals seem to... |
Cross Validated has a pretty thorough debunking of class imbalance being an inherent problem for SMOTE to solve.
However, SMOTE is explicitly a method for synthesizing new points.
Is SMOTE any good at synthesizing new points? If so, is there any way to use SMOTE-style point synthesis to improve model performance, even ... |
I have a question regarding process control with the use of multivariate regression.
The setup is as follows: say we have some data, representing the results of a plant process. Specifically, several continuous variables $\{x_1,\ldots,x_n\}$ represent inputs of the process (and we can control directly only $x_1, x_2, x... |
I have a survival dataset that I'm working with in R. I can generate a KM curve and also a table of survival and time values.
My question is, given a point on the survival curve (let's say 0.8 survival at 400 days), and a coefficient/hazard ratio from a cox model, how do I calculate how much to increase/decrease the su... |
I want to show the confidence envelope for a two sample Q-Q plot in R (or Python). The aim is to use the Q-Q plot to give an indication of whether my two samples are drawn from the same population
The method of qqPlot() from the car package cannot do this, because this method does not support two sample tests, I think.... |
The question is straightforward: Is there any test to check variance stationarity (homoscedasticity) in time series?
And, if it exists, which are its implementations in R or Python?
|
I am just working on trying to port some R script to Python. I am fairly new to the Python language. I have been going through the R script and converting it. But there is a part that is stumping me,
where I ran a logistic regression in statsmodels GLM, but when I use the predict method afterwards,
the results I am get... |
I've conducted a Likert-style survey with $45$ questions in which $15$ people participated. Each question was repeated six times, so I have six answers from every participant for every question. All answers are $\in \{1, 2, 3, 4, 5\}$.
What I'm trying to visualize are the differences in consistency with which the parti... |
It's a path model of growth over time with variance-covariance matrix.
So, there are 7*8/2= 28 known variances and covariances.
But the textbook says that are 27 unknowns (7x + 7u + 6w + 6z + the variance of A1).
I don't understand why the variance of A1 must be solved.
Any help would be really appreciated!
|
I want to select a feature subset. I know that every feature in this dataset is informative to some level, due to domain knowlege. So in theorey I should use all features to maximize the negative mse between the target and a linear combination of the features.
I get the following result, when I'am doing a RFECV:
Code:
... |
I need some help understanding the meaning of the lilliefors test. As far as I know, the lilliefors method provides a measure of normality of a data set. That is, a measure of how the images (values) of the signal distribute in a normal distribution. That being said, I am implementing a method on python for performing ... |
I am training a random forest regression model in R using 3 years of historical data. This is the histogram of the left skewed y data:
When I use the model to predict on new data the results are normally distributed, this is the histogram of the normally distributed forecasted ŷ data:
Is this a normal operation of th... |
I'm trying to understand/visualize how multiclass logistic regression works but most of the examples I've seen concern 3 classes with all of them on the outside.
How does logistic regression work when there is a class surrounded by all the others. I imagine there would have to be a dip or trough in the logistic curve i... |
I observe a sequence of r.v. $X_1, X_2, \dots$ where each $X_i$ is a function of the sample size $n$.
When $n \rightarrow \infty$ I have the following result: $X_1 \rightarrow^d E_1, X_2 \rightarrow^d E_2, \dots$ where $E_i$ are i.i.d random variable with mean $\mu$, variance $\sigma^2 < \infty$ and same density $f_E$.... |
Here is my context:
I have a time series composed of only 1 features. I want to be able to classify between two classes. To get more information out of these data, I am using a sliding time windows.
For example, if my time series contains 1000 observations with, I use a sliding window of 20 observations, and I iterate ... |
Lets say that I train a variety of different models - SVM, XGBoost, LogisticRegression, Random Forest, KNeighbors, etc. I then take the permutation importance of each model, and find that Column12 is the most important feature among all the models.
Assuming that this is not a mistake (i.e. hyperparams were tuned and re... |
I have a dataset in which I measure some probability of success using a logistic regression approach. In one of the levels of the predictor variable, all observations were a success (or 1). When I look at the estimates and confidence intervals via the emmeans() function, I get a probability of 1 for this level as well ... |
Im sorry for asking a newbie question.
The Central limit Theorem (CLT) states that when sample size tends to infinity, the sample mean will be normally distributed, and the variance is decreasing ($\sigma^2/n$).
Doesn't this mean the sample mean will converge to the population mean? which is the law of large numbers.
|
Trying to do CV for my polynomial regressor. However, when I use random_state in my CV, all the polynomial degrees are giving me the same values for R^2. Any clue? I think I have something wrong in my code. THANK YOU VERY MUCH.
lin_regressor = LinearRegression()
# pass the order of your polynomial here
poly = Polyno... |
As a newbie, I'm not sure if this situation can be described more succinctly using better terminology, so kindly bear with me.
The performance of a machine+human system is dependent on four independent variables, $x_1$ to $x_4$, but the exact relationship is not known beforehand. $x_1$ and $x_2$ are continuous variable... |
When it comes to Machine Learning, the successful application seem to be very well known. For example, Neural Networks have been successfully used to create Self Driving Cars and Game Playing Algorithms (e.g. Go, Chess).
When we think of classical statistical models such as regression model, it seems more difficult to ... |
I am segmenting customers using the RFM technique. The dataset looks like this:
Sample
Recency shows the number of years since the last payment (ranging between 0 and 4). In this context, using years is the most meaningful way. Frequency indicates the number of payments made (a count), and Monetary presents the $ amoun... |
Here is an example that will help me ask my question.
Let's say, I have the red and blue distributions as below, both of which are normal distributions (n = number of observations):
Then I introduce the below green point. I'm interested in determining to which distribution it is most likely to belong.
Visually, it's... |
When I run my multinomial regression (SPSS) I get errors that there are too many empty cells in the sub populations. I have merged categories in my IVs to the extent possible. My DV has 4 categories. While less than ideal, could I run multiple models, each containing only a few IVs? Alternatively, I could take each ... |
I am sorry, I have a simple question that I am confused about (I AM STILL A BEGINNER):
When I create a model let's say a decision tree model and I specify random_state=integer to get reproducible outputs, then I run cross validation (let's say kfold with k=5) and I also specify random_state=integer in my CV to get repr... |
I have a dataset like below:
samplename position reference alternative
S1 201 C T
S1 3567 A G
S1 760 T C
S2 356 C T
S2 6787 T C
These data belongs to patients and their genomic variants. I have the label for each patients as for example S1 labeled 'Control' and S2 labeled 'Disease'. I would like to be able to classify... |
I have a question about performing regression for prediction on a continuous dependent variable that is time dependent. The table below shows an hypothetical structure of my data.
I want to estimate the response variable at any time period 1 to 6 weeks, using covariates such as shown in the example below, with respons... |
One of the assumptions of classic linear regression is that error is uncorrelated between different observations. But it is obvious that uncorrelated is not independent. I have already learn the situation of correlated errors. But I am thinking are there any situations that errors are uncorrelated $\operatorname{Cov}(\... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.