instruction stringlengths 9 38.7k |
|---|
I have a collection of data points of the form $[U, V, X, Y]$, where $U$ ~ $N(\mu_1, \sigma_1)$; $V$ ~ $N(\mu_2, \sigma_2)$; $X$ ~ $exp(\lambda_1)$; and $Y$ ~ $exp(\lambda_2)$, and I am looking to generate fictional data points of the form [u, v, x, y]. These 4 data points are all interrelated, so generating them indep... |
Considering this example, taken from the coursera course "Bayesian Statistics: Techniques and Models",
Dataset:
# This is the "badhealth" dataset from `library("COUNT")` in R
From German health survey data for the year 1998 only.
Format
A data frame with 1,127 observations on the following 3 variables.
numvisit
numb... |
I assume this question has been beaten to death and thus I am just looking for a reference which goes through the details.
Assuming all populations we deal with have finite means and variances (even higher moments if that helps) and the two samples are independent.
The two-sample t-test requires sampling from a normal ... |
At a local lottery where I live you have to guess 5 out of 48 numbers and chances of hitting the jackpot (using nCr) are 1 in 1.712.304 (this is a small country), there is another type of play (way expensive) where one can hit the jackpot by only picking 4 numbers (chances climb to 1 in 194.580 using the same formula b... |
I am building an LSTM Autoencoder (unsupervised model) to detect anomalies in a time series dataset. The input is telemetry data from routers and I want to detect anomalies in the throughout of routers. I am evaluating the model using MAE (Mean Absolute Error). Let's say I split my entire dataset of 1000 rows into time... |
I have four biological (independent) replicates in each of my experimental conditions. There is a potential issue with our equipment - it's possible that the first replicate for each condition is contaminated and needs to be excluded from the analysis. What's the right way to test whether the first replicates are signi... |
I am looking into the mboost package in R for creating GAM models. Below is code for creating a very simple GAM model with tree stumps on the mtcars data set.
library(mboost)
my_model = mboost(formula = mpg ~ cyl + disp + hp,
data = mtcars,
baselearner = "btree",
... |
I'm building a simulator and I have to implement some probability distributions. What is the best (formal) way of validating this implementation? I took a look at KS-tests but it seems to me they are too easy to pass when setting $\alpha = 5\%$, for instance. Actually, it seems counterintuitive that decreasing $\alpha$... |
Say I have two random variables $Z^{p}_{i} \mid Y^{p}_{i} \sim \text{Poisson} \left(t^{p}_{i}Y^{p}_{i}\right)$ and $Z^{q}_{i} \mid Y^{q}_{i} \sim \text{Poisson} \left(t^{q}_{i}Y^{q}_{i}\right)$ for all sites $i$ belonging to domain $\mathcal{D}$. Both $Y^{p}_{i}$ and $Y^{q}_{i}$ are positive random fields with means $m... |
The dataset that I'm using for my thesis is right skewed. It is about lead times (days) I tried log10 transforming it in SPSS but it still does not meet the requirement p>0,05 (Shapiro-wilk). So after the logtransform the dataset is still not normally distributed. Would you know any further options which can be applied... |
I am training a classifier using BERT and want to check how the accuracy changes with increasing training data size. Up until now, I have 1k annotated training samples and tested the accuracy for different subsizes of this set (200, 400, 600, 800, 1000) and divided the training and test data with a 80:20 ratio.
The pro... |
I have data for a large number of Trials (only three shown here) and ratings by subjects A, B, C, D, and E(many more in the actual data). In each Trial subjects were asked to determine whether event f or event n occurred:
df <- structure(list(Trial = 1:3, Trial_time = c("00:00:00.001", "00:00:00.002",
"00:00:00.003"),... |
I've occasionally seen people do something like the following. Let's say we have a survey battery with k questions, for instance an evaluation of red jelly beans, an evaluation of green jelly beans, etc. Then we have another battery of related questions, such as an evaluation of the color red, green, and so forth. The ... |
Suppose a random variable is binomially distributed with $G$ trials and success probability $p$.
Consider the expected proportion of successes, given that the proportion of successes is at least $k$:
$$
\bar{p}_k = \frac{1}{G}\frac{\sum_{l=kG}^Gl\phi(l,G,p)}{\sum_{l=kG}^G\phi(l,G,p)}
$$
where $\phi(l,G,p)$ is the binom... |
At least for R, Chambers/Hastie write in their book "Statistical Models in S" in chapter 2.3.2 "Coding Factors by Contrasts":
Ordered factors are coded so that individual coefficients represent
orthogonal polynomials if the levels of the factor were actually
equally spaced numeric values.
In my opinion, all uncertain... |
I am currently trying to perform some IPTW adjustment in the context of Cox Regression models.
I was interested in expanding my understanding of the differences between ATE vs. ATT estimation. I've come through this question What are some examples when the Average Treatment Effect on the Treated/Control (ATT,ATC) is mo... |
Say, we have two teams: Manchester City and Liverpool. Both of them have 3 games remaining with the following probabilities of winning/drawing:
Manchester City (win) --> 76%, 72%, 70%
Manchester City (draw) --> 10%, 17%, 19%
Liverpool (win) --> 65%, 79%, 77%
Liverpool (draw) --> 21%, 13%, 16%
Also, current score in... |
I have a client who wants me to analyze data from a randomized complete block design study. A large agricultural field was divided up into 16 plots and each row of plots was set up as a block containing four treatments. However, the design was implemented incorrectly. Instead of randomizing the location of each treatme... |
So I made a linear regression in R Studio to predict the price of a car based on the year of fabrication. The data set is called "audi" and my linear regression looks like this:
library(tidyverse)
library(modelr)
...
model_price_Year <- lm(data = audi, price ~ year)
summary(model_price_Year)
The result of the summary ... |
I have created a model for text generation using LSTM. I am having chess sequences learned, reporting only the pieces moved during the moves. So when I move a pawn on my game there will be "p", a bishop "b" and so on. Obviously this data has been mapped and taken in integer. The model used for learning is:
model = Sequ... |
In a natural language processing (NLP) problem, we have a couple of variables, say A and B. A denotes a phrase (1-2 words) and B denotes another phrase (>3 words). There is one target variable that demonstrates the similarity score between A and B for each instance. The similarity scores are characterized in one of the... |
I've been going over Berger's famous example of negative binomial vs binomial sampling leading to two different p-values conditional on the same observed data. To summarize, suppose we observe 9 tails and 3 heads. We could have arrived at this data set by 1) flipping a coin until we see 3 heads or 2) flipping 12 coins.... |
I have built a little neural network that I use for regression.
import tensorflow as tf
from tensorflow.keras.layers import Dropout
from tensorflow.keras.layers import Input
from tensorflow.keras.layers import Dense
from tensorflow.keras.models import Model
from tensorflow.keras.optimizers import Adam
import tensorflow... |
I got a dataset of 60 people from a between-subject approach that I was trying to check for normality. (Since I need information about normality for ANOVA post-hoc tests.) They were split in three different groups.
So, let's say I take the variable "visualDistance" (just as an example, since it really matters there), t... |
I have a dataset with multiple response variables that share the same predictor set (in particular, semantic differential scales in an attitudes task). I want to find the predictors that best explain each response variable. In a situation like this, is it valid to run random forests on each response and compare the ran... |
Here are some commonly seen statements about the importance of prevalence in the train and test sets when developing a classifier:
"Another reason not to rebalance datasets is that models should be
trained on datasets whose distributions will reflect the future,
real-world test cases for which they will ultimately be ... |
Suppose I have an independent variable which is available on a monthly basis as follows - the variable assumes a certain value for a given quarter, and then changes in the following quarter. Therefore, the chart of the variable resembles a step function of sorts, with discrete jumps.
Are there any potential problems wi... |
Suppose you have a regression model
$\tilde{y}$ = $X\beta$ + $\varepsilon$,
where
$\tilde{y}$ = $y$ - $\bar{y}$
and $X$ contains a constant.
If you estimate the model by OLS, does the estimated intercept has to be always zero because you demeaned $y$?
If true, does it make sense to include a constant at all?
|
I'm estimating a cause-specific hazard function using the coxph() function in R. This the first time I've run such an estimation. In performing model diagnostics, I used cox.zph() and found that the GLOBAL was significant at p == 0.0010 and many of my individual covariates (categorical and continuous) were also signi... |
I am currently reading up on my demand forecasting knowledge and had this question where I can't seem to find a quick answer for.
Let's say you have a couple of stores/restaurants/etc that sell more or less the same products. Each of these has some form of forecasting that they do for a certain product for their own bu... |
For a Galton-Watson process, I've shown that $\frac{Z_n}{\mu^n}$ is a martingale i.e. $E[\frac{Z_{n+1}}{\mu^{n+1}}|\mathcal{F}_n]=\frac{Z_n}{\mu^n}$.
However, I want to show that, for $n>m$,
$$E[Z_{n}|Z_m]=\mu^{n-m}Z_m.$$
But I don't understand how to compute the right-hand side using the knowledge that $\frac{Z_n}{\mu... |
I have performed a two-sample t test. I am comparing census block groups with a bike lane in the vicinity (n = 608) with block groups with no bike lane (n = 453), in terms of a population deprivation index ranging from -1 to 1.
The results show me that the index is lower (= less poverty) (M = -0.035, SD = 0.831) in blo... |
If we would like to find the optimal cut point using minimizes distance between ROC plot and point (0,1), is it a acceptable value in the field for the roc01 value? I have searched for the reference and could not find one. Could anyone give some guidance on this?
|
I have a linear mixed model with ~30 clinical/treatment variables and repeated outcome variables for patients. E.g. The outcome variable is Breast symptom scores, which were collected at different time points before and after treatment.
The aim of my modelling is to find variables associated with the endpoint - rather ... |
I am familiar with binary classification models, where the AUC is the metric from the area under the specificity-sensitivity curve, it indicates the performance on a dataset.
Now, I'd like to assess the performance of Cox proportional hazard models. I thought about using an AUC-related metric. One approach is using pac... |
I have previously used McNemar's test to compare PCR and bacterial culture using the same sample. I now have two different samples from the same patient taken from tonsills and quincy. So I now have 4 results from 4 different tests. Does there exist a statistical test to compare all of my data? Using McNemar's test I c... |
I understand that when we fit an OLS regression to the log(y) (as either a log-linear or log-log model), the predicted value from that model [log(y).hat] cannot be simply exponentiated to solve for y.hat. I have read several authors of econometrics books that suggest just reporting the prediction as log(y).hat (i.e., N... |
Let's say we have a bandit with two arms, and we know that one arm has a reward probability 0.5 and the other is unknown. How do we create a strategy to maximise the reward?
|
In AB testing context, if we have a control group and test group (2 groups), and I'd like to calculate the relative difference (Mean test/ Mean control -1) and the confidence interval of this ratio difference, I would need to calculate the standard error for the ratio difference.
I've seen a calculation of the standard... |
set.seed(42)
a <- rnorm(200) # generate random data
hist(a, probability = T) # histogram
d <- density(a) # calculate density
polygon(d, density = 10, col = "deeppink") # plot density
abline(v=0, col="blue") # draw boundaries
abline(v=0.1, col="blue")
If I want to know the probability of the variable between 2 points (... |
So I have this AR data series, AR1, mostly (for the argument). I also have an exogeneous regressor, only the DGP I suspect is something in the line of:
$ y_t=y_{t-1}+\alpha x_ty_{t-1}+\varepsilon_t $
Can an ARIMAX estimate this? What's the specification? If not, what?
|
I have the regression statistics for the same regression run on two different samples, and am asked to explain whether it is possible to test for equality of the coefficents, $\beta_1$and $\beta_2$ between the two samples.
$y_1 = X_1\beta_1 + \epsilon_1$
My instinct is to treat it as if they came from the same regressi... |
I have an $\mathrm{ARIMA}(1,1,0)$ process $X_t$, for which I know the values $X_0=a$ and $X_T=b$. I want to sample paths $(X_t)_{t=1..(T-1)}$ consistent with the boundary conditions.
One way to do it is sampling all the intermediate points at the same time: the process $\Delta X_t$ is Gaussian, with known covariance, a... |
Data set:
I'm working on a linear regression problem where my train set $X$ is of shape $(703 557, 53)$. Each row is a client's features, which could be its age, its gender, how many calls we received from that client during a month... The data set is transformed in the sense it's not raw data but some categorical vari... |
I have a binomial response variable (a sort of conversion rate for a search mechanism) and just one independent variable, which is the "type" of the search bar template. To illustrate, my data would look somewhere near this:
Response
Group
0
A
1
B
0
B
1
C
0
A
One important detail is: the conversion ... |
Suppose I have a highly skewed distribution and a proxy measurement. I use this proxy measurement to bin the samples of this distribution into different "strata". I then take N samples from each strata (therefore I take samples from each strata with equal probability). What is this approach called? It doesn't appear to... |
I have a dataset of abundance of a kind of rodents(AA) in 63 sites, and want to know which environmental factors can explain the rodent abundance, and because the sampling sites are basically locate in two parts of my research area (northern part and southern part, NS), I used glmmTMB function to build a negative-binom... |
I'm currently struggling to find a appropriate method to analyze my experiment.
Currently, I have 4 groups of subjects, and each subjects made a choice between 3 options(A or B or No choice). Below table shows a portion of my data.
Group
Choice
1
A
2
A
2
B
4
A
3
No choice
1
A
2
A
My hypothesis i... |
I am using the formula below to estimate the fixed effect panel model in R:
model_fe <- plm(formula = y~ x, data,
index = c("firm ID", "year"),
model = "within", effect = "individual")
However, I need to include 3 fixed effects simultaneously in the model (firm, industry, and year), b... |
Let
$X_1,X_2,...,X_n$ be independently and identically distributed random variables according to a distribution $F$.
There are constants: $c_1,c_2,...,c_n$.
Define a new random variable $X=\max_i(X_i+c_i)$.
Is it possible to derive the distribution of $X$ in terms of $F$ and all $c_i$? Based on the derivation, when wo... |
I would like to analyze the association between dietary intake and a specific health outcome. Now suppose I have 100 subjects, each having 10 repeated measurements of dietary intake collected from the following 10 weeks (i.e. the data shape is 100*10). And in the 11th week, I have acquired the follow-up outcome of the ... |
Let's say we want to forecast sku-level demand one year and four months ahead, and we have daily demand data for the last 3 years.
Taking into account that most daily time series at sku-level contain many zeros. Is it better to group the demand by month and forecast 16 months ahead?
With the time series showing lumpy a... |
I am currently implementing BART to model the distribution of a marine species (using the embarcadero package). I am using environmental covariates, but also some prey data that are very-much zero-inflated (already log-transformed). One example here, for the distribution of a variable that is retained by the model (x =... |
I apologize if this question will seem odd, but I am quite new to statistical analysis.
I performed coinfection experiments with a total of 12 conditions, and I have 3 measurements per condition.
I did a Shapiro-Wilk test to check for normality: the values of some conditions are normally distributed, while others are n... |
I've asked a similar question here in CV but because I'm still unsure what my options are I've rephrased the question slightly.
I have a very simple model with no random slopes:
y <- rnorm(7000, 0, 1)
x <- rep(c("A","B"), each=700, times=10)
g <- rep(c("g1", "g2", "g3", "g4", "g5", "g6", "g7", "g8",
"g9", "g... |
I have a compositional data from an arena experiment in which the duration of an animal in specific zones was denoted. The time in the arena was fixed for all individuals which makes the durations compositional. My two fixed factors are a numerical social factor and the categorical group size with 2 levels. Additionall... |
Suppose that I am throwing a triple dice (i.e, three dices simultaneously) $n$ times. Then number of times that the sum of these three dices $k=3,\ldots,18$ appears is my sample $X_1,\ldots,X_n$ is the random variable $S_k$. Now I have derived that $S_k$ follows binomial distribution $B(n,p_k)$ where $p_k$ are the prob... |
I am running auto.arima/ETS models from the forecast package in R on monthly seasonal time series. I see the following fitted picture. Blue - actual data, red - the fit.
I see that the fit is not capturing the series well - specifically it is not capturing well the peaks and foots. But the model is recognizing the gene... |
The below graph seems to be random but I think the peaks seem to repeat after a certain period. Are there any statistical tools I can use to analyze this?
Edit:
I am adding the plot of its autocorrelation:
|
I want to build survival analysis model (Cox PH) with time-varying covariates. Time-varying covariates are macroeconomic variables. Therefore, they are same for each individual at the same calendar date. The aim of this model is to predict probability of some event occurrence during following 3 years. I have only 17 ca... |
I am currently reading paper on Variational Autoencoders by Dr. Kingma and Dr. Welling, and am having a few confusions.
Question 1: What is a spherical Gaussian latent space? How do we interpret it
Question 2: In equation 1.15, does the Roman I in standard deviation mean 1 or does it have a different meaning?
Could an... |
I'm trying to build a Residual neural network with 2 layers , and I'm having difficultiy understanding what are the equations for the backprop for the following :
$$
W_{2}x+tanh(W_{1}x+b_1)+b_2
$$
for example , I tried to arrive at the jacobian for x , assuming some vector V from previous layers which propogate the ... |
I have used the rugarch package in R to construct a sGARCH and an eGARCH model, but have come to doubt then assessing my the models. Does the eGARCH function in rugarch transform the log conditional variance into normal variance, or do I have to transform the models forecasted sigmas by hand?
|
I am trying to understand what is and what is not considered Bayesian inference. Let say I am to estimate a parameter or a vector of parameters say $\theta$ and I have data on some features of the distribution say the first two moments $\hat{m_1}$ and $\hat{m_2}$. I think it is OK to use Bayes theorem to derive a sort ... |
Evaluating ML models is a fundamental task and subfield of the Machine Learning practice. On the other hand, I was not able to find any existing materials, guides, protocols, papers on how to proceed with evaluating/scoring complementary datasets (resulting multiple new features a.k.a feature set) when added to an exis... |
A common problem with decisions trees is that they don't generalize outside the range of the data, e.g. time series. For this reason, I want to code a regression version of the decision tree, that performs regression estimation instead of estimation with the mean. I haven´t seen this kind of implementation in ML packag... |
I want to build a recommender system to suggest similar songs to continue a playlist (similar to what Spotify does by recommending similar songs at the end of a playlist).
I want to build two models: one based on collaborative filtering (so I need something like user ratings about songs?) and another one, a content-bas... |
I have 10 different 2D datasets which each have 200 datapoints. Each data point has a 'quality' property ($Q$) which somewhat depends on the area ($A$) of that datapoint. There is a (relatively) strong linear relationship between these two properties for most of the datasets (row 1 of the figure). Call the correlation ... |
I am new to mixed-effects models and trying to ensure I understand them appropriately.
I am analysing the results of a 2x2 cross-over intervention study. Essentially, I have 50 subjects who completed two lifestyle intervention programs (program one and program two), with a 6-washout separating the two interventions. Th... |
I have a dataset containing traffic crash information. One variable in the set is the number of fatalities that resulted in the crash, which has the values 0, 1, 2, and 3.
I am working in R and want to create a logistic regression model to predict the probability that fatalities >= 1. In order words, what is the likeli... |
Does anybody have experience with the SKlearn multinomial regression (model = linear_model.LogisticRegression())?
My data looks like this:
Month Year Y
6 1990 Category1
6 1990 Category1
6 1990 Category3
... ... ...
10 1993 Category2
10 1993 Category3
Each... |
If the ground truth of the class/cluster/segment that our observations belong to, is known in advance, why would someone choose to perform clustering instead of classification? In fact, doesn't the problem "automatically" become a classification problem?
This question came to my mind as I was going through some cluster... |
I am investigating whether earnings differences have widened between different social classes in several European countries by comparing two different periods. The picture below shows the findings of an interaction, here in the code:
lm(income ~ class + age + head_sex + household_size + period*class, data = df)
The b... |
Common understanding seems to be that when we're doing machine learning (classification or regression) using linear models, there are basically two ways to encode ordinal variables:
Ordinal scale: 1, 2, 3
One-Hot: [1,0,0], [0,1,0], [0,0,1]
I don't remember where I've learnt this, but this is how someone told me to do... |
I am new to A/B test; I am interested to generate confidence interval in python language. At the moment I have ratio (proportion), for instance, ratio of add to cart to the total sessions in control and experiment variant. I have two code snippets:
A
number of success=204,503
number of trials=965,760
from statsmodels.s... |
Let $Y, X, Z$ be random variables. It holds that $E[E[Y|X,Z]|Z] = E[Y|Z]$. See e.g. here Theorem 1 viii
But I am particularly interested in the expression $E[E[Y|X]|Z]$. Is there a way to relate it to $E[Y|Z]$?
I tried to follow the proof with discrete random variables but I don't know how to simplify it further:
\begi... |
Can we say that, independently of the computer, computing relu and relu' is cheaper than computing f and f' for some other smooth non-linear activation (e.g. logistic, tanh)?
If not, what are the standard comparisons for common computers?
Are nice refs available?
Thanks in advance!
|
Suppose the statistics values are given as follows:
$\sum_{i=1}^{n}x_i, \sum_{i=1}^{n}y_i, \sum_{i=1}^{n}x_iy_i, \sum_{i=1}^{n}x_i^2,\sum_{i=1}^{n}y_i^2$
Firstly, we can compute the regression coefficient $\beta_0, \beta_1$ such that:
$Y =\beta_0 + \beta_1 X$
An ANOVA (F-test) can also be carried out to see whether X a... |
I am working on dataset where I need to eliminate the random effects from the input response variable. For this, I am first extracting the random effects by using extract_random_effects() function from mixedup package.
After this point, I am not sure how to use the values of effects to adjust my response variable. For ... |
I fear this is an ill-posed question that has been asked a million times, but what are the basic characteristics of the penalty multiplier (usually called $\lambda$ or $\alpha$) in Ridge Regression (and perhaps the LASSO)?. In particular, I'd like to ask:
If there are any basic constraints on how large or small $\lamb... |
Just to clarify, I think I understand all the derivations in context of VAEs pretty well; however, there is one last thing that I need explained. There are multiple related derivations of the evidence lower bound (ELBO).
The following uses Jensen's Inequality to form the bound.
$$
\begin{align}
& \operatorname*{arg... |
Given a ranked list, which contains values with high uncertainty, I would like to remove as many of the middle values that have high overlap in uncertainties as possible, and be left with more or less two lists... the top X values and worst Y values. I will use the top X values for screening and other things.
item name... |
I have a total of $N$ units that are assigned to $D$ classes based on certain combinations of characteristics. If each unit is assigned to only one class, then the problem reduces to the usual compositional data with $D$ compositions, which are non-overlapping. For such a scenario, we may apply centred log-ratio transf... |
Suppose two distributions F and G that have the same extreme point ($x^F = x^G$) and
$$\lim_{x \to x^F}\frac{\bar{F}(x)}{\bar{G}(x)} = c \in (0, \infty)$$
Show that F and G belongs to the same domain of attraction of a GEV$(0,1,\xi)$(Generalized extreme value). Also, provide a link between the normalization constants.
... |
I have a directed acyclic graph with N nodes, each of which is assigned to one of K groups, with K < N. My hypothesis is that nodes in the same group tend to "line up" along a linear path. Specifically, if we define a connected pair of nodes as a pair for which either one is reachable from the other, I want to test whe... |
There has recently been a statistical report regarding whether Cypriots are ready for a female president. There was a difference in the opinions of men and women and I'm wondering if it is statistically significant.
The sample size is 800 and based on the numbers it seems that 50% are men and 50% are women (this was no... |
Let $f:[0,\infty)\to \mathbb R_+$ denote the PDF of a random variable $X$ and $c>0$ a constant. I want to evaluate the following integral:
$$I(c)=\int_0^\infty{\min(x,c)f(x)dx}.$$
This can be written as
$$I(c)=\int_0^c{x \cdot f(x) dx} + \int_c^\infty{c \cdot f(x) dx} = \int_0^c{x \cdot f(x) dx} + c\cdot\mathrm{Pr}(x>c... |
It is said that variance of the difference of two independent variables is the sum of variances (topic - Confidence intervals. Two means. Independent samples)
I tried to experiment with small dataset of two variables. i found that sum of variance of 2 independent variable is not equal to variance of difference. the exp... |
Note: I've edited my question based on comments from @whuber.
I have a time series of the USA's COVID-19 daily deaths smoothed to mitigate massive, weekly data dumps. My two-plus years of data comes from Our World in Data. I have a simple Pandas data frame indexed by day and one column with the values. I tested the tim... |
Are all complete statistics functions of each other?
For example if I have T and S complete statistics
Can you always write T in terms of S and S in terms of T?
|
Cox proportional models have been done with this result.
The two groups (C, B) had overlapping confidence intervals, while the p-value was significant at p<0.001. I have used this code to get the result :
coxph.fit<-coxph(Surv(time_mu , event)~group, data=df)
My goal is to find out if there is a significant differenc... |
I have been trying to wrap my head about the parameters estimation and forecasting of moving average model.
It appears that the fitting use the innovations algorithm. If I understood correctly you assume your optimal linear predictor has the form
$\hat{X}_{n+1} = \sum_{j=1}^{n} \theta_{n,j} (X_{n+1-j} - \hat{X}_{n+1-j}... |
I'm doing a K-Means model for first time, thus very low experience. I read that it is not bad to discard variables through some PCA analysis. After standardizing the data, the loadings (weights) for two variables in the first component are very similar (0.52 and 0.53). These variables have 0.91 of correlation. In subse... |
I have a simple question about QQ plots in simple linear regression, but I am a bit confused about the plot: depending where i look the y axis is different: it can be either 1) residuals 2) standardized residuals 3) the actual independent variable. I wonder which one is better to use? I know that we are checking the ... |
I am completely baffled.
I'm interested in generating p-values, and specifically p-values for the t test statistic. One slow approach to doing this would be to generate samples of individual observations and calculate the test statistic directly ("observation based sampling"), which can then be used compute the p-value... |
I've been reading up on avoiding data leakage in the preprocessing step of a machine-learning/data-science pipeline, specifically that it is wrong to apply preprocessing to both training and test data simultaneously. Rather, a preprocessing model should be fitted to training data and then applied to test data, i.e. par... |
I have a stochastic simulation model in which three types of mean (arithmetic mean, geometric mean, and harmonic mean) are calculated for three different variables. I run the simulation 1000 times so that at the end I have 1000 values of the three types of mean.
When I show the summary (average) of the 1000 simulation ... |
I have a practical / applied statistics question. I'm dealing with a specialized dataset with a very small sample (i.e. n < 10). In the sequence of observations, it is possible that a new observation is an extreme. However, instead of "removing" the outlier, I'm wondering if there is a way to "adjust" the value to b... |
Suppose I have a multiple regression model:
$y = \beta_0 + \beta_1x_1 + \beta_2x_2 + \beta_3x_1x_2 + \epsilon$
where
$y$ is continuous
$x_1$ is dichotomous (0 or 1)
$x_2$ is continuous
If $x_1 = 0$, then this model becomes:
$y = \beta_0 + \beta_2x_2 + \epsilon$
which has the format y = intercept + slope*x_2 + epsilon
a... |
The central challenge of Machine learning models is perform well on unseen data. The data is randomly split into train and test set. The test set acts as surrogate for unseen data and is used to calculate generalized error.
However, discrete choice models (such as multinomial logit model) don’t require to split the dat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.