instruction stringlengths 9 38.7k |
|---|
RMSE of Random forest regression : 85.66 RMSE of linear regression : 85.62 I only have five features and around 3800 observations.
I read that most of cases random forest gives better result than linear regression. But I got similar results for these two cases. When does linear regression give slightly better result? W... |
I am brainstorming ideas on how to identify the rarest columns of values, from a large df.
The context of the issue is that the columns represent different samples, and the rows are genomic regions. In some samples, the values of the genomic regions may be lower, and in others they may be higher, but generally the majo... |
#H0: Median of Female population is lesser than male population <
#H1: Median of Female population is greater than male population >
wilcox.test(data$gender, data$dwelling_problems_safety, alternative="less", na.action = T)
I'm unable to interpret why p-value is 1 and what it mean, am i putting hypothesis wrong?
|
I have trained a multi class classifier and calibrated the classified using scikit-learn library's CalibratedClassifierCV class. To check how well the probabilities are calibrated, I tried plotting the calibration curve using scikit-learn's calibration_curve function. I got this error:
Only binary classification is su... |
Consider a 3D multivariate normal distribution $x\sim N(0,\Sigma)$ where
$$\Sigma=\begin{bmatrix}1 &1 &0 \\ 1&1&0 \\ 0 &0& 1 \end{bmatrix}$$
Since $x_1$ and $x_2$ are fully correlated, one could say that this is actually a "2 dimensions" distribution.
We can also imagine an intermediate case with:
$$\Sigma=\begin{bmatr... |
I need to understand if there exists a version of the chi-square test of independence (typically used to test independence of two variables) for a multi-way table.
If I have $n$ units observed on $p$ categorical variables, I can compute the expected frequencies. But then it is possible to compute the chi-square test of... |
I have two multivariate data sets comprised of 100s of time series, one is the actual recorded data set of time series and the other is a synthetically generated data set based on the recorded one.
The data set consists of 8 columns (DataFrame): 3 columns for the acceleration in $x$,$y$, and $z$ direction and 3 columns... |
I have some astrophysics data of "particle density vs orbital position" of a moon that emits a lot of particles. My research deals with the intensity of the scattered light which is scattering angle dependent only, and should not be position dependent. Unfortunately, if there are more particles being ejected, then the ... |
I am trying to find a statistical test that will compare the medians of two columns. When I try have searched around I have found the wilcox.test function in R, however, I have read mixed interpretations on whether this is for the median or the mean. Could someone confirm whether or not this would be appropriate to com... |
Suppose I have two categorical variables: 1. Person, and 2. Color of clothes. Each person will wear different color of clothes and will be asked to walk along a line back and forth (like random walk) and stop after 10 seconds. The following is the table of position of each person with different clothes after 10 seconds... |
I have a very simple logistic model with a single continuous independent variable and a two-category dependent variable. When I mean-center the IV, the p-value of the coefficient changes significantly, and I'm not sure why.
Example code snippet that reproduces the effect:
import statsmodels.api as sm
import numpy as np... |
Let's say we estimate the matrix $\beta_{N\times N}$ which is the coefficient matrix of a simple multiple linear regression $Y=X\beta+\epsilon$ where $Y, X, \epsilon\in R^{T\times N}$. If we assume:
$$cov(b_{ij},b_{ik})=0\quad\forall i\neq j \neq k$$ can we claim that $\beta\sim MN$, where $MN$ is the matrixnormal dist... |
I'd like some advice on a two-way ANOVA that I am trying to do. It is an unbalanced design. Here is the full dataset:
Var1
Var2
Result
3
1
5.166096057
3
2
1.873452551
3
4
2.435296493
3
5
4.920406303
3
6
6.431087505
2
1
6.913241927
2
2
6.151673113
2
3
7.438972122
1
1
6.440015518
1
2
8.215052128... |
I am running a binary classification with a random forest via the ranger package in R, and am using the pROC package for building an ROC curve and calculating AUC. But, the using the coords() function returns only three rows, and two of them are either -Inf or Inf.
> coords(rf_roc)
threshold specificity sensitivity
1... |
Let $X_1,…,X_n$ be i.i.d. random variables. Are these two equalities correct?
$P[X_{(2)}<x_2,…,X_{(n)}<x_n| X_{(1)}=x_1]=\\
=n!P[X_{2}<x_2,…,X_{n}<x_n| X_{1}=x_1]=\\
=n! P[X_{2}<x_2]…P[X_{n}<x_n]$
And if not, why? I am a bit confused as I don’t know if the permutations are also considering the fact that the minimum $X_... |
given outcome $y$ and data $X$ with data generating process $y = f(X)+\epsilon$ where $\epsilon$ independent of $X$ and gradient boosted trees as the algorithm approximating $f$, does $\partial \hat{y}/\partial{x}^* \rightarrow \partial y/\partial{x}$ as the sample size grows very large?
$^*$ when I talk about a deriva... |
I am using R and I want to scale some data. The code looks like this:
data <- read.table(file_name, header = TRUE)
rates <- scale(data[8])
mean <- mean(rates)
sd <- sd(rates)
My understanding is that this scale function should scale the data so the mean is 0 and the standard deviation is 1. The standard deviation seem... |
Apologies if this has been answered somewhere else on this site, but here goes...
Consider two finite sets of quantitative data $X=\{x_1,\dots,x_n\}$ and $Y=\{y_1,\dots,y_n\}$ having means $\bar X$ and $\bar Y$, and standard deviations $s_X$ and $s_Y$, respectively. The correlation coefficient $r$ associated to $X$ and... |
I have 2 datasets with details about discount percentages and failure rates. The discount rates are given for each model manufactured by a certain brand. The failure rates are given at the brand level.
Here is some dummy data: (https://i.stack.imgur.com/Keqf0.png)
(https://i.stack.imgur.com/DJ56g.png)
All data is repre... |
I have recently conducted a project which aims to examine whether Treatment (X) affected Anger (Y) via Heart Rate (M).
Treatment was a between-subjects predictor with two levels, treatment 1 vs. treatment 2.
Anger was a continuous outcome variable, which was measured twice (before and after treatment).
Heart rate was a... |
Problem is as follows:
I have a dataset as follows:
#. Category Value
Item A, 1
Item B, 2
Item B, 2
If I do a simple average of value, it is 1.67.
If I do a weighted Average as follows, then the answer is the same.
(1/3) x 1 + (2/3) x 2 = 1.67.
So would you call this a simple or a weighted average?
|
Question
I have a big number of linear regression equations with known dependent variables and coefficients, in a form of:
T = Aa + Bb + Cc + Dd
where T - known dependent variable; A, B, C, D - known coefficients;
a, b, c, d - are random variables. Each of them is normally distributed across all equations. Their distri... |
In several papers, in the 'double machine learning' literature, the propensity score (a nuisance parameter) is estimated non parametrically. It is a bit unclear how this estimation is performed, as most often, only the properties of the nuisance estimation method are needed.
Are there R packages that estimate propensit... |
First of all, are the activation vectors processed in parallel? If so:
That doesnt make sense since each previous activation vector feeds into the RNN as input. So if you're processing all activation vectors in parallel, its not learning from the previous activation vector?
I'm thinking of a RNN similar to how boosting... |
Let $\bar{\lambda}$ be the smallest eigenvalue of $$M=\Omega^{-1/2}Y'Z(Z'Z)^{-1}Z'Y\Omega^{-1/2}$$, where $\Omega$, $Y$, and $Z$ are $(l\times l)$, $(N\times l)$, and $(N \times k)$ matrices, respectively.
Then, define $$\bar{S}=(Z'Z)^{-1/2}Z'Yb_0(b_0'\Omega b_0)^{-1/2}$$ and $$\bar{T}=(Z'Z)^{-1/2}Z'Y\Omega^{-1}A_0(A_0... |
I am trying to figure out given a set of positive continuous numbers (including zeros) what would be the most appropriate way to calculate a prediction interval, or a normal range, i.e. a range in which individuals are likely to fall in the future.
For context: I am looking at species level vegetation cover data in per... |
I'm sorry, I searched all topics on StackExchange and cannot still get the difference between marginal and conditional model. All answers tell me the same by showing averaged non-linear curves, which agrees in the general linear model (one averaged straight line is a literally average of random intercepts), but doesn't... |
In the documentation for MuMIn::QIAC, and several other sources on calculating QAIC, the following code snippet appears which I don't understand at all.
dd <- dredge(budworm.lg, rank = "QAIC", chat = summary(budworm.lg)$dispersion)
As far as I understand, chat (or c-hat, $\hat{C}$) is the VIF (variance inflation factor... |
I have a gam model with automatic predictor selection based on cubic splines (bs = cr) and SELECT == T or shrinkage cubic splines (bs = cs) and SELECT == F.
As I know these predictors should be scaled, because of different data ranges and units and transformed to gaussian distribution.
I got two questions with respect ... |
I have 2 numpy distributions generated with this simple code
dist_a = np.random.normal(mean_a,std_a,1000000)
dist_b = np.random.normal(mean_b,std_b,1000000)
The first one represents the distribution of the control sample mean and the second one - the distribution of the treatment sample mean. The population mean and s... |
The propensity score theorem in Causal Inference implies that $E[T|X]=E[T|p(X)]$, i.e. it is sufficient to control for the propensity score to retrieve the average causal effect. Then, we can use a linear regression which only controls for $p(X)$, and not all confounders $X$ to retrieve the Average Causal Effect.
This ... |
Suppose there are several categorical variables included in the LASSO regression.
For a categorical variable with more than two factors, it is mandatory to create a dummy table.
For example, the categorical variable is vaccination status (Vacc_Stat), in which there are three categories,i.e., 1 = not vaccinated, 2 = par... |
I am estimating a 2SLS using a time series simultaneous equation ECM. The purpose is to estimate the price elasticity of electricity demand. Assume that both price and demand are I(1) variables, becoming I(0) after differencing once. The main equation is consumption:
The price is estimated using instruments:
Rewriti... |
I want to fit a quantile regression to
$y_t= \alpha+ \beta_1 x_1 + \beta_2 x_2 +\beta_3 x_3 + \beta_4 x_4 + \epsilon_t $ $\rightarrow$ (1)
rq function can do the job for me however I want to add two constraints at my coefficients
$\sum_{i=1}^4 \beta_i = 1 $
update::
I follow the below comment advise in order to impose ... |
I'm working on experiment where two types of terminally ill mice are treated with two different drugs. Then physiological measurements are taken in four time points. Due to the disease some mice dropout during the experiment. My question is if I should treat this absence of data as missing at random or not missing at r... |
When reading about cumulation if type-1 Error, the sentence "for independent statistical tests" occures alot, now I was wondering what this is actually means.
Since tests are also random variables on the sample space, the definition of independence can be applied, mathematically. Now lets look at two tests: $t_1,t_2$, ... |
I have a data set with three groups: {Hi, Low}, {Drug amount 1, Drug amount 2...}, {Time 1, time 2, Time 3...}
The dependent variable is a percentage, which I have log transformed (as the distribution of the error was dependent on the value... i.e. I would be seeing 1% +/- 0.1, but 90% +/- 9%)
I am really interested in... |
I'm pretty much reporting these results. I've bootstrapped my sample using lmersampler, which does not provide p-values for bootstrapped models. I relied on confidence interval boundaries to justify if the estimates were either significant (CI didn't contain zero) or not (it crossed zero). How would be the best way to ... |
I performed a two-way ANOVA and I am trying to understand how the mean of each group can be found from the coefficients of intercept from each variable. From my understanding, the base group is partner_status=high, fcategory=high.
import statsmodels.api as sm
from statsmodels.formula.api import ols
moore = sm.datasets.... |
I have computed a model with the lme4 package with the following syntax:
y ~ time*treatment*covariate + (1|subject)
The variables include:
time: Factor with 3 levels (measurement points)
treatment: Factor with 3 levels
covariate: Factor with 3 levels
Is there any way to translate the syntax into the model equation... |
I have tried to search a lot on Google but could not find any information regarding the relationship between ACF and PACF.
Say I have PACF at lag 1, 2, and 3. How could I calculate the ACF for lag 1, 2, 3 respectively?
Thanks
|
I have the following estimator: $\hat{\sigma}^2_N = \frac{1}{h^2}\sum\limits_{i=1}^{N}x^2_i$, where $x_i \sim i.i.d. \; \mathcal{N}(\mu\frac{h}{N}, \sigma^2\frac{h}{N})$.
We can show that $E[\hat{\sigma}^2_N] = \sigma^2 + \mu^2 \frac{h}{N}$ and that $var[\hat{\sigma}^2_N] = 2\sigma^4 \frac{1}{N} + 4\mu^2 \sigma^2 \frac... |
This is the output from a linear regression model that is trying to predict math scores based on the student's gender and whether or not they took a test preparation course. It is just a toy example for me to understand how to interpret the coefficients.
> str(StudentsPerformance)
'data.frame': 1000 obs. of 8 variab... |
I have a dataset where I have two recordings (sessions) of two different variables.
set.seed(123)
data <- data.table(
id = rep(1:20, each = 2),
session = rep(1:2, times = 20),
var1 = sample(1:100, size = 40, replace = TRUE),
var2 = sample(5:10, size = 40, replace = TRUE)
)
If I want to know the correl... |
Could you please suggest some good textbooks on the subject of Design of Experiments particularly covering below topics:
Inference in linear models, One and two-way ANOVA, Standard orthogonal and non-orthogonal designs, Analysis of general block designs, Factorial experiments etc.
It would be helpful to have the names ... |
I am comparing these two forms of drawing random numbers from a beta and a Gaussian distribution. What are their differences? Why are they different?
The first way (_1) simulates from a Uniform(0,1) and then applies the inverse CDF of the Beta (Normal) distribution on those uniform draws to get draws from the Beta (Nor... |
I am trying to analyse data from a Split-Plot experiment by Linear Mixed Models with lme4 in R. The design consists of a whole-plot factor and two split-plot factors (see attached layout). Whole-plot factor, named Rainfall has two levels (30% reduced and non-reduced Rainfall). The two split-plot factors are Species (le... |
wilcox.test(weight ~ group, data = my_data, paired = TRUE)
wilcox.test(weight , group, data = my_data, paired = TRUE)
can anyone specify the difference to me with "," and "~" both are giving different outputs, whereas i use ggplot to see the data second one gives me the correct result that there is a difference in ... |
I have two histograms and am able to calculate the EMD / Wasserstein metric between them using the algorithm described here. In order to better communicate the implication of this metric, I want to normalize the calculated EMD by its max possible value - essentially producing a result that is, "what percent of the wors... |
Most of researcher when conducting binary logistic regression analysis they use to contradictory analysis
Bivariate analysis or bivariable analysis to select variables that fit model,then
2.multivariate logistic regression or multivariable analysis
Which one is correct?? Bivariate analysis and multivariable logistic r... |
.Consider the polynomial $p(z)=\sum_0^na_iz^k$ where $a_n=1$ and $a_k \sim N(0,1)$, $k=0,1,2,\dotsc,n-1.$
What is the probability that 2 will be a bound of the roots of the polynomial? How can we find the asymptotic probability for the same? I did a simulation for a polynomial of this type of degree 5 and I found im al... |
I am trying to answer a biology question regarding the antibody kinetics with one or two major breakpoints at 21 days and three months. It is possible for me to use linear splines using GLM framework, but I am wondering if it is possible to do so in GAM but to have non-linear splines.
K argument does the splines accord... |
Authors in a paper state that they use the 'Bonferroni-Dunn test' as a post-hoc test. Is the 'Bonferroni-Dunn test' just a Dunn's test with Bonferroni adjustment or is it a different test (after searching on the internet I would say the former but who knows)?
Can Dunn's test also be used for paired samples (ignoring t... |
I want to write a function that returns an error with a rate of n% . I am confused if the following two ways are the same or what is the difference.
poisson process with λ=n/100
each time function is called, return failure if a 100 sided dice rolls a number less than or equal to n
|
I'm looking at building a model to find what factors from an electronic record are associated with trial enrolment.
I have two questions about this.
I have a large set of possible covariates and a logit model will not
converge will all of them included; therefore I need to select a
subset of the variables available. I... |
I'm looking at investigating whether a tag in a fish is retained within the body (or not) and the factors that are likely driving this effect as part of a metanalysis. This includes the size of the surgical incision, the tag mass to fish mass ratio, and various other tag dimensional parameters. The response variable is... |
I have an experiment setup that consists of multiple continuous and multiple categorical variables. Right now, I am just using two levels for the categorical variables, allowing me to encode them as -1 and 1, and thereby, in terms, allowing me to do a simple linear-regression analysis for the entire/fractional model (c... |
Is it possible to directly interact the time variable with another variable in survival analysis? Or is that what a log rank test is for? Working in Stata and I get this error when I try to interact the time variable with another variable (see screen shot). Other interactions seem to be working.
stset dx_lastcontact_de... |
I am interested in learning about how to simulate survival times from a Survival Model (e.g. Cox-PH).
For example, suppose we fit a Cox-PH Model on some data in R:
library(survival)
# Fit the Cox model
fit <- coxph(Surv(time, status) ~ age + sex + ph.ecog, data = lung)
The results of the model look something like this... |
My question is based on a previews post:
How to train LSTM model on multiple time series data? .
The task is basically the same. However, my question builds on that: What does the model architecture look like for the Proposed Solution ? Does the agent_id have to be entered individually into the embedding layer and then... |
In R when I use coxph the first factor is automatically picked as the reference group:
df <- list(time=c(4,3,1,1,2,2,3),
status=c(1,1,1,0,1,1,0),
treatment=c('A','B','B','C','C','A','A'))
summary(coxph(Surv(time, status) ~ treatment, df))
And I can obtain HR and CI for treatment B and C... |
Not sure the right terminology, but I am working on a node classification problem, and I am only able to obtain a training accuracy of 50% for my GNN (test accuracy is 40%).
It seems I should be able to overfit the model and achieve nearly 100% with the training data, but I assume the feature vectors are not adequate f... |
I'm reading "Econometric Modelling with Time Series" by V. L. Martin, A. S. Hurn and D. Harris ( https://www.researchgate.net/file.PostFileLoader.html?id=56bccdaa6225ff0de28b45a6&assetKey=AS:328005403594753@1455213991422 ).
I don't understand example 1.9 at page 11.
Let's consider an AR(1) model : $Y_t = \rho*Y_{t-1} +... |
I have a data set, redacted sample below. My goal is linear regression. My question is: Have I created unintended results, due to how I structured the df, using concat and/or div?
For example, predicting:
(2nd time rating) minus (base time rating) with
the ratio of (percent #1) over (percent #2 ).
From the df below:
((... |
Total people = 750M
Number of groups = 750
I have no additional information, and am looking to do a random sampling of the group. Assume everyone will respond with correct information on which group they are in. How many people would I have to randomly poll to get an accurate percentage breakdown for how many people ar... |
Given a CDF of random variable, $$F_X(x)=\sum_{j=1}^x \left(\frac{1}{2}\right)^j = 1-\left(\frac{1}{2}\right)^x$$,
I want to derive pmf of this random variable $X$. But there is no information about support of this random variable, so I think that to derive pmf, I have to calculate $F(x)-F(x-)$.
But how can I do this? ... |
A couple of trains of thought have come together for a model I am designing. Let's start with the first part: Bayesian inference doesn't update strongly enough.
One of the parameters $\theta$ is an angle on a unit circle. For a standard Bayesian treatment I would pick a weakly-informative prior over $[0,2\pi)$, but I t... |
Suppose I have a random variable $X$ with density function $f_X(x)$, and a continuous but non-smooth function $g$. We will also take $Y := g(X)$ to have a smooth density function $f_Y(y)$.
If $g$ had been smooth then we could have considered the equality
$$f_{Y}(y) = \sum_{k=1}^{n(y)} \left| \frac{d}{dy} g^{-1}_k (y) \... |
I have some data n > 3000 https://drive.google.com/file/d/1gwB_U_TOX-IQHZJJDX-WeErLzrZZFoXu/view?usp=sharing (Third column) that I believe based on my physical theory should follow a Lomax distribution.
$$
f(x) = \frac{ks^k}{(k + x)^{s+1}} ~~~~~x>0
$$
The parameters of the model are determined by theory and are
$$
s, k... |
I want to start learning statistics. I have taken proof-based Calculus 1 and 2, as well as two proof-based courses in Linear Algebra (1 and 2). What is a good introductory-level (but rigorous enough) book to start self-learning statistics? Also, if you know about any other resources (other than books) to help my self s... |
Where $\mathcal{H}$ is a $\sigma$-algebra on $\Omega$, section 9.1 here discusses thinking of a sub-$\sigma$-algebra $\mathcal{G}$ of $\mathcal{H}$ "as the collection of all numerical random variables that are $\mathcal{G}$-measurable".
This answer gives some intuition for $\sigma$-algebras generated by random variable... |
I'm French Resident in Haematology working on myeloma disease.
I've got a 360 patient-cases continuous variable (MRD) which range from 0 to 7%.
The fact, MRD is a residual variable disease calculated with a sensibility-technique of 10^-5, Thus any value below 10^-5 is returned to 0,00000.
I want to analyse in a regress... |
I am analysing my own data with a linear mixed model and estimated marginal means and have made a strange observation. I have run an experimental study with three treatment groups, measuring a dependent variable at three points. I also measured a continuous covariate. The structure of the data is as follows:
library(ti... |
I've tried many different models from Linear to non-linear and flexible models like random forest to solve a regression problem. But all of them apparently overestimate the lower values of the response variable and underestimate the higher values. Below you can see the "observed versus fitted" plot of the random forest... |
Imagine you have
either a very good predictive model $f$ for a response $y$
or two highly predictive models $f_1$ and $f_2$.
Is it possible to bound the "true" Shapley values of $y$ in terms of the prediction error and the Shapley values of $f$ (case 1) or can you bound the difference of the Shapley values for $f_1$ ... |
I have a dataset of individuals with one categorical variable of age groups (18-24, 25-35, etc), and another will illness category (7 values in total). If I graph the data I can see obviously much larger values for certain illnesses in certain age-groups, but I am unsure how I can test to see if these are significantly... |
I have a question regarding the boxplot. On some web pages, the Minimum and the Maximum of the 5-Number-Summary correspond to the whiskers. However, regarding this definition, my question is:
how is it possible to illustrate outliers?
In fact, no data points can be lower than the minimum (lower whisker) or higher than ... |
Say I have some binary classifier $f: X \to [0, 1]$. I think the following bi-stage training method is straightforward to reduce error.
Step1. Sample uniformly from $X$ and create dataset with relatively smaller number of dataset. Then train the model $f'$.
Step2. Taking advantage of the trained $f'$, sampling from $X$... |
In Statistical Comparisons of Classifiers over Multiple Data Sets (p. 12) Janez Demsar suggests to use the Bonferroni-Dunn test as a post-hoc test after the null hypothesis of an initial Friedman test was rejected.
Questions:
Friedman test is non-parametric. May one use a parametric test as a post-hoc test (e.g., pair... |
I have fitted a model in R programming language. My dependent variable is disease severity and my predictors are weather variables. How can I write this model in mathematical form for a manuscript? Is there a package which can help me write this in mathematical form? I will be making my GitHub repository available, but... |
I have conducted a measurement of sample on an instrument. I thus have the value of my samples, of a blank, and the standard deviation of said blank. I would like to execute operations on the value of my sample and need help understanding how standard deviation carries over across these operations. Here,± designates SD... |
Does someone know of a random number generation algorithm for a non-central chi-squared distribution with a non-integer dimension?
PS By algorithm, I am interested in the detailed procedure or methodology underlying the algorithm.
|
I came across this example in one of my lectures, but am unable to figure out how to carry out the marginalisation over c. In the context of bayesian networks:
For the first expression, it is obtained by reading the conditional independence assertations from the graph:
$p(ABC) = p(a)p(c|a)p(b|c)$
From the LHS of the f... |
I am trying to solve following problem in R.
My Model:
DV ~ IV1 * IV2
Whereas IV1 and IV2 are both categorical with many levels (IV1 in the thousands, IV2 around 10) and the DV is binary (1,0 - success or non-success)
What tests should I perform to see if the interaction between IV1 and IV2 (jointly, not on a per-level... |
I was thinking about the arithmetic average as a type of metric or a representation of data. Maybe there is a mathematical argument for the non-arbitrariness of that function. I think something like hashing creates the illusion of total information loss on the inputs, yet technically, the information is actually still ... |
In Chapter 8 of Intro to Statistical Learning, the authors state with regard to pruning a random forest that: "One possible alternative to the process described above is to build the tree only so long as the decrease in the RSS due to each split exceeds some (high) threshold. This strategy will result in smaller trees,... |
I have a population that a sample was taken from, and one "group" was not selected in the sample. I am wanting to find the probability of one group not being selected. I will use red/blue balls as the objects for simplicity.
Population: 802 balls total, 37 of which are blue and the rest (765) are non-blue. A sample of ... |
I wish to build a deep neural network that takes multiple time-series as input and outputs a single scalar value. The length of each time-series is constant, but the number of time-series can change between data points.
How should i approach this problem?
Thanks!
|
My model is here. I'm running a bootstrapping mixed-effects model with "case" type with lmersmapler. The thing is, now I'm using bootstrap_pvals()to obtain p-values and the results are not matching. Based on the 95% CIs, I should get all p < 0.05 except for the interaction, but the CIs and p-values are not matching. I ... |
Is it always true: The claim goes to the alternative hypothesis and the opposite of the claim goes to the Null hypothesis! If not then how to identify the case?
|
I do not have strong background in statistics but I believe I know the basics to understand what a ROC curve means.
I have a table, first column with probabilities (from 0 to 1) from a predictive test and second with true outcomes with 1 and 0 (1 when the prediction was correct and 0 when failed). I consider the predic... |
It's been a while I fitted GAMs, but I always find interpreting smooth terms to be somewhat confusing because there is no positive or negative sign for co-efficients. The plot does not always show a clear upward or downward trend. I always double check GAM output by fitting the same model using GLM or another non-linea... |
I have a bivariate normal distribution $\left(X_1, X_2\right)$ with mean vector $\left(\mu_1, \mu_2\right)$ and some VCV matrix as $\Sigma$.
Now I want to estimate the covariance between some continuous functions of the bivariate normal distribution as $COV\left(Y_1,Y_2\right), Y_1=2{X_1}^2, Y_2=e^{X_2}$.
According to ... |
Suppose you have some data, represented by the vector $\bf{y}$, and you have a model that maps parameters in vector $\bf{x}$ to $\bf{y}$:
$$f(\bf{x}) = \bf{y}$$
Suppose that $f$ is actually a Poisson process. So given $\bf{x}$, you can imagine sampling a poisson distribution to compute $\bf{y}$. This is a stochastic pr... |
As far as I'm concerned, the results from a t-test should be in line with the results with a regression model with a 2-level categorical variable. Why isn't this happening here? for more details
Here is the model:
mod1 <- lmer(CONT_Y ~ YEAR * MY_GROUP + (1|PARTICIPANTS), data = data)
Fixed effects:
... |
I’ve performed 2 different LCA in r with poLCA package.
1st LCA to identify subgroups of children in my sample. Results showed 4 profiles.
2sd LCA to identify subgroup of parents. Results showed 2 profiles.
Now I’d like to explore the relationship between profiles from 1st and second LCA. I’m new with LCA and I just ... |
Hopefully this is not a duplicate. Provided the t-statistic, SE and 95% CI, how can I manually calculate p-values for lmers in R? More details in the quoted link below.
I've used lmersampler to calculate a bootstrapped version of my model. However, there seems to be a bug with the bootstrap_pvals function, as it was ki... |
I am conducting a study on textrual complexity. We fed people food (3 types) over 3 sessions and asked questions about hunger levels. 20 participants were tested during 60 trials in total. Of the 14 variables, 4 are non-normal and transformation isn't helping. The other variables were tested using the lmer function in ... |
The following is the table of Lambda values that describe what the resulting dataset would look like after a Box Cox transformation:
What is the equivalent table for Yeo Johnson's lambda values? Cant seem to find it online.
|
Can I add 3 continuous independent variables and one binary categorical variable (without making dummy variables, as a dummy variable is created for more than 3 categories?) For example: one dependent variable and 3 independent variables, with the effect between 2 age groups in SPSS analyzed. Do I have to create an int... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.