instruction
stringlengths
9
38.7k
In a model with a categorical (ordered) response, how can autocorrelation of the residuals be taken into account? Apparently, including rho does not work. m1 <- bam(as.integer(tension) ~ s(breaks), family = ocat(R = 3), rho = .5, data = warpbreaks) Warning message: In bam(as.integer(tensio...
I am working with non-stationary time series data sampled at 128 Hz. I have segmented the entire time series into 1-second segments, meaning now I have a bunch of vectors, say $x_i$, where i = 1,2,3,..500 (500-sec data). Each vector will contain 128 data points, and I have corresponding labels (there are five labels/cl...
I'm looking for an educated reasoning concerning the following. I have several time run extensive hyperparameter tuning sessions for an XGBoost classifier with Optuna applying large search spaces on n_estimator (100-2000), max_depth(2-14)´and gamma(1-6). In the meantime, I've had set a fixed low learning rate to 0.03 a...
Let us assume we have a generative model $y = g(\theta,x)$, where $\theta$ is a set of parameters, and $x$ is a set of latent variables. Given a datapoint $y$, I need to update the parameters $\theta$ to maximize the model evidence $$p(y,\theta) = \int_x p(y \mid x,\theta) p(x,\theta)dx.$$ This integral is, however, of...
I have movement information from 4 animals across different moon phases. I want to compare if their movement (eg. distance traveled per night) varied among different moon phases. However, I do not have equal number of data points from all 4 animals. For example, animal 1 has provided data for 4 nights and animal 2 has ...
I am analyzing patients' rehabilitation use over a 5-year period. Describing their rehabilitation is challenging since: I should describe the proportion excluded from rehabilitation (zero-inflatation) I should describe amount (hours) received by receivers Time-to-event analysis needed since rehabilitation's start may ...
I don't know if this is a standard way od doing things so open to any suggestions, basically I have done random sampling from my population to create 2 groups Treatment & Control. I also have few dimensions for these 2 groups like gmv, qty_sold. I want to perform paired T- test to check if the 2 groups are similar acro...
Given $X=(d\; X_1)$, we want to prove that $$(d'd)^{-1}d'P_{[d X_1]}y=(d'd)^{-1}d'y,$$ where $P_{[X]}y=\hat{y}.$ That is, restricting the regression to the subsample for which $d_i=1$, we have that the OLS fitted values equal the actual values. I have a problem proving this. (Attempted) Proof: Given that $P_{[X]}=P_{[d...
I am writing my master thesis about how the difference between majority's (Belgians) opinion about socially relevant topics and majority's perception of minority's (Turks and Moroccan's) opinion about socially relevant topics predicts intergroup hostility. For example, the data I am using has three questions about Belg...
In bishop's book,the author mentioned that the integral of the multidimentional normal function goes to 0 since the sphere volume's goes to 0. How can i intuitively see this?
Suppose that X is a multivariate normal vector with the covariance matrix $\Omega$. As we know, if $\Omega$ is singular, the density of X is not defined in the usual way (because the denominator is zero). Measure theoretically, that a random vector does not have the density means that the distribution(probability measu...
I have time series data from a series of experiments plotted above. I am trying to fit a cumulative distribution function to it. The time series can each be of different lengths and because of how the experiment works do not have equal time steps. All values lay between 0 and 1. X are the time steps and Y are the valu...
I am examining the moderating effect of IV1 in the relationship between IV2 and DV using hierarchical regression analysis. The study has 2 demographic variables: gender and age. To determine if it is necessary to control these demographic variables, can I conduct MANOVA tests with IV1, IV2, and DV as dependent variable...
Suppose I keep throwing boomerangs every 10 seconds, and I throw 50,000 of them. 20% of the boomerangs are hit by drones so they don’t come back. The rest come back but the time it takes for them to come back varies. Each boomerang is tagged so for each boomerang that returns I can exactly find out how long it took for...
I am relatively new to statistical analysis. Let's say I have a data set of 5000 report card grades 3000 (60%) are "A" grades 100 (2%) are "D" grades and 25 (0.5%) are "F" grades and let's also say that there are demographic data for who received the grades. 65% of grades went to category X 35% of grades went to cat...
I would like to generate two matrices X and Y, of the same dimensions (n x p), given a row-wise Pearson correlation value, i.e. cor(X[i,],Y[i,]) = a. AND, at the same time, with a given column-wise Pearson correlation value, i.e. cor(X[,i],Y[,i]) = b. (In both cases, the correlation can be equal for all i -as proposed-...
I am trying to estimate the largest eigenvalue of some $d$-dimensional normal distribution $N_d(0,\Sigma)$ from the sample data $$X_1, \ldots, X_N \sim_{iid} N(0,\Sigma)$$ where $N$ is much smaller than $d$, say $N = 20$ and $d=2000$. (Recall that PCA works nicely for $N$ much larger than $d$, but may not work in my ca...
I'm trying to understand SMO, but stuck to the part of bound for Lagrangian parameters. In the SMO paper(https://www.microsoft.com/en-us/research/uploads/prod/1998/04/sequential-minimal-optimization.pdf), it says that the linear equality constraint $\sum_{i=1}^{n}\alpha_i y_i=0$ causes the $\alpha_1$ and $\alpha_2$ lie...
Suppose Suppose A and B are random variables that are independent of Xt. What are the steps to check whether {Yt} is covariance stationary?
I have aggregated survey data for various groups, but do not have access to the raw responses. Is there an appropriate test for statistical significance between group means with only access to the means and the number of responses for each group? I found that a Z-test for proportions is similar, but only deals with bin...
Have been working on this for probably 2-3 hours and can't figure it out. I got very close, but got stuck at a point where the numerator has ∑yi^2∑xi instead of ∑yi∑xi^2 and my denominator doesn't have anything after n∑xi^2. Would love some help seeing where I went wrong. My professor mentioned something today about d...
It is known that $R^2$ should not be compared between two regressions where one uses features $X_1,\dots ,X_n$ to predict $Y$ and the other uses those same features to predict $\log(Y)$. However, this relied on taking the logarithm before taking the expected value. If we consider two GLMs with Gaussian conditional dist...
Given $$f(y)=\theta/(\delta^{\theta}y^{\theta+1})\mathbb{1(y>1/\delta)}$$ where the last factor is the indicator function, and I am asked to compute the Cumulative Distribution Function of y: $$\int\theta/\delta^{\theta}y^{\theta+1}dy$$ and I get a result different from what the solution says, which would be $$1-(1/\de...
I have a simple probabilistic graphical model: $z \longrightarrow x$ where $z_i \sim Exp\left(\lambda_i\right)$ where subscript $i$ denotes the $i$th dimension and $x|z \sim \mathcal{N}\left(f\left(z\right), \sigma^2\right)$ where $f$ is some real valued function (usually non-linear). I'm using variational inference to...
While I can compare models that have different link functions in terms of AIC/BIC weights, I think it's impossible to use those weights to create an averaged model. Am I right in believing this?
Tl;dr - Very new to AIs and neural networks, trying to make tic tac toe. Trying to use a genetic algorithm that plays against other AIs, and the looser leaves. They seem to never learn even to not play where there already is a X or O. What to do then? Hi, I'm very new to anything related to AIs and neural networks. I h...
I have a symmetric beta distribution and draw d samples $x_i \sim Beta(a, a)$ for some a. Now I want to know the distribution of $\ell_2$-distances of the sample vector $(x_1, \dotsc, x_d)^T$ to the mean $(0.5, ..., 0.5)^T$. This is somewhat akin to what the $\chi$-distribution does for a normal distribution. I would b...
Problem + Attempt I need to construct an upper 95% confidence limit $q_r$ for $\theta$. From the theory I understand that probability that the true value is smaller than $q_r$ is 95%. It is given in the problem statement that $\frac{\widehat{\theta}_{M L}}{\theta}$ is a pivotal quantity. It is also given that $\mathbb{...
This paper provides the asymptotic normal distribution of the sample covariance matrix $\hat\Sigma$ under some fairly general conditions. Are there any resources which discuss similar results for the sample inverse covariance matrix $\hat\Sigma^{-1}$?
If 8 balls placed in a bowl and 1 had a prize and 8 ppl are choosing in order each ball. Is it better to go first or last without putting balls back in once each person takes one out?
Let's say I am running Cox proportional regression model for a variable with 4 levels (strongly agree, agree, disagree, strongly disagree). When I code it as an ordinal variable with these 4 categories, it is an insignificant contributor. However, if I make this variable binary (agree vs disagree), it is significant. I...
Let $(X_n)_{n \in \mathbb{N}}$ be a sequence of independent r.v.'s on $(\Omega, \mathcal{F}, \mathbb{P})$. Decide if the following sequences satisfy a weak law of large numbers, i.e that $\frac{1}{n}[S_n - \mathbb{E}(S_n)] \overset{p}{\to} 0$, Where $S_n = X_1 + \dots + X_n$, and prove the statements. $\mathbb{P}(X_n ...
I have a study where I will treat two ponds and measure changes in soil texture. I only have access to the two ponds, but will collect soil at 15 points in each pond. One pond will be flooded and dried over the course of a year, the other pond will serve as a control and remain flooded throughout. I will sample 6 times...
Say I have a dataset with the following variables: age, gender and Impact. Impact is the dependent variable and it's binary, age and gender are independent variables numerical and binary respectively. For the dependent variable "impact", if there's an impact a value of 1 is assigned otherwise 0. I want to find combinat...
This is an interview question. Suppose we have an autonomous driving system and a neural network. This NN can predict car position after 1 second and 10 seconds. Which result needs stronger regularization? Any way to not use regularization?
I am new to GAM and comparing several subsets of these model from the same data(multiple covariates). Now if I set the "method" to "REML" and then compare their AIC values, would that be pointless? Also if I further want to compare the p-values of them what should be an appropriate method? I know ML is biased but since...
I'm not certain whether my subgroup meta-analyses that produced extreme(?) values of MD (highest is 13.86 [95%-CI, 12.44; 15.29] and lowest at -15.42 [95%-CI, -20.63; -10.20]) are still valid. I used the random effects model for a highly heterogeneous data (790 pairwise observations). Is there are an acceptable range f...
I am having trouble understanding how to calculate the Maximum Likelihood Estimator when x depends on $\theta$. For example, to find the MLE of $$f(x) =\frac{2x}{\theta^2} \mbox{ where } 0\le x \leq \theta $$ we cannot use the traditional methods of finding Maximum Likelihood Estimators. Can someone please explain to m...
We know that for two independent events occurring simultaneously the probability formula is $P(A \,\text{and}\, B)= P(A) \, P(B)$, which is the Multiplication Rule. But does it work in these cases? i) Find the probability of numbers divisible by $3$ or $5$ in a random selection from $1$ to $20$. With the multiplying ru...
I am imagining some data distribution where taking the log over and over again yields a distribution that has the exact same shape.
Sorry, if question is meaningless but I have started to learn concept of P-value and confused to interpret that, if actual results are in favour of hypothesis but p-value are against it then what statistics we should go with? For an example - Let's say, I have two variables 'A' and 'B' then: my null hypothesis says: Va...
Here is the plot ,which I do not know what type of plot it is. It is so similar to box plot, but it does not have first quartile. How we can find mean and standard deviation using this plot? UPDATE: Link to the source: https://www.frontiersin.org/articles/10.3389/fendo.2022.754401/full
I have a very huge dataset and required to reduce the embedding of 768 dimension to 128dimension with TSNE. Since I have more than 1million rows, it takes more than weeks to complete dimension reduction on whole dataset, so I thought maybe I can separate the dataset into different parts and then perform each part separ...
I'm conducting a daily diary data analysis (10 days of dairy on various constructs of interest), where I'm interested in using previous day's variable X to predict the following day's Y. I created a grand mean centered version of the predictor X to indicate between person effect, and a group mean centered version of th...
Recently I am working with complex survey data. I use the survey package to analyze the data. I fitted cox proportional hazard model bysvycoxph and find some potential non-linear relationship between the variable and outcome. So I try to plot the model by restricted cubic spline. rms::cph and survival::pspline are two ...
I have data from a genetic experiment, where we have two lenght measurements from each subject (one for each chromosome). In normal conditions I would expect both variables to be normally distributed with similar mean and sd, and fully independent one from the other. From a technical point of view, both measures are ac...
I've been calculating 95% confidence intervals around the psuedomedian in a one sample wilcoxon signed rank tests, with a "greater" alternative and the mu = 0. That is, I have been exploring whether the group pseudomedian is greater than 0. I have several difference tests using this configuration. If it's relevant, I h...
Let say that I have two sets of measurements (two groups of patients A and B, 30 people each). I used some technique that checks particular gene expression. The measurements range from 0 to 100 with an accuracy of two decimal places. First five example measurements of group A: 54.63 43.97 72.35 81.45 94.81 ... Now I'd...
I have a data set consisting of 50 measurements of cytokine concentrations in 70 patients, resulting in a (70, 50) data frame. In addition, I have a data set containing covariables related to the samples (e.g. demographic data for this particular patient population). We grouped the cytokine measurements into biological...
Let Y be the time, for a mixture distribution with two exponential distributions, each multiplied by a and b and having 2 different parameters. How can calculations such as mean, variance and quartiles be performed when integrating the pdf from infinity to 0 does not yield 1? ( considering that y<0 equals 0). Thanks fo...
sorry if this may sound very silly or stupid, but I'm following a stats course in my uni and I have some exercises in which I have to compute the median of a continuous distribution. I know that, if for example I have a pdf such as: $$f(x)=\frac{1}{2(1-x)^{1/2}}$$ where $x\in(0,1)$. I can find its median simply by solv...
I have two groups of participants, group 1 looked at four images under condition 1, and group 2 looked at the four images under condition 2. I want to see whether the condition influenced the order in which they looked at the four images. Here is what my data looks like: participant Condition Image Order P1 P I...
Edited I'm working on an anomaly detection project where I have a set of independent variables and dependent variables. As I have ratio and percentage data, I want to know how to document ratios and percentages, whether univariate or multivariate. e.g. ratio = mass / volume percentage = mass of element / total mass
I thought that the chi squared (χ²) test is to be used when one has an r × c contingency matrix, i.e., when the dependent variables are nonnegative, span the same r dimension, and typically represent a count, frequency, or boolean value (cf. for example, p. 124 of Practical Statistics for Data Scientists by Bruce and B...
I am hoping to get some help in understanding whether the intercept terms are required in the objective function for piecewise linear programming (using the below code). import pulp as pl # Pieces pieces = [1, 2] # Problem prob = pl.LpProblem('Example', pl.LpMaximize) # Decision Vars x_vars = pl.LpVariable.dict('x'...
I want to predict the election results in a country. Firstly I want to check and specify probabilty. For doing this, I intend to use the election results of the past years and the estimation results of the survey companies. For example, in the election held in 2012, the survey firm x made a prediction of 30 percent for...
Suppose I dipose of a set of independant observed couples $(x_1,y_1),...,(x_N, y_N)$ from a joint distribution $P(x,y)$. Furthermore, I suppose that the random distribution $P$ as a Dirichlet prior $P\sim DP(\alpha, P_0)$ where $\alpha$ is a concentration parameter and $P_0$ is a centering measure. Then, we can deduce ...
Suppose we have the linear model for Y, with X1, X2 and X3 being continuous independent variables: Y = b0 + b1 * X1 + b2 * X2 + b3 * X3 + e To test H0: b1=b2=0 against H1: b1 or b2 or both are different from zero, the F-test can simply be used. If the right tail probability for F is lower than 0.05, say, H0 can be reje...
When we take the log of the $y$ variable of a regression and then fit the OLS estimator via $(X^TX)^{-1}X^T\log(y)$, we can interpret the regression in terms of percent change in $y$. However, this involved taking the logarithm of the raw values. In a GLM framework with a logarithmic link function, we would take the lo...
I just wonder what is the meaning or intuition behind $\sqrt{n}$ before $(\hat\beta-\beta)$ when we talk about asymptotic normality. Where does $\sqrt{n}$ come from? $\sqrt{n}(\hat\beta-\beta)\xrightarrow{ d }N(0,\sigma^2)$
I did a study were my control group (n=6) had an event in 100% of the individuals. I compared the time-to-event of the control to treatment groups (3), each with 6 individuals. The effect size is pretty large: no treatment-individuals showed the event. I recently repeated the study but only 83% of my control group had ...
Box and Tiao (Biometrika 1962) use a distribution whose density has the following form: $$f(x; \mu, \sigma, \alpha) = \omega \exp\left\{ -\frac{1}{2} \Big\vert\frac{x-\mu}{\sigma}\Big\vert^{\frac{2}{(1+\alpha)}} \right\},$$ where $\omega^{-1} = [\Gamma(g(\alpha)]\,2^{g(\alpha)}\sigma$ is the normalizing constant with...
I am using a Monte Carlo method to estimate the expected value of the results of certain simulations. Consider this simplified case: $X, Y$ are independent random variables and $g(X,Y)$ is a nonlinear function of $X,Y$. I would like to use Monte Carlo to estimate $\mathbb{E}_{X,Y} g(X,Y)$. In my code I do the following...
I've seen a couple of posts saying that violating the proportional hazards assumption (PHA) doesn't always matter, but several more suggesting it does and that the model needs to be modified accordingly. I'd like to know whether I need to worry about it in my case. I'm testing whether the latency of a species to eat de...
Bar charts with error whiskers, like the one below (taken from What type of plot is it?), seem to be quite common in some communities. I wonder, however, why is a bar chart used, and not a box plot? For pure values without uncertainties (i.e., when we wouldn't use the whiskers) I can see that bar charts are cleaner an...
I am trying to plot the difference between two medians. When I plot each median separately, I am using median absolute deviation as my error. However, I don't know what error I should use when I take the difference between the two medians. Let me know if I can provide more information. Thanks!
What is the best interpretation of covariance you can give ? I know that if $X$ and $Y$ are random variables, then if $Cov(X,Y)>0$, then if realizations of $X$ are higher than expected, then realizations of $Y$ will also be higher than expected. If $Cov(X,Y)<0$, then if realizations of $X$ are higher than expected, the...
Suppose that there are 10 smokers and 590 non-smokers in a room and let $X$ be a random variable that describes the number of smokers picked out, without replacement, in $n$ random draws. What methods could be considered for determining the minimum sample size for estimating that the population contains about 10 out of...
Problem description: The location of n solar panels is defined by the x,y location of the solar panels. Every solar panel must be protected by an anode. Each anode can protect up to 4 solar panels within a radius r of the anode. Place the anodes at x,y locations such that all solar panels are protected with the minimum...
I have price data from the last two years from my online groceries purchases on an online supermarket for all the products I bought. I want to study the increase of prices for the products that I usually buy; since I didn't always buy the same products, I am taking an average of a six months period for all the products...
I am trying to conduct a research study on the local population of homeless individuals in my county. But, before I can detail my study, it would be helpful to provide some context. Context: It is hard to know the exact size of the homeless population because the population is relatively dynamic (people move in and out...
I am trying to measure the effect of an event on some sales data. An event might be turning on a new payment method for customers, or a discount coupon promotion. Does it make sense to try a time series decomposition into Trend-Seasonal-Residual, and then try to spot the effect in the Residual component? Maybe it would...
I am very new to data science. Something struck me about Mars regression. The dataset is not on the same scale, so some columns are %, others are integers. I want to do clustering before doing Mars regression. I know I need to scale the data for this. But I don't know if I should apply the Mars regression to the scaled...
Is there a way to generate two correlated variables with a Bernoulli distribution where the sample distribution is exactly the same as the population distribution? I can easily generate a pair of correlated variables with a Bernoulli distribution. Here is an example where the two variables have a correlation of 0.5, an...
First time posting here. Suppose I have a random variable $X$ and after various algebraic rewriting and calculus I have arrived at a closed form of $\phi = \mathbb{E}[X]$. However, I am not totally confident in the algebraic manipulation so I want to verify the result by sampling. I can sample directly from $X$ and I a...
I need to prove the following and I have the following Mβ^=v lambda_min is the smallest eigenvalue of M and I've found the eigenvalue of the $\beta^n$ which is equal to I tried to use the Cauchy-Shwartz inequality to get some equation in form 1+x <= e^x, but couldn't figure out the way.
I'm using the mgcv (1.8-40) bam() function with discrete==TRUE method to fit in GAM for a very large dataset. It occurs that the summary table and results of the same fitted model differ by computer RAMs (cluster vs PC). I'm using the Fraud Detection - Credit Card data from Kaggle to generate reproducible examples belo...
I have been given the question - Consider the linear trend model: = 0 + 1 + + 0.5−1. You can assume 0=10, 1=0.2 and ^2=1. Find Var(). I tried solving this question by doing this - var() = var(0 + 1 + + 0.5−1) var() = var(0) + var(1) + var() + var(0.5−1) var() = 0 + (1^2).var() + ^2 + (0.25).^2 var() = (0.04).var() +...
I have a set of data I need to analyze, and it is my first time doing this and my advisor isn't sure what to do either, so some guidance would be really super. For my project, I tested groups of seeds under certain treatments - the seeds were not individually tracked, but tracked as groups. There were 3 groups of seeds...
The scores are $R^2$ values of around 20 machine learning classifiers. Which of the scipy statistical tests methods would be appropriate here? (https://docs.scipy.org/doc/scipy/reference/stats.html#statistical-tests) I'd like to see the best scores, for example, "according to a t-test with p <.05". For example, the cla...
I'm reading Masking and padding with Keras, in the beginning, an input example is: [ ["Hello", "world", "!"], ["How", "are", "you", "doing", "today"], ["The", "weather", "will", "be", "nice", "tomorrow"], ] The article states: The data is a nested list where individual samples have length 3, 5, and 6, respectiv...
Now, consider joint density of $X, Y$ : $$ f_{X, Y}(x, y)=\left\{\begin{array}{l} \frac{1}{\pi} ; X^2+Y^2<1 \\ 0 ; \text { Otherwise } \end{array}\right. $$ Derive $E(Y \mid X)$. I know how to calculate E(Y), but how do you calculate the conditional expectation? please help
We had a true-and-false exercise in our linear regression class that stated: When designing a study, larger SSX is generally preferred to obtain a more precise estimate. And the answer is true. I only know that $SSX = \sum^n_{i=1} (x_i - \bar{x})^2 = (n-1) \widehat{VAR}(x)$. Why would it be better to have a larger SS...
It is well known that Probit regression can be formulated as transformed linear model in the following sense: Suppose that $Z = X\beta + \epsilon$ for some normally distributed $\epsilon$ and let $Y = 1[Z\geq 0]$. If we observe $Z$ we have an ordinary regression model. If we observe $Y$ we have a Probit regression mode...
Consider a normally distributed random variable $X\sim N(\mu,\sigma^2)$ and a Lebesgue measure $\lambda$ on $\mathbb{R}$. Here, the value of the distribution at $\mu$, $F_X(\mu)$, is strictly positive, but the Lebesgue measure at $\mu$ is zero (i.e. $\lambda(\mu)=0$). Then, there is a seemingly confusing point: the dis...
There are 2 individual groups. Group 1= 40 dental students. Group 2= 4 faculty members (who are the assessors). To compare their scores on the 'Likert Rating scale', regarding the use of rubrics, can we use the Independent t-test?
I read that probability based binary classifiers have 0.5 as default probability threshold for getting hard 0/1 labels (in scikit-learn for example) but this could be fine-tuned with methods like receiver operator characteristics. I have run experiments in multiple times (best candidate is defined by Youden's J statist...
stats noob here. I have a (circular) dataset with values in [0, 2pi]. I need some kind of a measure of how disperse or diverse the dataset is. I have looked a bit into non circular (regular) data, and I happened to come across coefficient of variation as a non-dimensional measure of dispersion in a dataset. My question...
I created the following density plot for both values of a binary variable. The variable represents unrealised gains. If a (unrealised) position in a wallet (cryptocurrency) is at a gain it takes the value 1 and 0 otherwise. The value on the x axis represents the holdingtime, i.e. the time that passed since the position...
Suppose that there are 2 models, $y$ ~ $x_1+x_2+x_2^2+x_1:x_2+x_1:x_2^2$ $y$ ~ $x_1+x_2+x_2^2+x_1:x_2^2$ For both models, their adjusted $R^2$ values are the same and BIC values are similar with the 2nd model having a slightly lower BIC. However, the interaction term, $x_1:x_2$ in model 1 is insignificant. Not quite ...
I am trying to understand the loss definition for diffusion, but lots of questions already arise during the first step of the derivation. (I have nearly zero statistic knowledge, but I am good at linear algebra and calculus, so please point me to the right resource if possible). I am currently learning from https://www...
In the context of jointly testing J linear restrictions, I am reviewing the distribution of the F-statistic, which is F(J, n-k). Below, R is a full row rank Jxk matrix, q is a Jx1 vector, and the null hypothesis tested is $H_0:R\beta-q=0$. We assume that residuals are homoskedastic and that they are conditionally norma...
Background: I do research in medical imaging. In a current study I am analyzing a measured variable from images that may predict prognosis/survival. Studies of potential imaging survival predictors are common. It is often beneficial to perform some kind of normalization to negate scanner/examination/patient-related eff...
Suppose I have unstandardized data and estimate a 2-level Bayesian hierarchical model with varying intercepts and no covariates. The grand mean $\alpha_i$ and within-$i$ variance of the outcome $\sigma_y$ are estimated since I assign them priors. $$y_{it} \sim N(\alpha_0 + \alpha_{i}, \sigma_y) \\ \alpha_{i} \sim N(0, ...
I have reaction time data from a repeated measures design. Each participant completed 24 trials and gave four reactions per trial. I want to calculate two difference scores from these four raw reaction times for each combination of trial and participant and test whether these two difference scores are correlated. Howev...
Suppose we have multivariables ${\boldsymbol {\theta }}=\left[\theta _{1},\theta _{2},\dots ,\theta _{d}\right]^{T}\in {\mathbb {R}}^{d}$, and we want to estimate the function of parameters $\boldsymbol \phi(\boldsymbol {\theta })$ with unbiased estimator $\boldsymbol T(X)$, CRB states that we have a lower bound as:...
I have a linear mixed effect model with the following output library(nlme) library(readr) data = read_csv("data/data/data.csv") reg <- lme(independent ~ V1+V2+V3+V4+V5+V6+V7+V8,random = ~1+V1+V2+V3+V4+V5+V6+V7+V8|regions, data = data, control = lmeControl(msMaxIter = 1000, msMaxEval = 1000)) Linear mixed-effects model...
I was fitting a logistic generalized liner mixed model using glmer from the lme4 package when I stumbled upon the fact that the results change drastically when the order of the data was changed. So I tried running the same analysis with glmmTMB. glmmTMB actually produced more robust results. It also generated fewer war...
I am reconstructing a probability vector from data using non-negative least squares: $$ \sum_\alpha \left(\pi_\alpha - \sum_i W_{\alpha i}p_i\right)^2\rightarrow \min,\\ p_i\geq 0,\sum_i p_i=1 $$ However, I am really interested in a less finely grained probability vector, $w_\nu$, each element of which is a sum of seve...
For a random variable $X$, does $f(X) = X$ imply that $f(.)$ is the identity function, at least over the support of $X$?