instruction stringlengths 9 38.7k |
|---|
I'm working on a classification problem where the dataset comprises a quote-unquote frequency profile from a timeseries. My dataset looks like this:
sensor1, [(freq1, power1), ... (freqN, powerN)], class
...
sensorM, [(freq1, power1), ... (freqN, powerN)], class
where each (freqN, powerN) represents the frequency band... |
Big Idea: This might seem a bit rambly, but there is a unified theme: how good is my model, and can I trust the predictions it's giving me?
Background: I am performing a linear regression (not logistic regression), where the response is continuous but all the features are categorical. I asked this question yesterday, b... |
set.seed(123)
main_levels <- rep(c("A", "B"), each = 3)
sub_levels <- rep(c("Low", "High"), times = 3)
site_levels <- rep(c("East", "West", "South", "North"), each = 6)
my_dataframe <- data.frame(
Main = main_levels,
Sub = sub_levels,
Site = site_levels
)
print(my_dataframe)
Main Sub Site
1 A Low E... |
I have an experiment with rates of an waste in complete randomized blocks designs, with evaluation of soil fertility and tree heights/diameters over the years. Which is the best model to fit this data?
Rates (ton/ha) - 0; 10; 20; 30; 40
Blocks - 1; 2; 3; 4
Years - 0; 1; 5; 9; 14
I used the lme:
Model for all data
m1... |
I have an experiment that have nine treatments consisting of three strains with three different levels of application. Each treatment involves 20 plants, and measurements were taken at three-time points over 10-day intervals, resulting in repeated measures data.
My dataset includes the proportion of endophytism in leav... |
PROBLEM DESCRIPTION
My data is a population of entities. Each entity is a convex set with a border and an interior, which in turn contain two types of cells. For illustrative purposes, let's say I have green and red balls which can be positioned in the border or interior of a given entity. Each entity can be characteri... |
I am running an ensemble random forest model (a newer method published in 2020). The model works by using a double bootstrapping step to balance imbalanced training data. Then you grow multiple forests and take means of performance metrics across forests (i.e. the ensemble). This method is supposed to take the place of... |
I'm a student doing a data science report on finance. I need to impute NA on some financial ratios. For example, ROAE. I have negative values and positive values. There are also NA, where they are defined in this way " when the denominator is negative, the results return NA". How I can fill these NA? Also there are fin... |
I am trying to fit standardized reaction time data to an ex-gaussian distribution with gamlss. In most cases the below code works fine (see rt_std1) and outputs the required ex-gauss parameters. In some cases, however, I get the below error (see rt_std2).
rt_std1 <- c(0.213011811269023, 1.92445300764915, -0.56099454623... |
I've been trying to find any references which have discussed the legitimacy of any item aggregation methods prior to conducting CFA, but I'm coming up short. Here's my context:
Large survey with 6 scenarios, 12 items per scenario, and roughly 4 items per scenario which map to 1 of 3 latent factors [see figure 1]. When ... |
We are learning about Principal Component analysis in our class, and I having trouble understanding how to compute the principal component given a matrix. For example, here is the matrix we were given. We were asked to compute the SVD of the matrix, but how is the SVD of the matrix used to compute the first principal c... |
I have a completely randomized block design with 4 treatments and 3 replicates per treatment (12 parcels). Each replicate is placed within a block.
In each parcel I have measured the number of infested leaves and the total amount of leaves at different times in the year. The total number of leaves is not equal among pa... |
I have a question. I have the following categorical data from an open text diary study:
Individuals reported emotions in different situations.
Each individual reported their emotions in 3 to 5 situations (therefore,
description of the situation was categorized). So I have dependent
data.
Is it possible to analyze the... |
I have a distribution of $n_{obs}$ "real" data observations drawn from a normal distribution $X \sim N(\mu,\sigma^2)$, and a number $Q$ of simulated realizations of the same distribution, from which I have drawn $n_{obs}$ observations from each realization.
I am interested in knowing the distribution of the number of s... |
I want to create a synthetic data set with $n = 3$ replicates for each of $a = 3$ groups such that
the overall F - test rejects $H_0: µ_1 = µ_2 = µ_3$ at the $\alpha = 0.05$ level,
but all three pairwise t-tests of the form $H_0 : µ_i = µ_j , i \ne j$ have p-values greater than $0.05$.
While reading this question, I... |
I'm doing research at the moment and for estimation purposes I need to convert a VMA (equation 9.2.2 in the attached picture) to a VECM model (9.2.1) in picture; does anyone know how to make this conversion?
|
I wasn't satisfied with the answers on this question, so I'm asking again: how do bookmakers adjust their implied probabilities as bets arrive sequentially?
Suppose there are four things to bet on, and they're all mutually exclusive: events A, B, C and D. Suppose at this moment the bookmaker's implied probabilities are... |
Consider a typical logistic regression on data with a binary response $Y$, and some predictor variables $X$'s.
I understand that when the event is rare, or in the case of complete separation, one could apply the Firth correction, for example in SAS:
proc logistic data=mydata descending;
class x1;
model y=x1 / firth;
ru... |
I have produced the following figure by simulating some values from a fitted gamma regression with a low AIC value that provides the closest approximation of my raw data out of all of my models, and the code used to create it.
> gam_age_tiss <- glm(value ~ age*tissue, data = SEAB_pivot, family = Gamma(link = "log"))
> ... |
I am trying to see if there is a class of statistical regression models which can specifically be used to model the "time to event" (e.g. time at which a certain threshold is expected to be passed for the first time). So far I have seen models that can be used for modelling how different phenomena change with time (e.g... |
I am trying to build a generalized linear model with a custom link function. This is a follow up to this question: Understand and specify a generalized logistic model in R
In this paper A Generalized Mixed Logistic Model for Predicting Individual Tree Survival Probability with Unequal Measurement Intervals ) by Yuqing ... |
I have the results of a 2*5 mixed ANOVA drug trial, where there’s a non significant interaction but main effects of both time and group. Scores were taken before and after trial (time). 4 drugs were tested and 1 control.
How do I interpret this non-interaction and main effects? Does the interaction mean that there was ... |
I want to conduct a two-way ANOVA with a mixed effect model using lme4. The trial detail is Factor A with 3 levels and Factor B with two levels (3x2) replicated on farms for two seasons. I assigned the two factors and their interaction as fixed effects, whereas farms and seasons are random factors. I tried:
fit <- lmer... |
I am currently working on a homework assignment and have the following question:
$\theta_1$ and $\theta_2$ are parameters of interest and $y_1$ and $y_2$ are the likelihood functions which are $\text{Bin}$~$(n_1, \theta_1)$ and $\text{Bin}$~$(n_2, \theta_2)$ respectively.
It is known that:
Both $y_1$ and $y_2$ are ind... |
I want to estimate the average effect of a treatment that was given with a selection bias. To do this, I'd like to use a matching method. Basically, this method involves finding, for each treated person, their equivalent untreated person, and then measuring the difference in outcomes between the two. This should help c... |
I am trying to compare two model which are based either on the male or female gender in my data. There is the same number of people in every gender group. Why is the anova function not giving a p-value?
ancova_female_subset <- lm(Y ~ X + covariate1 + covariate2 + covariate3, data = df_female_subset)
ancova_male_subset ... |
My objective is to run stacked regression (DiD) with entropy balancing in the setting of multiple timing for treatments.
Initially, my data consisted of panel data for firm-years. I then stacked this data by forming cohorts based on the treatment year, resulting in a data structure where the unit of analysis is cohort-... |
I am trying to understand the statistical calculations described in a letter to a journal. It describes the annual mortality rate of patients currently being seen by a health clinic. To calculate the mortality rate two denominators are used: The "total number of individual patients" and "the total number of patient-ye... |
I'm attempting to complete the problem sets for the Stanford CS109 Statistics course from 2021 as I follow along with the lectures.
I'm stuck on a particular problem in one of these problem sets. I have two answers, but they don't agree. Here's the question:
You have 8 pairs of mittens, each a different color. Left and... |
I work within a field that has some fairly challenging datasets. Without going into too much detail, the following sequence of analyses are canonically performed:
Individual subjects have time series datasets. These datasets are modeled as being explained by some other predictor variable's values across time (i.e. I'm... |
I seek to understand what confidence interval is with the aid of following example (which I know how to solve but do not understand the rationale behind it);
Suppose it is known that the weight of cement in packed bags is distributed normally with a standard deviation of 0.2 Kg. A sample of 25 bags is picked up at ran... |
I use survival random forest for a relatively large dataset with 1200 obs and 40 features. I also wanted to compare 3 algorithms with each other by benchmarking.
As tuning can be computationally expensive.
What are Important hyperparameters for survival random forest algorithms?
Is it allowed that we select just a li... |
I am reading about SVD and NMF and how they can be used for dimensionality reduction of a data matrix X
. What I did not understand why the data matrix is still have the same dimensions after SVD or NMF approximation? For example, if X
is 6x5 matrix, the result is still 6x5 matrix but it has a lower rank approximation.... |
It is a well known property of Gaussian distributions that if $Y = (Y_1, \ldots, Y_n)$, where each $Y_i$ is a real Gaussian random variable, then the components of $Y$ are independent if and only if the covariance matrix of $Y$ is diagonal. I would like to clarify how this property generalizes to situations where each ... |
I am reading the Introduction to Statistical Learning in Python (ISLP) book. I am reading the below paragraph:
Now suppose that the multiple regression is correct and newspaper advertising is not associated with sales, but radio advertising is associated with sales. Then in markets where we spend more on radio our sal... |
I am having a hard time understanding the concept of a multivariate normal distribution.
From my understanding, it assumes each group is normally distributed, making one joint normal distribution with a mean of [$\mu_1$ of $x_1$'s distribution, $\mu_2$ of $x_2$'s distribution, ...], and a covariance matrix.
Then, how d... |
I aim to investigate the impact of various continuous environmental factors (such as nitrogen, phosphorus, etc.) on the composition of microbial communities within soil samples. These environmental assessments and microbial composition data were obtained concurrently from the same soil specimens. A total of 30 soil spe... |
Statistics enthusiasts, I need your guidance!
I have encountered a modeling problem for which I could really need a push in the right direction. Both terminology wise (maybe with the right search words I will find a deep reference library on the subject) and in terms of modeling advice.
Consider the following: Some uns... |
Is it fine to use logarithmic scale with bar charts? (I guess I depends on a specific case, like using the logarithmic scale anywhere else). I have done so in a Power BI report when comparing each store's number of products by category. I wanted the interactive visual to accurately display the difference between stores... |
I am reading a text which is trying to demonstrate that enabling the select = TRUE option in the GAM function doesn't get rid of all the non-significant variables in the GAMs.
The text uses the following function to generate a GAM object in R:
(GAMFit <- gam(y ~ s(x1) + s(x2) + s(x3) + s(x4) + s(x5) + s(x6) + s(x7) + s... |
I am currently conducting a difference in difference (DID) analysis and fail to understand the benefits of fixed effects models in such cases. I ran a regular DID model with three regular independent variables (time, treatment and their interaction), however when I run the model with time (day) and stock fixed effects ... |
The proportion in one arm achieving an outcome is 101 out of 1152
The proportion in a second arm achieving an outcome is 123 out of 1155
Baseline variables predicting this outcome are available as medians and means
|
true <- c(1,1,1,2,3,3)
pred <- c(1,1,1,2,2,2)
library(mclust)
classError(true, pred)
The outputs are misclassified 4 and error rate 0.16667.
I don't know how it gives 0.16667 error rate
|
I read a paper that addresses endogeneity concerns related to a binary moderator using recursive bivariate probit models.
Their approach is:
Analyze data using a recursive bivariate probit model.
Get separate coefficients when moderator = 0 vs moderator = 1.
Run a Chow test to compare the two cases.
I tried running a... |
Let's suppose that you have data from about $2000$ soccer matches from a certain league. Your data shows that the home team's probability of scoring $0$ goals is $0.245263157894737$. The away team's probability of scoring $0$ goals is $0.321052631578947$. Now, if you just multiply the two probabilities you find that th... |
Suppose I generate some random numbers from a specific normal distribution in R:
set.seed(123)
random_numbers <- rnorm(50, mean = 5, sd = 5)
These numbers look like this:
[1] 2.1976218 3.8491126 12.7935416 5.3525420 5.6464387 13.5753249 7.3045810 -1.3253062
[9] 1.5657357 2.7716901 11.1204090 6.7990691 7... |
I've been delving into Bayesian decision theory and specifically looking at scenarios where we work with the logarithm of the posterior distribution (log-posterior). My understanding is that in such cases, the decision-making process often involves selecting actions or hypotheses that minimize some form of expected los... |
I am reposting the same question that I made on Stack Overflow. I am new with Bayesian analysis methods and I am still struggling understanding some concepts regarding priors. I am running a model with two categorical non-ordinate predictors:
TOV, which has three levels (TYPEWORD1, TYPEWORD2,TYPEWORD3).
Group, which h... |
In machine learning with statistical approach, does the bias of the model solely depend on the selection of the model class without considering the training data? There is a claim regarding the bias-variance decomposition in a technical report (Settles Burr, Active Learning Literature Survey, 2009) saying:
The second ... |
Consider two countable sets $\mathcal{X}$ and $\mathcal{Y}$. I aim to find the conditional distribution $P_{Y|X}$ that minimizes the following expression for any $x \in \mathcal{X}$
$$\sum_y P_{Y|X}(y|x) \log \frac{ P(y|x)^{1+a} }{W(y|x) \left(\sum_{\bar{x}} Q(\bar{x}) P_{Y|X}(y|\bar{x}) \right)^a } ,$$
where $a$ ... |
So I'm trying to see the effect of 2 different types of essential oils on e.coli (Grade 12 student - this is for my IB Biology EE)
What I did was that I increased the concentrations of the oils from 10% to 20%, 30%, 40%, and 50%. I used the disk diffusion tests and measured the inhibition zones formed. I also had a pos... |
I would naturally appreciate your advice on the following problem:
Following operations, patients can be started either Drug A or Drug B to prevent blood clots forming in patients calves. We surveyed $36$ doctors on which day they start either of these medications after surgery. There is wide variation when either drug... |
We have done a multiple regression with the 3 Theory of planned behaviour variables (subjective norm, perceived behavioural control and attitude) plus 2 added variables (because previous research shows that these are important) to predict the dependent variable intention. In the multiple regression 2 of the independent... |
In the Least Angle Regression paper, in section 3, the authors refer to how you can restrict the order in which variables are allowed to enter the LARS Algorithm. In particular, having obtained some prediction based on 4 of the 10 features, they recommend fitting the LARS algorithm again on the residual, with features ... |
I saw a lot of papers using mAP@50 and mAP0:5:95, but in terms of deciding how precise a trained object detection model is, I do not understand why often both values are discussed and shown. Wouldn't it be enough to just discuss around the mAP@50:5:95?
Additionally, I would like to know if you could average e.g. differ... |
Is there any connection between the parameter of a probability distribution and a conditional distribution?
What I am wondering about is, whether or not there is some notational shorthand or implicit mathematical rule that is just not taught, when we, say, calculate the expectation of a normal distribution with paramet... |
So basically the title is my question.
lin-reg model: $$y_i = x^{T}_i\beta + \epsilon_i, i = 1,...,n$$
Initalize $\hat{\beta^{[0]}}$ and the number of iterations $m_{stop}$.
Compute:
$$u = y - X\hat{\beta}^{[m-1]}$$
$$ \hat{b} = (X^TX)^{-1}X^Tu$$
Update
$$\hat{\beta}^{[m]} = \hat{\beta}^{[m-1]} + v\hat{b}$$
Repeat 2. ... |
I have $\vec{x} \sim N(\vec{\mu}, \Sigma)$. I would like to calculate
$$E[x_i | \vec{x} \geq 0]$$
There are libraries like tmvtnorm (in R) that calculates this for me. However, it seems to be very slow in high dimensions (I'm working with dimensions of around 1000).
I have also tried some monte carlo methods, but it st... |
There is a sizeable body of literature on the issue of multiple maximizers in maximum likelihood estimation, such as
https://projecteuclid.org/journals/statistical-science/volume-15/issue-4/Eliminating-multiple-root-problems-in-estimation-with-comments-by-John/10.1214/ss/1009213001.full
I am wondering if anyone is awar... |
I have a sample of people, $n=300$. All $300$ should be offered both of two therapeutic treatments (Treatment A and B). I will be collecting data on how many people were offered A only, B only, and A and B. All three values should be $300$ or $100\%$ (although I know they won't be).
Is there a way to test the significa... |
Anyone who reads the questions here on a regular basis quickly recognizes some questions as being from textbooks or exams. Such questions need the self-study tag and one reason for closing a question is not having that tag when it is needed.
That leads to my question: It is often easy to recognize these questions. They... |
I was reading the accepted answer to this question that asked what was the difference between autoregressive models and models that directly utilize time, it states that:
Models using time or time-squared or time-cubed etc. are anachronistic and generally not used/preferred except in very simple textbooks and in very ... |
I have a problem fitting a GLMM model with a Gamma distribution (my outcome variable is strictly positive and right-skewed) and an identity link using glmer in R. Whenever I use a certain dataset, I get the error messag:
Error: PIRLS loop resulted in NaN value.
Here is a reprex of a simplified version of the model I'm... |
First of all, I was reading a text and stuck with this part:
Now regarding the above quote, I want to give two scenarios I made up to make my question clear:
Scenario 1:
Imagine we take N measurements from same sensor, and each measurement consists of 10 individual temperature readings (samples). And imagine each meas... |
I have a signal in white noise that has the following form:
\begin{equation}
r[t_i] = A e^{-t_i/\tau} \sin{(\omega t_i + \phi)} + n[t_i]
\end{equation}
I would like to test whether the signal (1st term) at a known frequency $\omega$ is present against the null-hypothesis of pure noise. I know for the noise term (Poisso... |
I have three factors (Status, Time.Point, Treatment) each with 2 levels. Time.Point factor is "before" and "after" (the repeated measures). The data is unbalanced though (e.g. some before sample with no matching after)
I want to know if there are main effects of any of the three factors and if there are any interaction... |
I have online polling results with 1200 responses. 600 of the respondents were exposed to one set of images and the other 600 were exposed to another set of images. The respondents were then asked a series of questions which gauged their support for a particular political issue. The demographics of each individual were... |
true = c(1,1,1,2)
pred1 = c(1,1,2,2)
pred2 = c(1,1,2,3)
Suppose my dataset has two clusters, after using two clustering algorithms, one gives pred1 and the other gives pred2. If I simply compute the accuracy, pred1 is better. But pred2 correctly isolated the last sample into a cluster.
What measure should I use?
|
I have read the responses to this question here, here and here, but I am still confused on the application of loadings and eigenvectors.
Principally this statement (from the first link),
It is loadings which "restore" the original covariance/correlation matrix (see also this thread discussing nuances of PCA and FA in ... |
I'm tackling a time-series forecasting issue with daily granularity, aiming to predict a single aggregate value that represents the total sum of incidents over a 6-month period. My approach involves aggregating the daily data into monthly totals. Consequently, the test set will encompass 6 months, and the final predict... |
Good evening,
I have a problem with solving this exercise:
I could calculate the F-Statistics with the weak instrument test on my own. But I don't know how to test for exogeneity with two endogenous variables.
From the lectures I know how to work with one endogenous variable:
With the R-Code:
So my question: How can... |
Suppose we have the classic AFT (Accelerated Failure Time) model:
$$\log T = -X'\beta + \epsilon$$
I have seen the Likelihood corresponding to this model written in different ways.
For example, I have seen it formulated (i.e. written) relative to distribution of $T$:
$$
L(\beta, \sigma; T, D, X) = \prod_{i=1}^{n} [f(t_... |
I'm new to repeated measures and am trying to understand how it maps to lmer.
I have measurements from two time periods:
$t_1, t_2$.
At each measurement period, the same 50 different foods are scored side-by-side from two vendors. Three different judges score each food. We have an aggregate score for each food (average... |
I am doing research using Stata on state-level contraception policy effects on male labour outcomes (e.g. wages). I am utilizing the laws between 1960 and 1976 when Roe vs. Wade was not ruling and the states themselves could have their own laws. The treatment here would be to live in a state where women had access to c... |
The covariance matrix in an autoencoder is assumed to be diagonal. And, I see it mentioned in good places that this is a fairly restrictive assumption. To quote
However, in order to simplify the computation and reduce the number of parameters, we make the additional assumption that our approximation of p(z|x), q_x(z),... |
I need to do multiple pairwise comparisons among 5 groups (Treatment 1, Treatment 2, Treatment 3, Positive Control, Negative Control) for different tests and times. Each group has $10$ individuals, except for the negative control ($n=5$).
In most of the tests/times, the positive and negative control are all zero. The d... |
I am working with linear mixed effect models in Rstudio, using the package "nlme" and function "gls".
I have data for N=1800. For each participant, I have measured test score for 11 years, one per year. I want to check the association between metabolite X and the trajectory of tests (thus, I am using linear mixed effec... |
An aerial survey is conducted several times a year to count the number of animals in a given zone. So for each survey, I have a dependent variable: Nobs (Number of observed animals) associated with independent variables: observer, pilot, month, year. I want to choose the most appropriate time window (1, 2, 4 years) to ... |
I am looking for association between road buffer zone and epigenetic age acceleration? not sure if this is a correct approach?
> model1 <- lm (api.age ~ buffer.zone + Smoking_Status + sex + Age, data = ph1)
>
> summary( moddel1)
Call:
lm(formula = api.age ~ buffer.zone + Smoking_Status +
sex + Age, data = ph1)... |
In multiple places, p-value is defined as something that quantifies the probability of obtaining test results at least as extreme as the result actually observed, under the assumption that the null hypothesis is correct. A p-value < 0.05 is usually considered in favour of the alternate hypothesis.
If I understand corre... |
I have a classification model which classifies user's bank transactions into two categories. From this model I produce precision and recall metrics.
I would like to understand the confidence around these precision and recall metrics. However, because the transactions in the model can belong to the same user, they are n... |
I have a problem that is kind of similar to ordinal regression, but not the same. If I understand it correctly, in ordinal regression we try to predict ordered labels, e.g. the number of stars a book will get on Amazon by a certain customer. I.e., in ordinal regression the number of labels is fixed, say integers from 1... |
Let's say the population is 100 thousand, the share of the target variable is 1%. I found calculators that, based on the normal distribution, find to confirm a share of 1% and give an estimate of the sample size of 400 pieces - but this doesn’t seem to be the case. How else to approach the problem?
http://www.raosoft.... |
I have a dataset mostly consisting of single items and I have been analyzing them with ordinal regression and other ordinal analyses. However, I also have a likert-type scale and in theory I would like to include it as an independent variable in analyses with ordinal independent and dependent variables. Another researc... |
For classification problems with more than two classes, I've seen these two forms of cross-entropy loss:
-$\sum_k y_k \log(a_k)$
-$\sum_k y_k \log(a_k) + (1-y_k) \log(1-a_k)$
Here $y_i$ are the true targets and $a_i$ are the activations at the last layer of some neural net, usually looking like probabilities.
As far ... |
I am doing a multinomial logistic regression in R for an outcome variable with four categories, and 9 categorical independent variables. My dataset contains 1408 observations. When I run the model with all variables, the GVIF (1/2*df) values are good. However, when I compare the odds ratios of the multivariable model w... |
I have the following model, how do I add a random intercept(no random effects included yet):
modelid3 <- nlme(y ~ TPMRM0(M, v0, v1, v2, v3, v4, v5, v6, v7, v8, b, b, b, b, b, b, b, b),
fixed =list(v0 + v1 + v2 + v3 + v4 + v5 + v6 + v7 + v8 ~ 1,
b ~ act + 0),
random... |
I want to compare means between two groups using bootstrapping, where the groups are represented as separate columns in a data frame. The implementation below works, but the bootstrap comparison is a new topic for me, and I want to check if this is the right way to do this.
Secondary question - would this be a valid w... |
Two models with differing assumptions each purport to provide a forecast for a vector of values 1 year in the future. Each model has been run at the start of each month for three years:
Run Date
Model1 output
Model2 output
Actual Outcome
2021-01-01
$ \vec{y}_{M_11} $
$ \vec{y}_{M_21} $
$\vec{y}_{A1}$
2021-02-0... |
On Wikipedia, a nice theorem is given:
However, I can not find the stated theorem in the given references. So where is the stated theorem from?
|
I have read a recent paper called Kick Back & Relax: Learning to Reconstruct the
World by Watching SlowTV which tooks inspiration from a famous older one Unsupervised Learning of Depth and Ego-Motion from Video, in both of them an equation (equation 1 and 2, respectively) is not entirely clear to me.
For example, in th... |
I would appreciate your help with a question I have.
I'm creating a Difference-in-Difference study to examine how a conditional cash transfer to individuals 18 years of age to be spent in sport activities can encourage participation in sports in the long run. I'm thinking about using data from the government which pol... |
I have seen some discussion on the restriction on the parameter space such as MCMC on a bounded parameter space? this post, but I am wondering if there is a method to restrict the function or relationship of parameters in MCMC. So For example, I am fitting a linear mixed model where $\sigma^2$ is a variance for the ran... |
In some works, e.g., enter link description here
normalizing flow models are considered with ReLU activation.
For example, using a planar flow, $f = f_n \circ ... \circ f_1$, and each $f_i$ has the form
$$ z\mapsto z+uh(w^Tz + b)$$
for fixed vectors $u, w$, fixed scalar $b$, and activation function $h$.
Further, it say... |
caret package automatically converts factor variables to one-hot encoding. We can also convert the factor variable to a numeric variable before training any model. Here is a minimal, reproducible example
library(caret)
#Split into train and test dataset
set.seed(123)
trainIndex <- createDataPartition(iris$Sepal.Length... |
I'm applying Exploratory Factor Analysis (EFA) on 20 variables to identify latent factors. The normalized data (Z-scores) is not stationary (Augmented Dickey-Fuller test). First differencing makes the data stationary, but it ruins the analysis because the Scree Plot indicates 15 latent factors. This is in contrast to 5... |
I've noticed that there are some data analysis being done in some scientific field where the authors would split out an entire dataset into subsets based on a particular property. One classic example would be splitting an entire dataset into subsets containing control versus disease subjects. What got me a little confu... |
I am puzzled by some results and I would like to ask for some advice.
I have been fitting linear mixed-effects models on a rather small dataset (N = 30) and unlike I have seen before, pretty much all of my planned contrasts are significant. I have coded my factor of interest using sum coding and so the model yields res... |
I have a dataset of several thousand color palettes: for each row in a dataset, I have the ten most common RGB values in an image, and the fraction of that color in the overall image:
{
"id": uuid,
"colors": [[r0,b0,g0], [r1,b1,g1], ...],
"weights": [[0.2, 0.15, ...]
}
For a new, query color palette, what is the... |
I am calculating structural equation models as part of my thesis and am currently in the process of checking the assumptions. One assumption is multivariate normal distribution. This applies to all variables in the model, i.e. dependent, independent and covariates, right?
I am checking the assumptions using SPSS and ha... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.