instruction
stringlengths
9
38.7k
I am looking at an example of using PCA: https://wiki.q-researchsoftware.com/wiki/Principal_Components_Analysis_Biplot Specifically, Example 2 has data What are the points I'm looking at the biplot? Are those the tips of the projections of the vectors to the plane spanned by the principle axes? Are the lengths of the ...
I have run mixed beta regressions on proportional data but I am struggling in my interpretation of the results. I understand this has been asked before but I have a categorical predictor with four levels and I want to understand exactly what my results mean. In my example I have the proportion of particulate matter fou...
I want to create synthetic data from stitched distributions in order to test some models on them (for example Gaussian stitched with a GPD at quantile q). I'm currently simply sampling N*q points from the Gaussian, and (1-q)*N points from the GPD. The issue is that there's a clear seperation in the resulting PDF, makin...
I want to perform a Z-test for two variables: $ X $ (Buyer proportion) and $ Y $ (Spent proportion \$ ). Below the table you can see a dummy example of the data I have: Let's assume the conditions to apply a Z-test are met (populations normally distributed, random samples,...).Then, to see if there is a significant d...
Just as titled, I'm curious as to what should you choose to represent a measure of central tendency for a zero-inflated vector or such. My background says go "mean" if normally distributed, "median" if not normally distributed. I wonder if median is a preferred measure of central tendency for a zero-inflated dataset th...
I was wondering if the ARIMA model is constrained to predict online buzz data (time series data). What I want to do: Use the past round 30 months data to predict next month; and I use Python Here are my steps for prediction My original data The number of data is 972 (unit = days). enter code here I detect the outlie...
$$SS(\text{Contrast}) = \frac{(\sum_{i=1}^{k} c_i\bar{X}_i)^2}{\sum_{i=1}^{k} c_i^2/n_i}$$ This is a formula from Howell's Statistical Methods for Psychology. The author claims that one of the major advantages in using linear contrasts is that they can be easily converted into sums of squares. But he didn't explain how...
I have three variables I am comparing: two have scores which can range from 0 to 3 and one has scores which can range from 6 to 30. I want to present these variables together to allow comparison between them, for example on a line graph, but I can't find a good way to rescale them to be on the same scale. I want to com...
Why does the b-value in logistical regression tell how much do the odds change when X increases by one? For example if we have people who smoke and people who don't and we are trying to find out how does smoking affect coronary artery disease. If we have total people of 500, 210 people who smoke and 290 who don't. Of t...
The replication fallacy is the belief an obtained p value implies a probability of 1 – pvalue that an exact replication of the same experiment would lead to a significant result. In his "Mindless Statistics" article from 2004 Gigerenzer says that answering the following statement to be true (for a study where the p-val...
I have a dataset where I collected cortisol samples 3 times a day, for 3 days at 2 timepoints. I am interested in looking at changes in cortisol right after awakening, at 0 min after awakening, 30 min and 60 min. However, I know that participants actually woke up earlier and took the cortisol samples much later than th...
I distribute n balls into m buckets randomly and uniformly. Let's assume that n/m is greater than 1, and m is a large number. Next, I choose a bucket at random, but the probability of selecting a particular bucket is directly proportional to the number of balls it contains. In other words, buckets with more than n/m ba...
As the title suggests. I am trying to calculate the probability of a losing streak given the sample and number of consecutive losses. I have tried doing this with excel (picture below) and I am not sure if it is done correctly.
This question is more like a philosophical one. I constantly find the notion of a distribution over distributions and redundant. Why don't we conflate that with the notion of a single distribution (by integration)? For example, suppose our parameter space is the closed interval $\Theta = [0,1]$. A point $\theta \in \Th...
While I am generally aware of how the Policy Gradients algorithms work theoretically, I was recently a bit confused between two definitions of the Policy Gradient and later the derivation of the REINFORCE algorithm, with a focus on episodic cases. The gradient has been derived in Sutton's book as: $$\nabla_{\theta}J(\t...
Can someone please show me how to get 95% confidence interval for c-index in the elastic net codes below: ############## Tuning of alpha -elastic net parameter############### alphasOfInterest <- seq(0, 1, 0.1) ## aplha=0 corresponds to ridge regression and alpha=1 is LASSO cvs <- lapply(alphasOfInterest, function(cu...
I have a serious doubt about the quality of this approach: Firstly, a geospatial analysis was conducted using accident frequency and wind speed data to segment the map of a country into clusters using the K-Means algorithm. Subsequently, a GLM Regression (Poisson GLM) was used to explain accident frequency by using the...
I have used the tsDyn package in R to estimate a VEC model for the data in the graph, and I am unsure about my interpretation of the output. > m1=VECM(data=cbind(X,Y), lag=1, estim="ML"); summary(m1) ############# ###Model VECM ############# Full sample size: 120 End sample size: 118 Number of variables: 2 Number ...
I have conducted a study with 20 participants. During the study I measured 9 different plasma hormones at 5 different times before and after an intervention. As an exploratory study I would like to compare the hormone levels before and after the intervention to see if they differ. Even though the same hormone has been ...
I have several dozen observations from about 100 people who participated in an ecological momentary assessment study. I am using mixed effects models to estimate the effect of $X_{t-1}$ on $Y$. Approach 1 is to include $Y_{t-1}$ as a covariate, e.g.: y ~ y(t-1) + x + x(t-1) Approach 2 is not to include $Y_{t-1}$ as a ...
The goal here is to grow a decision tree with depth 1 based on the small dataset below. I can use the sum of squared errors as measure to select the best variable split. $$ \begin{array}{|c|c|r|} \hline \text { Attribute } 1\left(x_1\right) & \text { Attribute } 2\left(x_2\right) & y \\ \hline 1 & 2 & 3.5 \\ \hline 1.3...
I am rewatching Statistical Rethinking 2023 - 11 - Ordered Categories because McElreath mentions some causal assumptions about survey responses, which I am interested in. He proposes a causal diagram for a survey. In this diagram Participation (in the survey) is included to illustrate a collider being conditioned on t...
I developed a script to run time series models on people data, and I re-run the Arima model fitting/forecast reconciliation algorithm monthly as new data comes in. I use the grouped/hierarchical time series method laid out in 11.4 of Hyndman's Forecasting: Principles and Practice (https://otexts.com/fpp3/tourism.html)....
I have a collected data regarding single arm studies treating certain disease with either technique A or technique B with no direct comparison between the techniques in each of the studies. for example: study technique 1 -> A 2 -> A 3 -> B 4 -> B Is it possible to do meta analysis and...
Good day, I am a medical student currently working on a thesis focused on metabolic syndrome. My sample size is 45 individuals. I have encountered multiple challenges in assessing the normality of my data. One of the variables appears to exhibit symmetry when visualized on a histogram, and the data closely align with t...
I am currently following this post, which details how BERT was trained. I had a few questions about the classification task: In the post, it mentions that the authors of BERT decided to add classification into the language modeling in the following way: However, is there a reason why the authors did it this way? Why ...
I am trying to compare the means of two groups (male/female) for different attitudes. Since my data sometimes violate the assumptions of normality and heteroscedasticity, I was planning to do a Mann-Whitney U Test. However, my professor insisted that I still use a parametric test and told me that a One-way ANOVA is mor...
Let’s consider the following classic model selection + performance estimation strategy for some supervised learning task. We split our data into train and test dataset in some proportion (e.g., 25% / 75%). We use train dataset for model selection (algorithm selection, feature selection, hyperparameters tuning) by perf...
Let's say we have the following population equation. $$ y = \beta_{0} + \beta_{1}x_{1} + \beta_{2}x_{2} + u $$ Then to explain the interpretation of $\beta_{1}$ or $\beta_{2}$, we can look at the partial changes. $$ \Delta y = \beta_{1} \Delta x_{1} + \beta_{2} \Delta x_{2} + \Delta u $$ Now, holding all other factors ...
Hello I had a very interesting discussion and I need your help in clarifying the correct answer. TLDR: Problem statement for a layman: Given I am a woman and I want to become professor, and given that $75\%$ of the professors are male - would it help if I fully control and change my gender by surgery, etc. to become a ...
In a previous question (linked here), I sought guidance on forecasting thousands of time series. Based on the suggestion to treat it as a regression problem, I used the LightGBM model with extensive feature engineering. Feature engineering involved: Date features extraction (e.g., month, year, day_of_year) using Panda...
I have a dataset where several features are missing values only if another feature is also missing a value. Does this indicate that the missing data is missing not at random (MNAR)? Additionally, how does this affect my next steps in regard to dealing with the missing data? It is my understanding that MNAR data is quit...
Following example 2 in this paper, suppose I wanted to estimate $\psi = E[E[Y|X,A=a]] $ and I had an influence function follows: $$ IF(\psi) = \frac{A}{\pi(X)}\{Y-\mu(X)\} - \psi $$ where $\pi(X)$ is the propensity score and $\mu(X) = E[Y|X,A=a]$. With estimator $$ \hat{\psi} = \mathbb{P}_n\bigg[\hat{\mu}(X) + \frac{A\...
I would like to ask about estimating parameters of Weibull distribution (a, and b) I am trying to code likelihood of weibull distribution with survival data $(T_i, \Delta_i),$ which I believe is: $(ab)^{\sum\Delta_i} \times \prod((T_i^{b-1})^{\Delta_i} \times \exp(-aT_i^b)).$ I am trying to type this formula in R and t...
I have a predictor $\hat{y}$. I have noticed that the correlation between $\hat{y}$ and $y$ are quite positive, above 50% even, while the $R^2$ is negative. Note that this is an out-of-sample $R^2$ and correlation. I train my predictor in-sample and test the correlation and $R^2$ out of sample. Can someone explain what...
Consider the following simple linear regression model: $y_i = a + b \cdot x_i + \epsilon_i \space\space\space\space\space\space\space where \space i= 1, 2, 3, \cdots , n$ here $\epsilon_i \space's$ are i.i.d. normal random variables with mean 0 and variance 1. (a) Find $\hat{a} \space and \space \hat{b}$, the maximum l...
I want to understand why and how variance inflation factor is taken in account with the formula [1+(m-1)*ICC], where M= Size of clusters and ICC is the intracluster correlation. As I have deduced till now, the total sample size (m*k) = variance within clusters + variance between clusters. Can anyone help understand the...
Say I have $k$ categories of responses to a survey question from $n$ respondents. Assume n of each category is about 50, so we can't just work off asymptotic behavior necessarily. How do I compute confidence intervals from the survey results for each response category? My point estimate for $\mu_k$ is obviously $\hat{\...
There are two stochastic processes, $\{ Y_{1,t} \}$ and $\{ Y_{2,t}\}$. If I take them as an ordered pair, what notation do I use: $\{(Y_{1,t},Y_{2,t})\}$, $\{(Y_1,Y_2)_t\}$, $(\{Y_{1,t}\},\{Y_{2,t}\})$, something else? I also want to use a shorthand to denote the pair, something like $\{Y_t\} := \{(Y_{1,t},Y_{2,t})\...
Wold's representation theorem states that every covariance-stationary time series $\{Y_t\}$ can be written as the sum of two time series, one deterministic and one stochastic: $$ Y_t=\sum_{j=0}^\infty b_j\varepsilon_{t-j}+\eta_t $$ where, among other things, $\{\eta_t\}$ is a deterministic time series, such as one repr...
I have a list $l$ with $E(|l|)=1+\alpha$, where $\alpha>0$. I choose a random element uniformly from $l$ and want to know what is the expectation of the index of this element in the list. If $\alpha$ is an integer this question is simple, as I need to calculate $(1+2+...(1+\alpha))/(1+\alpha)=(2+\alpha)/2$. Is there a ...
I am studying what the consequences of heteroskedasticity are. And i found that assuming that the model is linear in the parameters (i.e $Y=X\beta+\epsilon$), is identifiable, has no perfect collinearity (i.e $X$ is full column rank), is exogenous (i.e. $E[\epsilon|X]=0$) and has no serial correlations (i.e. $Var[\epsi...
I wish to perform linear regression over a data set whose entries can be divided into two or more groups. The groups could be, for example, the date at which observations where taken, or the patient Ids. It seems that this can be approached by fitting a linear mixed effect model. Or, are there more simpler yet equivale...
I have a model metric (a single value) and a list of sample metrics from benchmark quasi-random models that I would like to do a t-test on to figure out if the model metric result is significantly different from the benchmark models. I'm using scipy.stats.ttest_1samp in python the following way: ttest_1samp( be...
I have multiple observations collected by doctors where they give the differential diagnoses, the 10 most probable diseases (d). I want to calculate the inter-observer similarity. my data looks like this case 1: doc1 = [d1,d2,d3,d4,d5,d6,d7,d8,d9,d10] doc2 = [d3,d12,d1,d4,d5,d6,d7,d8,d9,d10] doc3 = [d1,d4,d13,d14,d5,...
I have the following problem: I generate Dummy Variables with the recode and the factor command. In my regression I got different output for the "lower middle" variable and couldn't explain why this was happening. In the original data set, the variable was coded as follows: lower class = 1; lower middle class = 2; midd...
I have an experiment where a group of subjects must learn to associate some sounds to images (say, sound 1-image 1, sound2-image 2,... soundN-imageN). They do a memory test (we present sounds and images several times. If they think it is a correct pair, they should mark yes. Otherwise, mark no. (pre test) Then, the sub...
Suppose you have three variables $y\in\{0,1\}$ and $x_1\in\mathbb{R}$ and $x_2\in\mathbb{R}$. I want to produce data with the following generative process which corresponds to a Mixture of Gaussians (MoG): $$ \begin{align} y\sim & Ber(p)\\ \mathbf{x}\sim & \mathcal{N}(\mu_y, \Sigma_y), \end{align} $$ where $\Sigma_y$ i...
Let's start with an example. Consider that each individual $i$ in a group of size $n$ throws a dice, where each dice is different (random variable $X_i$, notice subindex $i$). In social sciences, we tend to be interested on the distribution of the group's result. However, we tend to think of the latter as a stable, cl...
I want to apply GCN model to predict next link based on similarity of values between its neighbors nodes. For example I have total of 13 nodes and edges = [ (1, 2), (1, 3), (2, 3), (3, 4), (3, 5), (4, 5), (5, 6), (5, 7), (6, 7), (7, 8), (7, 9), (8, 9), (9, 10), (9, 13), (10, 11), (10, 12), (10, 13), (11, 12), (11, 13),...
I have the data below and We have a game, that has a prize jackpot. The jackpot prize starts at 1,000 credits and every round you play the jackpot increases, until someone wins the jackpot and it resets back 1,000 credits. To play a round you 'pay' 1 credit and the jackpot prize increases by 0.011382 (1.1383% of your 1...
I generated 1000 confidence intervals with 95% significance level and I am testing H0: μ = 0 vs H1: μ != 0. What means if 97.5% of my confidence intervals have the 0 included? It should be exactly 95% because of the significance level right? And what means if 85% of my confidence intervals have the 0 included? It also ...
I am comparing the number of female subjects represented in studies for a consensus statement from 5 years ago, to a current statement. I have counts of female representation for each statement broken down into categories of 0%, >0-20%, >200-40%, >40-60%, >60-80%, >80-100%. (see below). Is there are way to compare whet...
I won't go into the way the data is built because I want to keep the discussion general. Relative to balancing, I couldn't find a lot of materials online about the results of cost-sensitive learning. Basically, I have data $X,y$ of relatively high dimension. About $<2\%$ of $y$ is positive. More than that, I have relat...
If my model already has an interaction term (ex. sexHispanic ethnicity), how do I test the Cox proportional hazards assumption using interaction with time-dependent covariates? Would I enter timesex timeHispanic sexHispanic and sexHispanictime? I am using SPSS so I need to test the Cox PH assumption using time-dependen...
My understanding is that rejection sampling for some target distribution $p_{X}(x)$ and proposal distribution $\tilde p_{\tilde X} (x)$ follows the process below: If there is some scaler $c$ such that $c \times \tilde p_{\tilde X} ( x) > p(x)$ for all $x$ then proceed to step 1; otherwise, rejection sampling based on ...
My issue is as follows: In my model there are 4 different states, which each have a calculated probability of happening. I also have calculated covariance matrixes for my variables in each of these states based on historical movement. So I have a covariance matrix for state 1, state 2, state 3, and state 4, plus a prob...
I’ve conducted a time-to-event analysis (accelerated failure time) for a research project, looking at the effect of an intervention on the probability of needing a blood transfusion during surgery. Instead of time however, I’ve used blood loss (in milliliters) as a proxy variable for time to event. Everything I have re...
I have a data set of 182 concurrent count observations using two different methods and I was wondering what would be the best test to evaluate how closely related they are to each other. My data set looks like this: Datetime Count1 Count2 2021-09-06 10:00:00 186 226 2021-09-08 09:00:00 154 124 2021-09-11 16...
I am struggling with a situation. I have an RCT where there is an intermediate variable and an ultimate endpoint of survival (a time to event endpoint). I want to establish that the intermediate variable is a casual mediator of the treatment effect on the ultimate endpoint i.e., OS. I wonder how can I do that and is th...
I am building a "time to event" model using the coxme package in R. I have a lot of mixed effects (15) that I want to input into a global model and find the best fit for - is there a model selection package like MuMln that can handle this type of model? If I try to run an ANOVA on the global model, it can't compute it ...
I've seen versions of this question but not specifically answering the question of a statistical test to compare the beta coefficients for two independent variables (x1, x2) but the same dependent variable (y1). In this example, y is a count variable, and x1 and x2 are binary {0,1} (and correlated) variables. So I have...
Can I use the strength of neural networks for data analysis? Suppose I want to find a fit to a noisy sine curve $1 - V \sin(w \theta+ \phi)$ and I want to find an estimate for parameters V, $w$ and $\phi$. Can such a parameter estimation be done using neural networks? If it is helpful, I am aware that Pytorch can certa...
I would appreciate some help figuring whether a linear mixed model (LMM) is a good choice for my data. My experiment is a 3 (neurostimulation target) X 2 (task block) repeated measures design that takes place over 3 sessions on different days. I have data from 27 subjects. Each session involves a different neurostimula...
I've been training a neural network to learn simple functions like addition. When I train this neural network from scratch, about half the time the neural network gets great accuracy, and the other half of the time the neural network fails to learn anything and the loss remains flat. This seems like the training gets s...
I am training Cifar-10 dataset of 32 x 32 sized coloured images for image classification. Here is the link/source to the dataset and its description: https://www.cs.toronto.edu/~kriz/cifar.html The CIFAR-10 dataset consists of 60000 32x32 colour images in 10 classes, with 6000 images per class. There are 50000 training...
When an item is clicked, it generates revenue equal to the cost per click (CPC). As such, revenue = I(click) x CPC. I want to select the item with highest expected revenue to be shown. I have a machine learning model that predicts the probability of click (eCTR). The obvious idea would be to rank by expected revenue = ...
I'm working to see if a machine does better than a worker in terms measurement (by having a measurement from an expert be the control). So my dataframe contains the Measurement Value, Measuring Device, and the slide number for the repeated measure. The Measurement wasn't normal so I used friedman test. The p.value was ...
What type of non-parametric test would be suitable for the dataset shown in the image: The sample size is 200 each for both variables. The data value can vary from 0-4 for both variables. The histogram or Q-Q plot doesn't show any normalcy. Hence, I also tried to use Mann-Whitney U test where I defined both variables ...
Does post-hoc for friedman tests or nonparametric testshave like a homogeneous subset table from SPSS? Mean doesn't represent it well so I tried using median but my data was zero-inflated so the most of the medians even in supposed homogeneous groups have lots of zeroes Example:
This is a hypothetical problem for me at the moment because (1) I have no such data and (2) often software provides a forced choice in these cases so I doubt it would be a problem if I conducted a survey with modern tools. But it is an interesting observational error to me. Suppose we have a Likert-type item on a surve...
I have done two prediction model in R as an example as below: model 1: glm(y~x1+x2+x3+x4+x5+x6+x7, data = dat, family = binomial(link = "logit")) model 2: glm(y~x1+x2+x3+x4+x5+x6+x7+g1+g2+g3+g4+g5+g6, data = dat, family = binomial(link = "logit")) then plotted the ROC curves and calculated AUC for each after 10-fold...
It is often the realistic advice I have seen here that Gaussian GAMs are not regressions with which you can easily approximate an effect size for, as the effects are of course non-linear. However, we do not have this issue with respect to logistic GAMs, as we can estimate the predicted probability or odds ratios of the...
I am working on a project in my R introductory course but I really dont know what statistical test to use. I got my data from the Malaria Atlas Project. I want to know if the the Use of insecticide treated nets (Proportion of population that sleeps under a Insecticide treated net during a defined year) and Use rate (Pr...
I'd like to have your feedback about the interpretation of the Average Marginal Effect (AME) for a probit model. Suppose we have the following model \begin{equation} P(y=1|x)= \Phi(\beta_0 + \beta_1 x_1 + \beta_2 \text{ln}(x_2)) \end{equation} where $\Phi$ is the cdf of the standard normal. To compute the marginal effe...
Question I have a practical problem and am seeking guidance on how to use statistical methods to solve it. I have an online store. The products in the online store have varying availability: 24 hours if the product is in my warehouse 3 days otherwise The availability of the product is shown to the customer before pur...
Why does the finite-differences gradient/hessian approximation nlme::fdHess return NaNs when seeking the gradient/hessian at 0? nlme::fdHess(0,function(x)x^2) > $mean [1] 0 > > $gradient [1] NaN > > $Hessian > [,1] [1,] NaN nlme::fdHess(1,function(x)(x-1)^2) > $mean [1] 0 > > $gradient [1] -1.110...
I'm analyzing a set of biological samples. Each sample is linked to a specific carbon and nitrogen concentration, representing the 2D (experimental) design space I referenced in the title. I've measured 20 metabolites for each sample. Initially, I used standard correlation/PCA analysis for this multivariate data. Howev...
I'm doing a research project for university and am trying to figure out how I should be interpreting my between-group effect in my mixed ANOVA. My within-subjects variable is time and my between-group variable is game group. I’m testing the impact between two mobile games on a person's general well-being over time. My ...
I'm using LGBM for regression, where the Target column's lagged values (7 columns for each lag day) are also used as predictors when training the model. Absence of the 7Day lag values severely increases MAE value. Now when using the model in production, if I use the complete data as training dataset, how to get the 7da...
I am trying to write some code that accurately estimates the parameters for the following function: $$ Y = A(1-V \cos(X+\phi)) $$, where this output data is poisson distributed. To do this, I first created a simulation of what this data would look like. Then I tried to use nonlinear regression using curve_fit in python...
I would like to perform a moderation analysis after Propensity Score Matching with a binary outcome model. I estimate a logistic regression outcome model (following this vignette). I am wondering, whether the hypothesis test I perform (hypothesis = "pairwise") to compare the subgroup ATTs is the correct specification w...
Suppose we want to sample $X$ from a density $p(x) = e^{f(x)}$. My thought was that maybe we can introduce an auxiliary variable $Y$ such that $p(y|x) \propto e^{-\|(x,y)\|^2/2 - f(x)}$. Then the joint density would be $p(x,y) \propto e^{-\|(x,y)\|^2/2}$ which is the normal density. Then to sample $X$, we can just sam...
Lilliefors test is a well-known statistical test for normality. Its idea is based on the Kolmogorov-Smirnov test, except the CDF is replaced by the CDF of the normal distribution with $\mu, \sigma^2$ chosen as the estimated ones from the data. In other words given data $\{X_1, \ldots, X_n\}$ we form its empirical CDF $...
And to expand on this idea, would uncertainty and complexity be the same thing to a Bayesian? For example, games with much randomness like poker and games that are more complexity based like chess -- would we treat what makes them "interesting" (I know there are other interesting aspects to these games) as the same sor...
I'm reaching out today because I have a concern regarding the clustering approach employed with the CLV method introduced by Vigneau and Qannari in 2003. I've noticed that this method is predominantly utilized in quantitative analysis. Furthermore, there is an R library named ClustVarLV associated with its implementati...
We want to estimate the following population model: $$y_i=\beta x_i+\epsilon_i$$ with $E[y_i]=E[x_i]=$ and $E[x_i\epsilon_i]=0$. We cannot observe $x_i$ directly, but we observe two variables $x_i^a$ and $x_i^b$ that are related to $x_i$ in the following manner: $$x_i^a=\alpha x_i+\upsilon_i^a$$ $$x_i^b= x_i+\upsilon_i...
Here's the problem I have: The probability that an apple is red is 80%. The probability that a red apple is rotten is 10%. If 10 apples are picked at random, what are the odds that half are red and rotten? Approach 1: The odds of an apple being both red and rotten is 8%. Therefore, we have a binomial distribution with ...
If you Google search the space complextiy of KNN, virtually all answers are saying that it costs $O(dN)$, where $d$ is the dimension of our data and $N$ is the number of our data. But why? I understand that we need to store $d \times N$ numbers, so that's where the $dN$ comes in. But aren't we storing a lot more, for e...
I am interested in using Bayesian modele averaging as a selection creteria (BMA) vs AIC. I read that BMA is widely implemented in clustering models. Suppose that we need to fit M models to a data and select the best among them using BMA. Suppose that BIC for each model is calculated. Then, I read that some author use B...
Most of the references I have checked for repeated cross-sectional design and trend design (a type of longitudinal design) have said that they are one and the same. However, my professor says that there is a difference between the two but would not tell us the difference. He gave a clue that it had something to do with...
(N.B. I am cross posting this question from math stackexchange since after x days I have still not received any responses.) How does Huber in book 'Robust statistical procedures' in chapter 1 compute the variance of certain statistical functions? He defines the mean square deviation to be $$s_n = \sqrt{\frac{1}{n} \s...
I am studying the book Nonparametric and Semiparametric Models written by Wolfgang Hardle and have difficulty with the following exercise: $\textbf{Exercise 3.13}$ Show that $\hat{f_h}^{(n)}(x) \xrightarrow {a.s.}f(x)$. Assume that $f$ possesses a second derivative and $\Vert K \Vert_2 <\infty$. where $\hat{f_h}^{(n)...
I'm having some trouble with optimising softmax regression via Newton's method. I'm not sure if the problem is arising with my equations for the Hessian and Gradient or with the code I've written. For a single sample $\mathbf{x} \in \mathbb{R}^{n_\text{features}}$, I define the probability vector $\mathbf{p} \in \mathb...
I decided to use the tsDyn package to build the model and precision the values. The argument for this package (I previously worked with urca, vars) was the ability to make predictions based on new data. My code looks like this: start_n = 1548 delta_n = 300 pred_n = 24 k = 31 time_series <- zestaw[start_n:(start_n + de...
I'm reading a research paper that uses an IV, they regress A, and B, to estimate C, then they use estimated C and actual B to regress on D an outcome variable. This seems to violate the only through conditions for using IV estimation. Can someone confirm if I can include B in both regressions and why or why not? https:...
PCA is distinct from factor analysis; it's a dimension reduction technique. PCA does not account for individual variable noise. On the other hand, FAMD (Factor Analysis of Mixed Data) combines PCA and MCA without incorporating a stochastic term for each variable. Despite its name, FAMD seems more like a dimension reduc...
Monetizable active Twitter users Quarterly data from 2017Q1 to 2022Q2 If I have to show that the trend was affected/increased in Q1'20, Which statistical test should I use? I expect to see the change in Q1'20 because of the COVID lockdowns.
My understanding of the Black Scholes model is that it can be used to simulate options pricing for stocks in traditional financial markets. But this article uses the model to forecast/simulate bitcoin (BTC) price directly. Is there anything fundamentally wrong with using it to simulate BTC price directly? If so, what o...
I have the following set up: $y_i = \beta_0 + \beta_1 x_i + \beta_2 z_i + e_i$, where $e_i$ is extracted from a Normal (0,1) distribution independently of $x$ and $z$. The true values are $\beta_0 = \beta_1 = \beta_2 = 1$. I want to compare the coefficients of regressing $y$ on $x$ and $z$ with the coefficients of regr...