instruction
stringlengths
9
38.7k
In the case of two independent samples, the formula for standard error of the difference in means is given by : $$\sqrt{\frac{s_1^2}{n_1}+\frac{s_2^2}{n_2}}$$ Even though we are talking about a difference, why are the standard errors of each sample means are added together?
Three groups of people each tried one of the three different applications and answered a questionnaire on a Likert scale from 0 to 4. Their age and experience in video games were also asked (on a Likert scale). A Kruskal-Wallis analysis, to tests for significant differences in medians among groups was performed. Post-h...
I have seen the results of additive interaction analysis in a paper I don't understand what is the meaning of the result expression of NA here and why it is NA, can you explain it to me please. [![enter image description here][1]][1] Description of the original paper: No interaction was found between TyG index classes ...
I have a set of $n$ samples, and each sample $i$ is labeled with three binary characteristics $a_i,b_i,c_i\in \{0, 1\}$. I'm trying to test the hypothesis that the proportion with $a_i = 1$ is the largest, followed by the proportion with $b_i = 1$, followed by the proportion with $c_i = 1$. For instance, imagine I had ...
This question was inspired by this discussion I read recently. After obtaining our results, the assumptions from the models we used should be checked, otherwise these results may be deceiving. Unfortunately, this important step is often skipped in practice in my field (health sciences), as I see it mostly because i) ch...
Starting from the "usual" case where we use the Bernoulli combined with logistic distribution for binary dependent variables: $$ \prod_{i=1}^{n} \left(\pi\right)^{y_i} \left(1-\pi\right)^{1-y_i}$$ with $\pi = F(\eta) = \frac{1}{1+\exp(-\eta)}$ being the logistic distribution function. If we instead define $f(\eta)$ as:...
I am running a series of mediation analyses in r using the mediation package and the following code: m_1 <- gam(mediator1 ~ age_cat + s(treat,k = 50,bs = "cr") + cov1 + cov2 + cov3 + cov4 + year, data = mediation_df, method = "REML") y_1 <- gam(dem_important ~ age_cat + mediator1 + s(treat,k = 50, bs = "cr") + cov1 +...
A position M-estimator of $\mu$ is defined as the solution of the equation (it is a $\mu$ such that): $$\sum^{n}_{i=1} \psi\left(\frac{x_i - \mu}{ \sigma_0 } \right) = 0 $$ ($\psi(x)$ is even and non-decreasing ,$\sigma_0$ is a fixed constant) An estimator $T$ is affine equivariant if $ T_n(ax_1+ b , ... , ax_n + b) =...
I use Multiple Imputation with MICE in R for dealing with missings in my survey data. I have two huge question marks in my head at the moment: 1.) As I have quite a lot of predictors (actually all variables of my questionnaire) I followed the advice from van Buuren to use the function quickpred(). The only argument I p...
Context My effort is to evaluate the performance of a physics-based numerical model to determine how well it simulates different state variables of a soil column (1D inside the model). The temporal scale of the evaluation is daily, and the spatial scale of the model output is point-scale. One of the evaluation metrics ...
I have monthly time series on forecasts (for the months of August, September, October, November, December, and January.) The data is only available for these months and doesn't exist for other months. I am trying to see how a shock affects the forecasts using impulse response functions. However, I was asked a question ...
I know that we can use Gaussian processes effectively for function approximation and regression. However,suppose there is a sequence of points in time $S = \{s_1, s_2, \dots, s_n\}$, where $s_i$ can be either 0 or 1 at random. If we have a new point at a time i = n+1 and we want to predict if its state is 0 or 1 based ...
I would like to find out why is it necessary and key to run the chi-square test before the multinomial logistic regression? I am reading someone's unpublished work and it says the Chi square test is initially performed to confirm which variables to run the multinomial logistic regression model, what does this imply and...
I'm not able to get good results after a long time testing when using TensorFlow to predict time series data (regression problem). I don't know if the problem is with the data (little quantity and/or low quality) or with the model (or if there is a problem with both) (although I have tried several and tested various co...
Scenario I am running a marketplace with 100,000 products available for purchase on my website. In most months between 1000-10000 different products are sold. This means that in any given month the majority of products are not sold. I want to change my pricing algorithm from version A to version B to increase total rev...
I have a time series of binary events, where the events are drawn from a Poisson process with a 50% chance of having a rate of $\lambda_1$ and a 50% change of having a rate of $\lambda_2$. Here $\lambda_1\approx10\times\lambda_2$. My goal is to distinguish between the two in as minimal a total time as possible. The sim...
To make things concrete, take a simple linear model: $$E[y \vert x_1, x_2] = \alpha + \beta_1 x_1 +\beta_2 x_2$$ In a one-sided hypothesis test, like $\beta_1 \ge k$ vs. $\beta_1 \lt k$, the confidence interval for $\beta_1$ is unbounded on one side: $[a,+\infty)$ rather than $[a,b]$ (or bounded by the limit of the sam...
Consider a linear model $\textbf{y} = \pmb{\beta}'\textbf{x} + \pmb{\varepsilon}$ with $\textbf{y}$ a $N \times 1$ vector of random variables, $\pmb{\beta}$ a $N \times K$ vector and $\textbf{x}$ a $K \times 1$ vector of random variables and $\pmb{\varepsilon}$ is a $N \times 1$ vector. In other words, I have a $K$-fac...
I have been asked to review a paper where the authors have intensive longitudinal data (several observations per day for several days). So they have lots of observations per participant. They do three things that strike me as wrong: they run a multilevel regression and save the participant-specific random slope coeffi...
Let $X_1,X_2,Y_1,Y_2$ be iid standard normal variables $N(0,1).$ Let $X=X_1+iX_2,$ $Y=Y_1+iY_2$ and $Z=XY.$ We have : $Z=(X_1Y_1 - X_2Y_2) + i(X_1Y_2 + X_2Y_1).$ From https://en.wikipedia.org/wiki/Laplace_distribution#Related_distributions : $\Re(Z)$ ~ $\mathrm{Laplace}(0,1)$ and $\Im(Z)$ ~ $\mathrm{Laplace}(0,1).$ Fur...
We say that $\varphi:\mathbb{Z}\to V$, where $V$ is an inner product space, is deterministic if there exists a finite set $F$ of non-positive integers and complex numbers $\beta_{i}$ such that $$\|\varphi(1) - \sum_{m\in F}\beta_{m}\varphi(m)\|^{2}=0 \tag{1}$$ The task is to show that for $\varphi$ a linear factor of w...
I am trying to perform a variance-covariance decomposition of a variable X. X is the sum of three variables, A, B and C. My goal is to understand what percentage of the variance in X is arising from the covariance between X and each of its components. I can use this identity: $$ X = A + B + C \\ Var(X) \equiv Cov(X,X) ...
Let $\theta \in \mathbb{R}_{>0}^n$ be a random variable with prior distribution $p(\theta)$: \begin{equation} p(\theta) = \prod_{i=1}^n \text{Ga}(\alpha_i, \beta_i)(\theta_i), \end{equation} where $\text{Ga}(\alpha_i, \beta_i)$ denotes the Gamma distribution with parameters $\alpha_i$ and $\beta_i$. If needed, we can a...
I have a series of beta regressions I have performed on the effects of tissue type, year, and age class on the eccentricity of ellipses, which varies between 0 and 1. I have created interaction models and a global model for all combinations of these independent variables except age and year, because not all age classes...
Good evening everyone, I have a dataset with 5000 observations, and 10 explanatory and 1 response variable (binary 0 or 1), and my task is to make a logistic regression model that can ideally predict well as well as help understand the situation and which variables are most impactful (so not a black box). All of the va...
I'm working on a model of rent for my employer. To keep it interpretable we're using OLS. I've had great luck on feature engineering so far in terms of increasing R-squared and reducing AIC. However, I just tried including the percentage of bachelor degree holders within a zip code and got results that are giving me pa...
According to this answer: https://datascience.stackexchange.com/a/95232/141037, is possible to verify the forecastability of a time series using the Shannon entropy, the lower the Shannon entropy value, the more forecastable it is. My question is: the time series I use for forecasting tests (regression problem) is wind...
I have a classifier model using the fine-tuning technique and training it with a dataset for the classification of tree species, achieving a 98% F1 score from sklearn in training like this image. I'm using the "grad-cam" module to generate my own CAMs for weakly supervised semantic segmentation. I have an image like t...
Study design: I am analyzing ecological count data for fish in a pre-existing database with observations of fish species abundances(zero_filled). Each species were recorded at a site twice a month of a given year. The recorded years are not a regression-they were chosen based on warmest on the record and coldest on the...
As defined on Wikipedia, $$\hat{\theta}_{MAP} = \underset{\theta}{\mathrm{argmax}} f(x | \theta) g(\theta)$$ Then, to actually obtain theta-hat-MAP, we could set the derivative of the above (or their log) to zero and solve for $\hat{\theta}_{MAP}$ then check the second derivative to ensure maximum. However, what happen...
In a statistical model e.g. regression, we have to ensure the sample size is sufficient to estimate a given number of parameters. Rules of thumb e.g. n=10 per parameter, or a power analysis, will give us the total sample size needed to fit the model. However, I was wondering how these sample size estimates apply to ca...
This is the result of a logistic regression analysis, the name of the table is (Logistic regression analysis for the association between different classes and Cardiovascular disease), we think that TYG index is a risk factor for Cardiovascular disease, how do I express the result of this logistic regression analysis or...
Suppose we have a testing problem with $$H_0: X_1,X_2, . . . ,X_n \ \text{are i.i.d. random variables with a continuous cdf} \ F(x) \ \text{and pdf} \ f(x)$$ and $$H_1: X_1,X_2, . . . ,X_n \ \text{are independent random variables with} \ X_i \ \text{having a continuous cdf} \ F_i \ \text{and pdf} \ f_i, \text{respectiv...
Let $A$ and $B$ be events in a probability space and $S(A)$ a collection of events such that $A$ is a union of some elements in $S(A)$. How could I then conclude that the conditional probabilities satisfy the inequality $$\min_{Z\in S(A):Z\subset A}P(B\mid Z)\leq P(B\mid A)$$ (or the same with $\inf$ in place of $\min$...
Suppose we have $n$ independent coins, each of which has an unknown and different probability of coming up heads. We have a magical machine that guesses the probabilities of each coin coming up heads. For $n=5$ coins, its guesses might look like 0.03, 0.45, 0.17, 0.91, 0.76. Then we flip each coin once and record the r...
I'm seeking clarification on the use of firm fixed effects $a_i$ in the following panel regression equation: $$y_{it} = \beta_{i}x_{it} + a_{i} + u_{it}, \quad t = 1, 2, \ldots, T$$ From my understanding, a_i represents a dummy variable for each company in the dataset. However, I'm curious about the essence of this ter...
This is with regards to the example given in the wikipedia article on statistical models. In the example it is claimed that "Each possible value of $\theta = (b_0, b_1, σ^2)$ determines a distribution on S," but no further explanation is given. I understand that $(b_0, b_1, σ^2)$ gives us a height probability distribut...
Tackling the problem of unequal group sizes, one would often intuitively think of increasing the number of observations in the minority group. But sometimes the opposite can also be useful, i.e. decreasing the number of observations in the majority group. There are different methods for doing this, in particular Edited...
I have random variables W,A,Z,U and know that the following conditional independence holds: $W \perp (A,Z)|U$. Is it correct to then state that $W|ZA\sim W|U$? My reasoning is the following but am unsure if it holds: $p(w|az)=\int_U p(w,u|az) du=\int_U p(w|azu)p(u|az)du=\int_U p(w|u)p(u|az)du=p(w|u)\int_U p(u|za)du = p...
I don't understand the necessity of the redundance in the training of DCGAN. So a classical DSGAN training procedure is like this: My questions: Can I remove step (7)-(8) and and reuse the fake images of (4) to compute the generator loss? If so, can I further reuse the result of $D(G(z))$? i.e. Generate fake images -...
In the above example I am using 3 methods for distance calculation 1.Calculating distances of actual data 2.Standardizing the data and calculating the distances 3.Using min-max scaler and then calculate the distances I have 3 combinations(3*3) dimension of data and wanted to caclulate the Euclidian distance for each a...
Would like to know what's the use of putting error bars indicating standard error and isn't it better to interpret with margin of errors ($±2SE$) instead? Does it make sense to put standard errors around the first value where time=0 and the mean change in score=0?, or can it be a mistake? Reference: Raymond W. Lam...
I have a sample of 33 observations with 16 variables. My main goal is to find which (could be several) of these affect y the most. Y is an unwanted error in a system and the x variables are possible causes of the error. I'm not trying to predict the size of the error, I'm searching for what could cause the error. I'm u...
I am comparing the distributions for the strength of two part designs. The test equipment maxes out at 300 units. The 300 units is an arbitrary limit of the equipment and does not represent a requirement of the design. If the sample survived 300 units of load, I recorded it as a "Pass". I don't know how to statisticall...
Does anyone know which test to use for structural break in VEC model? I thought to use a CUSUM AND CUSUM-sq, but it seems like CUSUM-sq always return results outside the critical bounds. Any help greatly appreciated! Actually, Im rather confused here. In many cases, where a VEC is applied in empirical work, the author...
I have data from a randomised control trial of approximately 60 people (30 people in the intervention group, 30 in the control group). I would like to assess whether change in one variable (M) is associated with change in another (Y), which are continuous variables. Ideally I'd run a mediation analysis to see if M medi...
I have two groups of time-dependent samples whose measured value changes nonlinearly with time. There are 3 samples in group A and 3 samples in group B. An example of my data is illustrated below. What test would be appropriate to test whether group A is significantly different from group B? As I seek the difference be...
If we apply Naive Bayer Classifier and predict an unseen observation just by using the posterior probability calculated with Bayes theorem combined with the naive feature independence assumption, do we neglect all kind of dependence sturcture (e.g. the (co)variance)? Or does that somehow still enter into our prediction...
I have seen that in meta - analysis, a multivariate model can be used to get the same estimates as a series of separate meta analyses e.g. https://www.metafor-project.org/doku.php/tips:comp_two_independent_estimates As I understand it, subgroup is incorporated as a categorical moderator in the model, as well as a rando...
I ran some analysis, and I would feel much more confident with the feedback of the community. I do not provide a MWE (but I would be glad to do so if you feel the need) as I consider this query more conceptual than purely code, but I provided pseudo-code below to illustrate my thought. All codes and models were done wi...
I want to conduct a multiple linear regression where I am only interested in interpreting one beta coefficient but I will adjust for two additional covariates (i.e. three variables total). Is it possible to calculate the power I would have given a sample size of $n = 150$ to detect a standardised beta coefficient of (l...
I am working on a study that investigates the effects of recurrent annual flooding on ammonia concentrations in a certain region. The flooding event occurs consistently on the same days each year. My challenge is to separate the impact of these flooding events from regular seasonal variations that might also influence ...
I'm currently facing a challenge and would greatly appreciate your assistance. I'm attempting to conduct a mediation analysis with two mediators in a within-subject design exoeriment using R. Here's a brief overview of my situation: Research Problem: I'm investigating the relationship between an independent variable (w...
I have an image and I want to plot the histogram of pixel intensity. The distribution seems a Poisson distribution (long tail). Can I fit this distribution using matlab function [lambdahat,lambdaci] = poissfit(data) and consider the maximum likelihood estimate (MLE) of the parameter of the Poisson distribution, λ given...
For an analyis of the effect of precipitation onto a given species trait, I am trying to interpret an hmsc model I have created. To do so, I have log transformed my community matrix data_comm to have normally distributed data, but had to remove all zeroes beforehand to obtain YData_abu (columns are species names, rows ...
When I use ar(method="ols") it should return the same as lm(), right? It doesn't: # AR set.seed(12345) n <- 100 y <- as.numeric(arima.sim(list(ar = 0.6), n = n)) model_ar <- ar(y, method = "ols", order.max = 1, demean = TRUE, aic = FALSE) model_lm <- lm(y[2:n] ~ y[1:(n - 1)]) c(model_ar$x.intercept, model_ar$ar) # vie...
the way I understand logistic regression, threshold = 0.5 basically produces a hyperplane to classify inputs which minimizes log loss (all of which is converted into a 0 to 1 range using sigmoid), so when we use a different threshold it basically shifts the line like a bias would, so why is prediction better when we us...
Consider a linear model $\textbf{y} = \textbf{x}\pmb{\beta} + \pmb{\varepsilon}$ with $\textbf{y}$ a $T \times 1$ vector of random variables, $\pmb{\beta}$ a $K \times 1$ vector and $\textbf{x}$ a $T \times K$ matrix of random variables and $\pmb{\varepsilon}$ is a $T \times 1$ vector. In other words, I have a $K$-fact...
I am receiving a result that seems very counter-intuitive using the Dunn's test. My data is illustrated in the plot below. I have 5 groups (labelled muscle1a, muscle1b, muscle2, muscle3 and muscle4). The groups are not normally distributed, so I used a Dunn's test with a Bonferroni correction to compare the values bet...
I have two data sets: Dataset#1: Frequency | Score ------------------ 1 | 100 Dataset#2: Frequency | Score ------------------ 50 | 80 60 | 90 The Weighted average of the Dataset #1 is 100 The Weighted average of the Dataset #2 is 85.45 The dataset#2 is much more credible and reliable since it...
In my field of biology, we have spatial data with known distances, so we know a general formula for our error structure that we can use in a generalized least squares context, it is $$ (1-\lambda)\mathbb{I}_n + \lambda \Sigma_{n}. $$ However, the current approach is to fit the value of $\lambda$ by maximum likelihood, ...
Before realising an Augmented Dickey-Fuller (ADF) test, one has to answer 2 questions, how many lags p to include in the model, AND which model to choose among the following: No constant, no trend Constant, no trend Constant, trend Let us say that I want to study the stationarity of a daily time series (without plott...
I have data where each row represents an observation and each column represents a variable. Variables are binary and has missing values. I want to calculate a sum of the presence of these variables. I thought of two ways: controlling for the number of NAs in each column This would weigh those variables were more obse...
I'm trying to fit a two-parameter function to data that looks like this (black dots, x scale is logarithmic): The best fit I could find is an $arctan$, measured by the MSE. All the seven functions I tested and the Python code are shown below. Is there perhaps a better function to fit this data that I might have overlo...
I have a few questions for help, One of my predictors is for treatment and control. Another predictor is dosage. Treatment group has 4 dose levels which control group only has one. Can I still use regression, and model treatment/control and dosage as two predictors? Is it better to include an interaction? Similarly, ...
I have a data of around 100 observation with two dependent variables--one is ordered attitude (values encoded as '1','2', and '3') and the other is binary requirement (values encoded as '0', '1'). I have multiple predictors including binary like gender, interval like age, and 2 multinomial style (6 values) and degree (...
I’m working with some survival data and I created linear regression models on two treatment groups to predict both RMST (restricted mean survival time) and survival probability. However, I’m unsure how to run a hypothesis test to check jointly whether these values are both the same as their counterparts across both gro...
I have a connected graph with weighted edges. I want to partition the graph into communities with a clustering algorithm. I chose K-medoids and I run it on a distance matrix, where distance = 1 / (1 + edge weight). If the feature space were Euclidean, I could simulate a uniform distribution over features and compute th...
I am working with a dataset (electronic medical record extract) and trying to find out whether there is a difference in a continuous integer outcome (RxTotal, mean=7.4, range 2-34, skew=1.6, kurtosis=2.3) for a categorical predictor (Race4) after controlling for another continuous integer predictor (TotalRxLen - a comp...
Let $X$ be an $\sigma$-finite space $(\mathcal{X}, F_{\mathcal{X}}, \nu)$ valued absolutely continuous random variable whose distribution is one of $P_0 = f_0(x)d\nu(x)$ or $P_1 = f_1(x)d\nu(x)$. We test the null hypothesis who says that $X$ has distribution $P_0$ against the alternative hypothesis who says that $X$ ha...
I want to run a regression analysis in R to explain the variation of my DV g_law_tot which is the growth rate of total budget from t-1 to t. I have yearly data from 1994 to 2023. I have some political, institutional and economic variables as IVs. I am not interested in forecasts but only to understand which are the mos...
I have a snRNAseq experiment with a 2x2 layout (wt vs transgenic, drug vs vehicle; Wt-V, Wt-D, Tg-V, Tg-D). I have 6 mice per group, but for cost reasons we pooled pairs of samples in each group, for a total of 3 paired samples per group (~20,000 cells per sample). I am then testing for cell type proportion differences...
I am running the following CLMM model in R Studio (version 4.3.1): incr_clmm <- clmm(OLR_Response ~ Distance + Species + (1|Bird_ID), data=olr_increm) I am able to run it but I get the following warning message: Warning message: In update.uC(rho): step factor reduced below minimum when updating the random effects at...
Recently I crossed this paper which represents the evaluation of various models' performances within a single dataset by Boxplot over $Absolute~Error~(AE)$ as follows: Fig. 12: Boxplot of baseline methods for our method and previous studies for M1. ref Normally we use $Mean~Absolute~Error~(MAE)$ or $Mean~Squ...
I'm predicting multiclass probabilities using CatBoost Classifier. I have a balanced dataset with roughly 4000 rows, 13 features, 4 target class labels. Dataset has some outliers which I decided not to remove. I'm using random_state=42 while splitting data and as a CatBoost parameter during both hyperparameters tuning ...
In R, I am trying to calculate Matérn covariance matrices whose inputs are randomly created distance matrices. However, I often end up getting covariance matrices that are not positive definite, which makes little sense. At first, I had asked a version of this questions at StackOverflow, but a few comments made there ...
As the hiring manager for my widget company, in order to decide whether to progress an applicant to an interview I administer an IQ test. If the applicant's score is above 110 on the test I let them through to an interview with the hiring manager, if not they are immediately rejected. My company has been doing this for...
I have a dataset that I'm modeling with bmrs in two ways: 1) trend across years and 2) comparison between decades. I've obtained the credible intervals from both of the models two different ways, and there are considerable differences in the range of the CIs between the two approaches. How do I know which is correct? ...
Suppose I have a simple dataset of numerous observations, each with a continuous numerical variable $x$ and a binary numerical variable $y$ (with values 0 for unsatisfactory, 1 for satisfactory). How can I predict how many of many of my observations would satisfy $y=1$ when the average $x$ in my dataset increases, say ...
See the following for a list of all constraints and references. Using R code, I would like to create an optimization that selects people (“A”,”B”,”C”) in order to maximize the number of products where the entire group sum can meet certain thresholds (mostly above threshold, a few below). So whether or not a person shou...
I am conducting one research evaluating the influence of eco-friendly events in cities (e.g., bike only for some streets on Sunday) on people's exercising habits (distance to walk in the cities). In total, I have nine events, and they were held between July 2016 and December 2018. The units of analysis are people in th...
I have a dataset of very different data and I want to make a multivariate analysis. I am a biology student so I'm very poor in statistics and so I am willing to study this fascinating yet important topic! My problem is this: I have to put together in a db-RDA (distance-based ReDundancy Analysis) elemental concentration...
I ran a between-subjects experiment in which 114 people evaluated 1 innovative idea, and I manipulated the source of the idea (IV1 = source; categorical: internal vs. external) to see if it affected the idea evaluation (DV). My main hypothesis is individuals with a high level of innovator role identification (IV2 = ide...
The definition in the book I am reading says the following: A test with power function $\beta(\theta)$ is unbiased if $\beta(\theta') \geq \beta(\theta'')$, $\forall \theta' \in \Theta_{0}^{\complement}, \theta'' \in \Theta_{0}$. Now, $\beta(\theta)=\mathbb{P}_{\theta}(\mathbf{X}\in R)$ where $R$ is the rejection/cri...
I am wondering how to incorporate different measurements, that were not taken from the same sample/individual and that have a different number of replication, into one model. As for now it is a rather theoretical question, unfortunately I don't have any data to come with it. But I am going to try to describe a possible...
Let's say I let a deep learning model classify a single object multiple times but under varying circumstances. Ideally it should predict the same class again and again. But in reality its class predictions may vary. So given a sequence of class predictions for the single object, I'd like to quantify how consistent the ...
I need help to understand how can I perform an analysis that was suggested by someone else with phytoplankton data. I need to calculate CWM of the community and then, calculate the significance of data variation among predictive variables. First, to calculate CWM, I am using FD package in R and the code asks for a comm...
I want to run an CLPM and have some questions regarding the clustered structure (school classes) of my data. I learned that centering can account for the nested data structure, but it is only recommended to center independent variables. In a CLPM, except for the first measurement point, all variables are independent va...
Suppose I'm interested in the causal effect of $x$ on $y_i$, where $i$ is the unit of analysis that could either be individual, county, or state level. Suppose $x$ is randomly assigned to unit $d$, where $d$ is not the unit of analysis. You can think about the standard Bartik (or shift-share) instrument setting where $...
Hi it occurred to me that for numerical stability people often use the log-likelihood instead of a real pdf/likelihood. And while this might work fine for MAP & MLE it's not obvious that it works for true Bayesian Inference (e.g. MCMC) since it isn't technically proportional to the real pdf. Now image you have a datase...
I'm trying to find the standard deviation from some simulated task duration results. The results provided the following: Mean - 430 Median - 374 P10 - 371.8 P25 - 372.4 P75 - 440.5 P90 - 588.6 From my understanding, since the mean and median are different I cannot assume a normal distribution (so I can't divide the IQR...
What would be a good test to compare patterns of differences among treatments? For example, the Y maze has an outcome of % of entries into each of three arms. Thus, three numbers are generated for each trial. Suppose two groups of animals are treated, and we are interested in how the pattern among the three arms change...
I am using CCA to compare two matrices of n by m dimensions. [A,B,r,U,V,stats] = canoncorr(Xtrain,Ytrain); % Mean Centered Xtrain,Ytrain Vpred = (Yheld) * B; % Mean Centered Yheld V_manipulated = Vpred / A; compare Accuracy of (Yheld, V_manipulated) Vpred/A is...
I asked a question yesterday (Better function to fit log-like data?) and the accepted answer got me thinking. For non-linear data, Is it better/more recommended to asses the goodness of fit on the original data or on the transformed linear data? Here's an example of what I mean using the data from my previous question....
I'm trying to predict that speed at which people complete a walking test, where they perform this test for multiple trials and overall increase their performance on each trial. They perform as many as they can, in a set amount of time, and come back on three sessions to perform it. There are two groups, intervention ...
I was not able to find an answer to this question, as I feel it is rather specific and awkward to ask. But, here goes. This is a simplified version of my data: As you can see, I have various subjects and I am measuring three variables for each of them each year. Variable 1 and Variable 2 are completely variable for ea...
Could someone please assist me in identifying whether my model is underidentified, just identified, or overidentified based on the post-estimation results of my Structural Equation Modeling? I have 16 observed variables and 2 latent variables, with a sample size of 921.
Stuck on a data tidying problem, and not sure how to work around it. I have messy character data on whisky, which I'm looking to organise so that I can conduct some analyses. Specifically, I'm looking to extract the abv % values from the product name, and place them into a new column. An example of the current data wou...
I have a temperature sensor data, I want to denoise it. The first thing that came to my mind was to take the moving average, it was very smooth but it is still not stationary. If I take the log difference, it is stationary according to ADF and KPSS, but is this the right thing to do? Is it right to the difference trans...
I'm working on decision-making using Double Hierarchy Fuzzy Linguistic terms. I want to ask if can we compare two Double Hierarchy Fuzzy Linguistic terms. I am trying to implement the TODIM algorithm for ranking.