instruction stringlengths 9 38.7k |
|---|
I am trying to generate both left-censored and interval-censored datasets which both have the same features. I wish to fit and compare a cox model, Aalen's additive model and an Accelerated failure time model to these 3 datasets. I have initially generated a right-censored dataset using the below code (survsim package)... |
Does anyone know how to compute the sampling distribution of the Pearson correlation between two continuous IID random variables, given only the sample size $n$ and the PDFs, CDFs, characteristic functions, or the like of the distribution?
|
I need to bound on a covariance quantity that has come up in a sampling problem. $\widehat{Y}$ and $\widehat{T}$ are Horvitz-Thompson estimators of population totals, $Y=\sum_{i=1}^N y_i$ and $T=\sum_{i=1}^N t_i$, and take the following forms:
$$\widehat{Y} = \sum_{i=1}^N \frac{Z_i y_i}{p_i}$$
$$\widehat{T} = \sum_{i=1... |
Please can someone help me interpret what the asterixis mean and how it is statistically different to the groups. I am so confused. I am doing a one way ANOVA looking at the effect of age on physical perpetration
|
Suppose that $X_{ik}\sim\mathcal N(0,\sigma^2)$ for $k = 1,2,\dots, n_i$ are independent and identically distributed for each $i \in\{ 1,2\}$. Note that I assume equal means ($0$) and variances ($\sigma^2$) across both groups. The standard t-test uses the pooled standard deviation $$s = \sqrt{\frac{\sum_{i=1}^2\sum_{i=... |
The following is a toy example to help me understand how to perform test of difference between two proportions in SPSS.
I have two main geographic regions (Region 1 and Region 2) and several subregions (Subregion A, Subregion B, Subregion C and Subregion D) on which I recorded answers to simple questions.
For instance... |
When reading the explanation for the "The reparametrization trick" on the Stanford's cs228 notes, I saw a claim that
It is easy to check that the two ways of expressing the random
variable z lead to the same distribution.
See here:
(Just search or scroll down on that page to the section on reparametrization on that... |
I'm interested in predicting the sequence of the order of the events in an individual giving a bunch of predictive variables using Machine Learning. So my guess is, for an specific instance with around 10 predictive variables, I write the rank of each event (Let's say that there are 6 of them (Event A, B, C, D, E and F... |
Suppose X, Y, Z are three jointly Gaussian random variables and X and Z are independent given Y. For example, take three r.v. from a OU process. Here is some R code:
nr <- 3
gg <- seq(0, 1, length.out=nr)
C <- exp(-.1*as.matrix(dist(gg)))
The precision matrix has a zero at element 1,3 and 3,1: so the first (X) and thi... |
I am looking at using the Brown-Forsythe test to test equality of variances for a national rate observed in four years -- is this valid to conduct a test for equality of variances, with four data points? Or does this test require that multiple data points be observed in each year, and then run the test compared across ... |
I am currently doing a research on determining a cut-off of a ECG signal's number of 12 patients with their diseased/normal label that is produced by classifier for diagnostic decision purpose. However, I am struggling to find a statistical test(s) to justify whether the cut-off is significant or not.
Here is how my da... |
I'm trying to understand the results from emmeans::contrast applied to a linear mixed model with continuous covariate (WR) and categorical fixed effect (Condition).
A simple version of my post-hoc analysis question is: is there a significant effect of Condition based on the model predictions at a particular set of work... |
I have data (change in mass) ranging from ~ -400 to + 4,000. I'd like to run an ANOVA comparing change in mass in different treatments. When I plot the residuals they are not normal and the residual variances are not equal. To normalize the residuals and deal with the variance I transformed the data via a log transform... |
Let's say I have multiple timeseries, representing different features, all of length n, and I want to predict a new timeseries which represents another feature, without any past history for that feature. So for example, one sample might look like this, where the red and blue are "input series" and the yellow was the "o... |
I've had this as a homework problem as a true or false type of question and I'm trying to wrap my head around why this is true.
Is the reason simply represent each datapoint as a scaled version of a single vector?
Could someone illustrate this for me I've been having a hard time coming up with an example.
If I am compl... |
According to the study protocol, we used the MIXED model technique (in SAS) to estimate the ratio for example C vs A , C vs D, and its 90% confidence interval. However, in the ANOVA output, for treatment C, different geometric least square means values are showing (i.e, different value of geo lsm for C in C vs A with ... |
Can anyone recommend a very good textbook or PDF with a full, complete and detailed derivation of the statistical distribution under the null hypothesis of the original Granger Causality Test?
I'm looking for one since weeks and didn't found anything.
|
I have a dataset of mass spec analysis which was sent to me in 200 excel files. Importing into R, I get a dataframe that looks like this:
| Unique Sample ID | Chemical Name | Concentration |
| -------- | -------------- | -------------- |
| 001| Chemical 1| 50|
| 001 | Chemical 2| 100|
| 002 | Chemical 1| 100|
| 002| Ch... |
I am studying perceptron for the first time. I came across the assumption from online resources that if the data is linearly separable with gamma margin then the perceptron algorithm will converge. Is this true? Also does this assumption mean that if there is a classifier corresponding to w* which separates both classe... |
When performing a multiple comparison in a binomial model, I encounter a problem when one of the groups has the probability of success = 1. For example,
y <- c(1,5,9,10)
N <- c(10,10,10,10)
x <- factor(c(1,2,3,4))
dat <- data.frame(y,N,x)
model <- glm(cbind(y,N-y)~x,family=binomial,data=dat)
library(multcomp)
summary(g... |
I am using Python (statsmodels) to create a dynamic factor model on which I apply the Kalman filter. Thanks to earlier questions on this forum, I landed upon using exact diffuse initialization. My code is below:
mod = DynamicFactor(
endog=NG.astype(float), # nobs x P
exog=HDD.ast... |
I am performing the quantile regression in R on a non linear model (that is done by using nlrq). I am getting the coefficients for the desired quantiles (tau = 0.05, 0.50, 0.95). All very nice, but running the code without reasoning is not a good practice. As we determine quantiles at the extremes, i.e. 0.05, 0.95 (but... |
I have data from a daily diary study of participants nested in couples. To analyse the data I used lme4 to do multilevel modelling in R to create my models.
After doing this I wanted to check if the model assumptions were given. I plotted Residuals vs Predicted, and my understanding is in order for the assumption of l... |
I have to do mediation analysis for my research and my IV and DV are both continuous and mediator variable is ordinal (time spent on Instagram where categories are:
less that 30 minutes a day
30 mins to 3h a day
3h to 6h a day
more than 6h
I labeled this mediator as ordinal since measure differences in the categories... |
I have 10 years of health (number of cases of health outcome, such as asthma cases) and population data, but am using the data cross sectionally because the exposure data are also cross-sectional (due to how the exposure data were collected). The health and population data are both age, sex and geography specific.
I am... |
I have learned a lot from @dimitriy answer in this post: Propensity Scores Weighted DID
I am currently utilizing the triple difference estimator for estimating treatment effects (please see the paper about this estimator at https://academic.oup.com/ectj/article/25/3/531/6545797). I am interested in applying kernel-weig... |
One of the assumptions of ANOVA, and basically any parametric hypothesis test, is that the population (or each population group) should be normally distributed. But we learn in most stats classes that the violation of this assumption becomes less relevant (or less affected) as the sample size gets large.
In t-tests for... |
If we have a VAR process:
$\begin{align}
\mathbf{y}_t = A_1\mathbf{y}_{t-1} + \dots + A_d\mathbf{y}_{t-d} + \boldsymbol{\epsilon}_t, \quad t \in \mathbb{Z}
\end{align}$
With the stability condition met:
$\det(I - A_1z - \dots - A_d z^d) \neq 0$ for $|z| \leq 1$
Do we know that the process is then geometrically ergodic... |
I have a log-likelihood function with two parameters: $\mathcal{l}(\theta_1,\theta_2)$.
When I run a simulation, the maximum likelihood estimator $\widehat{\theta}=[\widehat{\theta}_1,\widehat{\theta}_2]'$ yields a reasonable value for $\theta_1$ and an over-estimated value for $\theta_2$.
For example, if the true $\th... |
I have 2 normally distributed variables $X_1$ and $X_2$.
$Y_1 = aX_1 + bX_2$
$Y_2 = cX_1 + dX_2$
There is no $\epsilon$.
ie.
$Y_1 = aX_1 + bX_2 + (\epsilon=0)$
$Y_2 = cX_1 + dX_2 + (\epsilon=0)$
I wish to know if $Y_1$ and $Y_2$ are correlated.
I may use the formula to find the covariance of $Y_1$ and $Y_2$:
$cov(Y_1,Y... |
I have a sample from some population of 0s and 1s and need to estimate the posterior of the proportion of 1s in this population. But the catch is: for each observation in the sample I only have probabilities of the observation being positive.
If I had true labels for each observation I would just go with $ Beta(1+num\_... |
I'm trying to estimate y, how likely a quantity is to increase/decrease by x1% using historical data. This part is pretty straightforward. I check history for how many times that quantity has increased by x1% or more historically, then take the number of times it increases by x1% or more and divide by the total of time... |
I did an experiment on small tree branches with closed buds were a box containing 30 branches was monitored 3 times per week for the presence of leaves. The number of branches that have reached a developemnt stage was written down and when all branches had leaves the experiment was stoped.
my data is as below:
response... |
Is it possible to take the average of information criterion like the AIC?
For my model comparison, I have 24 different models. I use 4 different GARCH models each with 6 different distributions for the innovations. Now I have calculated the information criterion AIC to find the best in-sample fit. Now my question is if... |
I am running some least squares linear regression on nonlinear data. I considered linearising by taking the log of both the IV's and DV and also by only taking the log of the DV.
Both linearise the data fairly well (R^2>0.95), with loglog performing slightly better. However when I check for heteroskedasticity using the... |
I have three questions about multivariate normal imputation using R package jomo. I modified the example in jomo to illustrate the questions:
library(jomo)
Y <- JSPmiss[, c("english", "ravens")]
X <- JSPmiss[, c("cons", "sex")]
set.seed(1569)
imp1 <- jomo(Y = Y, X = X, nburn = 1000, nbetween = 1000,
nimp... |
I have a panel dataset and I want to test cointegration between 2 variables. I cleaned the missing values and set my data frame as required but I don't know and can't find how to interpret the outcome from the Pedroni test on R,
the outcome looks like this:
And why do I have NaN in some cases ?
(I already read the doc... |
The following is an interview question:
A certain highway has two lanes in my direction. Whenever traffic moves, if I'm in the left lane I switch to the right with probability 60%.
If I'm in the right lane I switch back to the left lane with probability 80%, because it's supposed to be faster.
Over the long term, what... |
I'm training a binary classifier using time series cross-validation and a rolling window approach, resulting in $k$ test sets. I want to construct a cumulative uplift curve to evaluate the model.
I've considered simply pooling all the test sets together, but that could result in the same customer appearing $k$ times, w... |
I am planning on running a natural experiment (difference-in-difference) on some UK Local Authority level mean obesity prevalence data. Sample size is limited by a number of factors and it is therefore unlikely we will identify a statistically significant effect.
I would like to identify the minimum sample size I would... |
When reviewing lecture slides for the proof that $\hat{\beta_1}$ is linear in OLS-regression my teacher posted the following on the lecture slides:
$$\hat{\beta_1}=\frac{\sum(X_i-\bar{X})Y_i}{\sum(X_i-\bar{X})^2}= \sum a_iY_i \text{ where }a_i= \frac{(X_i-\bar{X})}{\sum(X_i-\bar{X})^2}$$
But when I look at the sam... |
I want to do Bayesian inference for a model function for which the likelihood cannot be explicitly computed, which is why I turned to Approximate Bayesian Computation (ABC). In particular, I am using the sequential Monte Carlo (SMC) algorithm.
I am currently evaluating the approach by generating synthetic data from par... |
I have run a PCA from which I have extracted 4 components. Each component will be used in a multilevel model as the outcome variable. The four model will have the exact same predictor variables, 4 predictors of interest and age and gender to adjust for. ID is a random factor.
My question is how do I have to correct for... |
I wanted to conduct a Wilxocon signed rank test but stumbeld upon two questions that I am unable to solve on my own. I tested 2 types of interfaces for a software with the same ten people. I want to compare if there is a difference between using these two interfaces. Each person answerd the same ten questions for both ... |
The independence gap is defined as
$$\phi_{X_1, \ldots, X_n}(x_1, \ldots, x_n) \triangleq F_{X_1, \ldots, X_n}(x_1, \ldots, x_n) - \prod_{j=1}^n F_{X_j}(x_j)$$
where $F_{X_1, \ldots, X_n}(x_1, \ldots, x_n)$ is the joint CDF over random variables $X_1, \ldots, X_n$ and $F_{X_j}(x_j)$ is the marginal CDF over the random ... |
This may be a trivial question and apologies if it's been answered elsewhere.
I'm aware that violating the GM assumption of observations being independent, such as with clustered data, can result in estimates no longer being BLUE and that the correlation between observations within a given cluster (i.e. the intraclass ... |
If I have a max-pooled convolution layer of dimension (5,5,4), means 4 no. of 5x5 feature maps, what will be the shape of the flattened vector after applying flattening operation ?
Is it (100, 1) in shape ?
|
The CA Secretary of State has historical records on ballot measures starting in 1912, and we're attempting to calculate probabilities for the 2024 ballot measures based on the historical average. Over more than 100 years, ballot measures, once qualified and put on the ballot, succeed 35% of the time. Since a ballot mea... |
I have a dataset with about 70 continuous numeric variables. I have about 80 samples which divide more or less equally into two groups. I want to figure out which of these variables is most strongly associated with the groupings so that I can focus on just a few of these for further analyses.
The main problem is that t... |
Say I have a dataset that consists of 1,000 integers between 1 and 365 that represent days of the year a certain event happened. I am trying to figure out how I could calculate summary statistics of the distribution while respecting the fact that the data are cyclic (i.e. 1 and 365 are neighbors). I specifically want t... |
This is the formula :
$E[(Y−f^2)]=σ^2 +Bias^2[f^]+Var[f^]$
What i cant understand , the expectation is over the training Set for a fixed $x_0$ , thus the
$E(ϵ^2) =E(ϵ(x_0)^2) = ϵ(x_0)^2$ and not $σ^2$ because for a given $x_0$ we have a unique ϵ and this term is not random anymore because any change in the data... |
I'm part of an online community that raffles away prizes, typically with 30 or 40 spots in a raffle. The numbered chips/balls are placed into some type of hopper, and pulled out one at a time (random/controlled/etc). The rules are pretty simple: you can buy as many spots as you'd like, and the last out wins the prize (... |
I'm currently training a CNN + regression model that does the following
input: $ \dim x = (L, 2), \text{where} \ x_i \in (-0.1, 0.1) $
output: $\dim y = (M), \text{where} \ y_i \geq 0, y_{i-1} \leq y_i$
The basic architecture is (each step with ReLU activation) :
input $\rightarrow$ CNN1(3x2) $\rightarrow$ maxpool(2x... |
This has probably been asked before, as this is (I think) a fundamental theory of statistical theory, but I don't know what it is called, hence I have not yet found an answer.
Consider a box which produces random numbers.
The observed values are $x_i$.
If we have a total of $N$ observations, we could add them together.... |
I have presence-absence data for 53 wildlife species at 60 different sites. I am a bit confused as to whether a PCA would be appropriate for this sort of data. If so, is there a specific R package I need to use, and do I need to standardize the data considering it's just 0's and 1's? If not, what other data analysis op... |
I have a linear mixed effect model that I built using longitudinal country level data to help me predict TB incidence based on country level diabetes prevalence, HIV incidence, prevalence of malnutrition, and income per capita. I found my model diagnostics improved drastically when I log transformed TB incidence, HIV i... |
This draw of lottery, based on 7/39 numbers stirred a lot of debates, and an obvious anger of general public here in Serbia. I ran all kinds of scenarios in my head about what really happened here (or nothing special at all, which is possible too). So, the lottery is 7 out of 39 numbers. If you have a ticket with all 7... |
Suppose I have a population of size $n$ in which each element has a probability $p$ of being sick. By sampling this population without replacement, how many elements would I have to sample in average (expected value) to find all the sick ones?
Simulating this in Python, when $n=100$ and $p=0.5$, the expected value is $... |
I have a list (freq) of letters with the following frequencies:
L V Q I
0.61764706 0.29411765 0.05882353 0.02941176
The entropy of this list is: -sum(freq * log2(freq)) = 1.3387
I would like a statistic similar to entropy that takes into account a pairwise "similarity" score of th... |
I want to compare two contingency tables A and B with the same structure (same columns and rows). My first idea was to use chi squared distance $\sum_{i=1}^{p}{\frac{(O_i-E_i)^2}{E_i}}$. But, some cells $E_i$ are equal to zero.
Have you some ideas to deal with that problem or another distance metrics without this issue... |
I want to perform a meta-regression based on the mean changes from baseline values.In one of the studies, the standard deviation has not been mentioned. How can I impute the value of the missed standard deviation? Can I take the pooled standard deviation of other studies as the standard deviation of this study? Or shou... |
I can't seem to find a way to get relative risk (instead of odds ratio) in R via glm() function. However, the equivalence seems to be glm() with poisson family and log link, which I suspect will yield the relative risk (or relative proportion, depending on the problem) when the coefficients are exponentiated. Is this c... |
My model is dealing with survey data for a mixed-effects logistic regression model. All of my variables in the model are categorical (most are binary). What can I use in R to assess the multicollinearity assumption?
Model:
mixed_model_one <- svyglm(Sick ~ Wash_Binary + Food +
MotherEducation + Vaccination + Sal... |
I am referring to the derivative of the binary cross-entropy loss function for logistic regression. Using back-propagation, the derivative of the loss function L with respect to z is a - y, where a is the output of the sigmoid function given z. Here, z is the polynomial that takes the parameters w, data values x, and b... |
Background
Denote the forecasted value by a Time Series ML Model as
\begin{align}
\hat{y}_{t+\tau} \, (t, \tau)
\end{align}
where $t$ is the current time-step, $\tau$ is the time-step ahead. The subscript $t + \tau$ is the corresponding forecast time-step.
For time series forecast ML Models, we have a hyper paramet... |
I created a sample with 10000 normally distributed numbers. Subsequently, I used the Kolmogorov-Smirnov test to check if they are indeed normally distributed, and it turned out that they are not. How is this possible?
Below is my code.
data <- rnorm(n=10000, 5, 2)
ks.test(data, "pnorm")
And this is the answer:
Exact o... |
For instance, The two groups are like the following:
* T-2 means the 2nd record of patient 'T'. The orders don't matter.
Group A (N=40000 or 1000):
A-1
A-2
A-3
A-4
B-1
B-2
C-1
Group B (N=2000):
A-5
A-6
B-3
Any records of patient C may not exist in Group B.
I want to confirm that whether there is significant differenc... |
I have normalised my input features and target variable using the quantile transform by sklearn. The Q-Q plot of one of the feature after normalisation is given as below. Is this feature normalised? Can I use it for training the cnn model?
|
Suppose I observe an outcome $Y_i$ for a binary policy $Z_i$ with random assignment and no spillovers such that $Y_i(1),Y_i(0) \perp Z_i$. I run the regression
$$
y_i = \alpha + \beta z_i + \varepsilon_i
$$
to get the average treatment effect of the policy $E[Y_i(1)-Y_i(0)]$. However, the dataset I have at hand was col... |
I was trying to simulate the Central Limit Theorem in R. Unfortunately, even in large samples (e.g., 80), the Anderson–Darling test could not recognize normality. Therefore, I wrote the following code to see when the p-values become large enough so that the null hypothesis is not rejected.
The results were quite peculi... |
I am running a logistic regression. Two variables are transformed for linearity with the logit of the outcome.
var1<-w^(-0.5)
var2<-t^2
m1 <- glm(Dep ~ var1 + var2, family=binomial())
If plot probabilities in ggeffects, the variables are on the transformed scale.
library(ggeffects)
library(car)
p<-ggpredict(m1, terms... |
I'm modeling a pure premium with glm and using an offset term equal to log(exposure).
My question is, in R, what does predict.glm(fit, train, type="response") return?
-The cost amount? and in this case i have to divide with exposure to get the predicted Pure Premium
Or the Pure Premium by supposing the exposure is alr... |
In my company, I stumbled upon a piece of software whose purpose is to correct with fresher data some future forecasts made by a complex system.
To formalize a little bit: there's a forecasting model $x \mapsto f(x)$ which is trained on a dataset $\mathcal D$ to forecast an underlying process $y$. There exists a freshe... |
I am currently working on a machine learning model using scikit-learn. In my case, I have 12 input features and 21 output targets, and I am using MLPRegressor to fit my data. However, I noticed a difference in the R2 score when using two different approaches: 1. Only MLPRegressor and 2. MLPRegressor in combination with... |
For a handful of store locations, I have data on each entrance and exit time.
I have counted the total num of people at a store at any given minute.
I am trying to find out the values for which the store is full/crowded, given that I do not have the area of the store nor an official limit of the max headcount.
An assum... |
Suppose there are $n=100000$ locations. At each location,there are observations of dependent variable $Y$ for 30 years. That is, we have time series data and this data have $100000$ rows and $30$ columns. We developed a model, and want to assess how well our model performs. With our proposed model, we also estimated th... |
To describe this issue, we consider the following 2 models:
m1 <- lm(disp ~ drat, mtcars)
m2 <- lm(disp ~ drat + factor(cyl), mtcars)
drat is a continuous variable. cyl is a categorical variable with levels '4', '6', '8', and I treat '4' as the baseline, so there will be 2 dummy variables $D_1$ for cyl=6 & $D_2$ for c... |
The goal is to calculate the reliability of a process. Here reliability is defined as follows:
Definitions and tests I used
Let $X$ be a random variable that is equal to $1$ when no defect is present on a fabricated piece and is equal to $0$ when a defect is present. Then, the reliability $R$ of the process is the prob... |
I am trying to carry out a meta analysis with proportions in which I calculate the % of patients
with response and/or remission (measured with the same scale) to a treatment at determinated time points (week 8, week 16, month 6 and month 12). That is, I have two correlated outcomes measured at each time point.
By using... |
I am wondering about whether there might actually be different ways to simulate data for say a Gamma GLM, which in turn relates to what might be the parametrization that the glm function uses for the Gamma family.
If one wants to test a Poisson GLM with say a log-link, the way to simulate the data is relatively easy as... |
We are currently working on a project involving multiple datasets reanalyzed with the same pipeline, where all data points (patient feature) have been filtered at 1% False Discovery Rate (FDR). As part of our analysis, we aim to combine these data points lists while controlling the number of false positives resulting f... |
I am trying to replicate a deep neural network from this notebook, which works with the French MTPL dataset. The NB is in R and mine is in Python.
The dataset contains policy entries with the same features but different claim number and exposure (target value). The NB says,
...we split the dataset into train and test.... |
I am attempting to create a surrogate model for a chemical process simulation that includes flash separators and a heat exchanger (please refer to the photo). Based on my research into similar projects, I have identified the inputs and outputs as indicated in the photo. The process involves 9 chemical constituents, res... |
We have $X=Y+Z$ where $Z$ is a standard normal and $Y$ is a random variable with $p(y)$ as its density. $Y$ and $Z$ are independent.
The conditional probability $p(x|y)$ is obvious to be $\mathcal N_x(y, 1)$, a normal with mean y and deviation one. My question is what is $p(y|x)$?
According to $Y=X-Z$, $p(y|x)$ should... |
Given this categorical cross entropy loss function $-\text{sum}(y * \text{log}(\hat{y}))$, where $y$ is a one-hot word vector and $\hat{y}$ is a vector of class probabilities, this loss function will ignore the model predictions where $y=0$.
For example, let $y = [0, 1, 0]$, and $\hat{y} = [.7, .6, .2]$
Then
$$
-\text... |
Introduction. Recalling that:
The frequency is the number of observations of a specific outcome.
The relative frequency is a proportion of all observations (frequency / total observations).
A "frequency distribution" or "relative frequency distribution" is a way of displaying observed samples from experiments.
A "prob... |
I am having some trouble understanding what approach I would use to validate a new set of definitions versus the "gold standard" to detect disease positivity. For example, if I wanted to say participants in a cohort are COVID+ if they meet criteria A, B, and C (the new definition). Then compare those results to the "go... |
I am trying to plot my p-values and make Manhattan plots, using the mhtplot.trunc from the gap library. Reason for using this package is that my p-values are too low to be plot in R (below e-308), and R just gives me the zeroes instead of real p-values when I pass this threshold. I need these plots to be accurate since... |
I've collected the perceptions of brands in a survey and transferred them to another data set containing these brands.
The variables to operationalize brand perception are masculine (6 items) and feminine (6 items) brand perception, which are quantitative variables and vary from 1 to 7. I investigate the interaction ef... |
I am trying to generate random numbers (weights) using Monte Carlo simulation using R. I would like to have 10000 simulation replications, generating weights for 13 variables. I am trying the following code
mcrep = 10000 # Simulation replications n = 13 ... |
I am attempting to conduct a longitudinal analysis on a dataset with one independent variable and five dependent variables. We aim to determine whether the independent variable can predict changes in the dependents. However, the independent variable is only measured once at the baseline.
Is it possible to use the linea... |
I would like to calculate the probability that a yes/no vote among 3000 voters ends up in a tie - assuming voters cast their vote randomly.
Applying the principle of favorable_cases/total_cases I calculate that the total_cases are all the possible ways the people could vote, therefore all permutations of 2 elements by ... |
Good evening, everyone.
I am a software engineer and I am studying the VAR model and its advantages and disadvantages. Specifically, my question is the following: is it possible to use VAR to predict the cost of a variable (e.g., the cost of a service) based on some predictors, such as income, customer age, and locatio... |
I have a question about the interpretation of the sensitivity analysis I obtained by R's tgp package (https://cran.r-project.org/web/packages/tgp/vignettes/tgp2.pdf) as can be seen below. The relation between the six inputs and the model response are shown below.
The influence of the parameters on the response is clear... |
In a hidden Markov model, I can't get my mind around why I can't sample the full hidden state $\vec x$ using only a forward sampling algorithm.
Let $\vec y$ be the observed data and $\theta$ the model parameters. Let each time step $t$ be an independent realization so that $p(\vec y|\vec x, \theta) = \prod_t p(y_t|x_t,... |
I have a question about the interpretation of the sensitivity analysis I obtained by R's tgp package (https://cran.r-project.org/web/packages/tgp/vignettes/tgp2.pdf) as can be seen below. The relation between the six inputs and the model response are shown below.
The influence of the parameters on the response is clear... |
Let's imagine that we have created and estimated a posterior with a beta prior and binomial likelihood function. The posterior is given by $p(\mu |D) = Beta(2,99)$. Now, I want to do inference with that model. But the number of trials has changed and I want to know the probability of having 3 success from 40 trials. Ca... |
I am interested in the comparison of Pearson correlation and Euclidean distance as measures of similarity between data points. Suppose I have 4 data points, w, x, y, z, in a multidimensional space, where w is a very extreme outlier and x, y, z are highly similar to each other. For the correlation measure, I assume that... |
I am still unsure why we must use cross-validation here to validate the model, or it may be unnecessary.
Is it correct to use like indicated below? or do we have to combine it with hyperparameter tuning?
X_train, X_test, y_train, y_test = train_test_split(X_new, y, test_size=0.15, random_state=iteration)
skf =... |
I wasn't sure how to phrase this question, but yeah.
My CNN (code here) keeps getting up to an accuracy of around 66% until it stops learning anymore. It just keeps fluctuating around the 66% range. I've been tuning hyper-parameters, but I just can't get it to work. Can anyone help?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.