instruction stringlengths 9 38.7k |
|---|
I'm trying to estimate days spent in hospital (length of stay, continuous variable) based on a clinical severity score (categorical, integer: 1, 2 or 3). The numbers reflect level of severity, so 1 is mild, 3 is severe.
I'm also interested to know if age (integer, continuous variable) confounds this as well.
In R, my c... |
I have been asked to add a regression/fitted line equation to a negative binomial mixed effect model plot. Example of a regression line equation is highlighted in yellow below for linear model.
I searched papers online, I didn't see a regression line equation for a negative binomial mixed effect model plot. Can someon... |
I've been working on training DNNs for various tasks and recently started incorporating additional loss terms into my models to improve convergence and performance.
I'm curious to know if I need to add parameters (e.g. layers) when I add loss terms encoding ``soft'' constraints or prior knowledge. Can someone provide s... |
I was looking for a way to compute statistics for evaluation metrics for language translation models and I came across spBLEU. I can’t find any implementations/examples that would help me start. Does anyone have a lead on what I can pursue?
thanks in advance!
|
With 3 boxes, two of which are empty and one full, what is the probability of winning the full box by switching when there are two left? Considering that I initially choose one box, and then one empty box is opened.
|
I would like to discuss the computation of the Tsallis entropy for the generalized Gaussian distribution. From the paper in the link https://www.sciencedirect.com/science/article/pii/S0167947322000822. The density function of the multivariate exponential power distribution, denoted as $MEP_m(s,\mu,\Sigma)$ , is defi... |
Suppose $(X_1, . . . ,X_n)$ is an i.i.d. sample from the distribution $f_{\theta,k}(x)$, where $\theta \in (0, 1)$ and $k = 1, 2$. Assume that $$f_{\theta, k}(x)=\begin{cases} \text{Poisson($\theta)$}, &\text{if $k=1$}.\\ \\ \text{Bernoulli($\theta$)}, & \text{if $k=2$}.
\end{cases}$$. Check if $T=\sum_{i=1}^nX_i$ is a... |
I would like to know how to calculate the sample size that will compare 3 treatment groups. Treatment 1, treatment 2 and Placebo. This is a completely hypothetical scenario.
In scenario 1 I would like to compare all treatments to placebo against a binary endpoint:
Here are the expected success rates: Treatment 1: 50% T... |
I have a dataset $D = \{(x_i, y_i)\}_{i=1...N}$ and I would like to estimate the expected value of a continuous function $r(x,f)$ given only an $x$, where $f=\frac{y}{x}$. The expectation here would be over the distribution of $f$
$$
\mathop{\mathbb{E}}_{f \sim p(f)} [r(x, f)]
$$
If I say that the empirical density of ... |
I have done this plot with cv.glmnet(), can someone help me to interpret it?
I also noticed that I get 2 different lambdas: lambda.min and lambda.1se
What is the difference between these lambdas?
Why the graph is so thick than normal?
What can I understand from the above plot in general (what are these confidence inte... |
I have a multiclass classification problem (intent classification). I trained an XGBoost model on a dataset that was feature extracted using SBERT embeddings. I'm trying to compute an explainability measure on a given prediction. This is much easier if I had used something like a TF-IDF vectorizer to extract features, ... |
I'm currently involved in a project where I want to address missing data using multiple imputation. I'm using healthcare data in a longitudinal setting with 16 time points, where observations are nested twice: each observation represents therapy-time (i.e., each therapy ID is given 16 times, unless it was censored), an... |
I’m not too sure how to answer these variations I thought of and was hoping someone could enlighten me.
A casino offers a game of chance for a single player in which a fair coin is tossed at each stage. A fair coin is flipped until it comes up tails the first time, or when the player decides to stop. At that point the ... |
I'll try to make it as brief as possible.
I'm trying to fit a glm to echolocation clicks count data using the glmmTMB function. I started with a Poisson glm and obtained the dispersion parameter (dp) both manually (Sum of squares of Pearson Residuals / residual df) and using the DHARMa function testDispersion. I got a ... |
I am training a neural network classifier with 250k training samples and 54k validation samples. The output activation is sigmoid. I noticed a sudden drop in the precision for the very top probability scores. The graph looks as below. Any advice about a possible cause?
|
Apologies if this belongs to Data Science instead of here (I can move the question) but this seems related to the math aspect more than ML. In our course we just saw how adding polynomial features to a dataset may improve the model performance. I understand that when there is one single variable, as this allows to perf... |
I'm trying to create a cash flow curve from past accounting data, and utilizing its 'shape' to predict future cash flow curves. I work in construction, and I want a representative curve 'shape' for each of the 50 accounting codes (which represents different types of work by subcontractors).
To predict future cash flows... |
When not working with surveys, you do a variance test with var.test(). What do you do when you want to account for complex survey design?
|
Are there model-based reinforcement learning algorithms for continuous states and continuous actions? I was trying to find such algorithms but couldn't find any. I know dynamic programming is for discrete spaces only.
Thank you!
|
I have a dataset comprising 1000 integers. It represented as follows:
1235, 1284, 1258, 1284, 1162, 1286, 1333, 1235, 1286, 1315, 1240, 1488, 1346, 1188,
1201, 1188, 1152, 1260, 1240, 1346, 1240, 1343, 1196, 1359, 1219, 1266, ...
The histogram doesn't appear to be normally distributed.
A Shapiro-Wilk test (scipy.sta... |
The deep learning book (Goodfellow, Bengio, and Courville, 2016)'s notation section says $\mathcal{N}(\mathbf{x}; \mathbf{\mu}, \mathbf{\Sigma})$ represents a normal distribution over $\mathbf{x}$, which I thought was just a shorthand for specifying the dimensions or for referencing a distribution without needing to wr... |
I am fitting a non-linear model to multiples species where the y is growth rate and x is irradiance. These growth-irradiance curves are common and there is a great r package 'phytotools' that implements a variety of model types. I am using Eilers-Peeters (EP) for four different species, and would like to directly stati... |
Related to this question, but adding a nugget isn't helping. Possibly I'm just making a silly coding mistake:
x <- cbind(runif(5),runif(5))
d <- dist(x)
k <- exp(-d^2)
chol(k)
# Error in chol.default(k) :
# the leading minor of order 1 is not positive definite
Adding a nugget doesn't help:
k <- as.matrix(k)
diag(k... |
There are papers on semantic analysis using metadata such as "Sentiment Classification on Steam Reviews" (https://cs229.stanford.edu/proj2017/final-reports/5244171.pdf) and "Detecting the Correlation between Sentiment and User-level as
well as Text-Level Meta-data from Benchmark Corpora" (https://shubhanshu.com/assets/... |
I am trying to fit a beta regression model in R with the outcome variable representing proportions, so that the model accounts for all of the constituents of the whole fraction. I am unclear how to keep track of multiple constituents at once. I have looked at a lot of different examples (using, for example, the betareg... |
I was looking for recommendations for an outlier rejection problem I find myself needing to solve.
I have a set of measurements (12 at a time) which vary sinusoidally according to
$$
d = \begin{bmatrix} \cos\theta\cos\phi\\ \sin\theta\cos\phi\\ \sin\phi\end{bmatrix}^T \begin{bmatrix}a\\b\\c \end{bmatrix}
$$
where the m... |
Here is a exercise from *Mathematical Statistics. Jun Shao. Second edition. EX2.20
Let $X_1,..., X_n$ be $i.i.d.$ random variables having the exponential distribution $E(a,\theta)$, $a\in R$, and $\theta > 0$.
$$
f(x,a,\theta)=\frac{1}{\theta}e^{-(x-a)/\theta}I(x>a)
$$
$$
F(x)=1-e^{-(x-a)/\theta}
$$
Show th... |
I want to test overall skewness / normality in a large data set of ordinal data from survey questions.
(I couldn’t use Shapiro wilk as I received an error saying the dataset is too large as it has over 20,000 data points):
boxplot(DATAFRAME)
describe(DATAFRAME)
What functions could I use to transform skewed data into a... |
I am studying MCMC by "Handbook of Markov Chain Monte Carlo" by Brooks, Gelman
This book is nice to explaining many fundamental concepts regarding MCMC. Especially in first chapter, they explain how Metropolis-Hastings algorithm coming from.
However, I can't really get what "Gibbs update" (or Gibbs sampling) explain he... |
I'd like to prove what concentration parameter $\kappa \in [0, \infty)$ maximizes the (differential) entropy of a von-Mises Fisher Distribution.
The differential entropy of of a von Mises-Fisher distribution $vMF(\mu, \kappa)$ is:
$$-\log C_D(\kappa) - \kappa A_D(\kappa)$$
where
$C_D(\kappa) = \frac{\kappa^{D/2 - 1}}{... |
I have a set of 30 patients. Each patient has a variable number of observations over a variable length of time(ranging from 4 to 10 data points per patient).
My outcome variable is whether they have gained or loss/stabilised their weight at any given point in time. I calculate this weight gain/loss by taking their weig... |
Question - In a year there are 956 births in a town A of which 52.5% were males, while in town A and B combined, this proportion in a total of 1406 births was 0.496. Is there any significant difference in the proportion of male births in the two towns?
Isn't the Question mentioned above (same question with its solution... |
I have the following contingency table that results in statistically significant result of Pearson's $\chi^2$ Test for Count Data.
I've computed Pearson residuals that should have the same properties as the z-score (elaborated in the answer Correlation among categories between categorical nominal variables). However, ... |
I want to test overall skewness / normality in a large data set of ordinal data from survey questions and was wondering how this can be done?
(I couldn’t use Shapiro wilk as I received an error saying the dataset is too large as it has over 20,000 data points)
I have used these R commands so far but not sure if they ar... |
Girl's Night
Audrey, Brooke and Caroline are planning a long movie night. They want to binge-watch some films together from their favorite director. But they can't decide on the selection of movies, because they have a deal that they must all agree on the films they watch. Moreover, their preferences are very different... |
As we know, one of the major weakness of conventional HMMs is related to the modelling of
state duration, as the probability of state occupancy decreases exponentially with time. There are multiple solutions to that, and one of them centers around replacing the conventional forward (and also backward) recursion step:
\... |
I have two time series $X_t$ and $Y_t$ .
The cross-correlation at lag $\tau$ is defined as
$$
C(\tau) = \frac{\langle X_t \; Y_{t-\tau}\rangle - \langle X_t \rangle \langle Y_{t-\tau} \rangle }{\sigma_X \sigma_{Y}}.
$$
I want to compute a null model for $C(\tau)$ at each lag $\tau$.
For normal correlation ($\tau = 0$) ... |
The recent paper by Liu et al. 2023 (https://onlinelibrary.wiley.com/doi/epdf/10.1002/ajh.26998) describes a single-arm study on crovalimab.
In the maintenance phase (weeks 5 to 25) patients were receiving the treatment and were evaluated every 4 weeks. The authors report the mean proportion of patients with hemolysis ... |
Why is the fact that the support of each $f$ belonging to a Cramér-Rao regular model does not depend on the parameter implied by the condition that the derivative with respect to the parameter of $f $ exist for every $x$ and every parameter belonging to the parameter space? Or better why an indicator depending on the p... |
would anyone know what command could be used to test whether the oblimin exploratory factor analysis function in r has produced the most simple structure? (as my understanding is oblimin does not always produce the most simple structure and that this may need to be adjusted)?
|
First off, it's difficult to title the question without the knowledge of the field, Please bare with me as I, very much a novice, attempt to explain the issue:
I have summary statistics for over a million variables. Each collaborator has mostly the same set of variable (around 90% similarity) and we are measuring longi... |
I am reading Cusato and Castillo (2023), an IDB Working paper on the effect of broadband internet expansion and access to credit in Peru.
The authors use a staggered difference in difference approach - as expected, they run tests to validate that the common trends assumptions holds.
Their analysis is at the Centro Pobl... |
I would like to convert the mean score of a sample that was administered a questionnaire using a six point likert scale into a mean that is comparable to the same questionnaire using a four point likert scale.
The questionnaire in question is the Rosenberg Self-Esteem Scale (RSES) which is most commonly administered us... |
I am running a second order model with betweenness centrality and closeness centrality as independent variables and cognitive demand as dependent variable.
The results shows that betweenness centrality is not significant as a linear variable but is positive and betweenness centrality^2 is positive and significant.
Clos... |
I am trying to implement the MDE method for GARCH given by Baillie and Chung '01 (Estimation of GARCH Models from the Autocorrelations of the Squares of a Process, Jrl. of Time Series Analysis) but I can't understand it enough to implement the algorithm.
For a squared process $X \sim GARCH(\theta)$ with size $n$, MDE c... |
I want to identify the matris form of general y=f(x) function for:
y(x)=p1x+q1 x<a1
=p2x+q2 x<a2
=p3x+q3 x<a3
=p4x+q4 x>a3
where a1,a2,a3,p1,q1,p2,q2,p3,q3,p4,q4 are unknown parameters to be approximately computed in paper : https://fr.scribd.com/document/380941024/Regression-par-morceaux-Piecewise-Regression-pdf
|
I'm doing a regression between Institutional Investment and Total Debt for 500 companies over 2000-2022. Basically, it's panel data. I get the results of the regression and I see that the two are correlated. Now, please guide me as to how I check if that correlation is also a causation with X affecting Y or Y affecting... |
Problem summary: How does the calculation of entropy differentiate between the "randomness" of two sequences that comprise the same set of elements?
Following this paper, let's say I have two vectors, v1 which is produced from an obviously predictable pattern, and v2, which is less so. The two vectors have the same mea... |
I have been reading up on Linear Mixed Models with random slopes, and I have a question that I could not find addressed anywhere. I have seen a lot of R model formulae (example) where random slopes interact with fixed effects, but what is the analytical form of the regression equation when a mixed model has a random ef... |
Suppose i am performing a test using the lme function, on some ecology data, i.e. count data. Say this is the formula:
a_model <- lme(fixed=Abundance~Treatment*TimePoint, random=~1|Plot, data=some_data)
Say i do this for many taxa (and yes, i know i have to correct for multiple testing). How do i compute the log fold c... |
I know you can compare Weibull distributions using the likelihood test but I was asking if there is a way to compare individual parameters like (shape and scale) between different distributions. A similar process is provided by Minitab I'd like to know if such approach is possible using R.
A similar question was asked ... |
I am trying to figure out how best to analyse fruit weight data from an experiment involving samples of both open-pollinated and unpollinated fruit from each of 10 different pollination treatments.
I had expected the unpollinated fruit from each treatment to be similar in terms of fruit weight because the growing condi... |
I'm using double machine learning (DML) to estimate a conditional average treatment effect (CATE). The main idea is as follows, see here for more info.
\begin{split}
Y - E[Y | X, W] = \theta(X) * (T - E[T | X, W])
\end{split}
The first two models, to estimate the outcome (Y) and the treatment (T), are gradient boosting... |
Straightforward question. Kind of like bucketing too.
Say you have a customer survey. The customer rates 1-10, or 1-5.
Say you want to use this to predict other behaviors. Reorder rate, refund rate, whatever. I know data science is a massive field but --
Is there a specific art, or methodology, whereas --- you may disc... |
I'm doing some analysis over natural language data, which basically entails:
Computing some feature over all samples.
Evaluating if this feature statistically significantly discriminates between sample groups with relative $t$-test.
This dataset has several thousand samples per group. I'm getting a lot of features as... |
I'm facing an issue while conducting the Kolmogorov-Smirnov (KS) test with two datasets of different sizes: 84 and 28 samples. I got these sets from normal distribution. I've noticed that the calculated p-values seem to cluster around certain values, leaving gaps in between. After some research, I came across the conce... |
I am trying to train a machine learning model to predict the probability that a given credit card customer defaults within the six-month window after the observed date. In this context, default means the customer failed to pay one or more of his credit cards for more than 90 days.
To do this, I have gathered monthly da... |
Suppose I have 100 observations among 4 variables, a Y with no missing values, then X1, X2, X3 that each have 10 (distinct) missing values, so that the complete case analysis has only N=70 observations.
When performing forward stepwise model selection, the variable selection sequence may be determined by fitting models... |
I have two multidimensional datasets $X, Y$ of dimensions $m \times n$. Here $m$ is the successive measurements and $n$ is the data collected during each measurement. We can say each of $m$ are independent of each other but the $n$ features of the measurements are correlated.
My goal is to find the mutual information o... |
My question follow this one.
Metrics such as MASE and MSE have better properties than MAPE.
However, MAPE has an excellent appeal for business areas, because it is easy to interpret and it is compared to the real data.
Where I work, they use cMAPE to select the models and it is calculated as:
$$\text{cMAPE} = \frac{|\t... |
I did an experiment where I randomly assigned participants to control and treatment group. All performed a task in which they had to illustrate images and then select one image in the end to be payoff relevant. I find a treatment effect on performance on the selected image (selected images in treatment group are on ave... |
I have created a Generalized additive model of a multinomial distribution using the mgcv package, I have used check.gam to do some diagnostic tests but they look pretty dodgy and I'm not sure completely what they mean. Could anyone help me interpret them.
First the model:
model1 <- gam(list(substrate.numeric ~ s(depth)... |
Consider the results of a competing risks survival analysis model published in a journal. The model examines the relationship between legislatures and coups. Legislature, the main explanatory variable, is a binary indicator that takes a value of 0 if no legislature is present if 1 if a legislature present. The authors ... |
My data shows the daily number of logins per person over the last three months.
I am modelling the number of events per person per day as a Poisson process. I am interested in estimating the population parameter $\lambda$ that represents the expected number of logins for any given person on any given day.
Given my data... |
I was a bit confused recently with why two jointly distributed variables will exhibit a smaller scatter as the correlation between the random variables increases (assuming only positive values for the correlation coefficient), but the standard deviation of the function of the sum or difference between these two variabl... |
I am using glmer from lm4 in R to run an explanatory IRT analysis. The aim is to model person parameters with items nested in persons and to control for age (the test scale has 10 items; all persons respond to every item). I want to run a cross validation and I have a training dataset (700 persons distributed over an a... |
I have seen various articles putting error bars on distribution density of either ordered categorical variables or categorical variables.
$Q:$ When is it appropriate to put SE error bar on estimated distribution for an ordered categorical variable? Had my study been census, there would be no error bar. If my study cann... |
I am working on a problem where I'm using tree-based models (RFs, GBTs) for forecasting. I've read that I have to de-trend the data if I'm using a tree-based model, however, I am reading conflicting opinions on whether or not to remove the seasonality as well. What is the correct answer?
|
When I think of the phrase "Bayesian PCA" I think of two things, but these two things are what I have contrived rather than conventional notions. I would appreciate guidance on what these approaches a called.
Method 1: To eigenstuff from another process
Suppose I model a random data matrix $\mathbf{X}_{m \times n}$ acc... |
The model
ŷ = b0 + b1X1 + b2X2 + b3X1X2
ŷ =company financial performance metric
X1 = carbon emissions
X2 = carbon assurance
X1X2 = interaction term
The issues:
Let’s say:
• X1 + X2 are related (but there is no perfect multicollinearity)
• X2 is endogenous
The questions that I would like to address based on the mode... |
I have a question about what's the ideal test to run for my study design. I would appreciate any advice!
I have:
• One within-subjects factor: time (5 levels)
• 2 between-subjects factors: group (2 levels) and treatment (2 levels)
• And one dependent variable which is the levels of a biomarker in the blood.
I would lik... |
I want to explore the roles of lung presence and habitat on tadpoles' ability to tolerate low oxygen levels. My experimental design generated several measurements of "responsiveness" (on an ordinal scale from 1-6) per individual. Individuals were either subjected to a high oxygen treatment or a low oxygen treatment, an... |
I am majoring in economics and I am reading this paper by Crossley & Kennedy (2002). It discusses the reliability of self-assessed health status (that is "In general, would you say that your health is excellent? very good? good? fair? poor?"). They determine that self-assessed health status has considerable measurement... |
I am comparing communities of insects between three different land use types (n=4 sites for each). I made an NMDS plot and all the groups looked very separate from each other (especially greenbelt sites). I figured an ANOSIM test would be an appropriate way to test if my communities are significantly dissimilar from ea... |
I am trying to do meta-analysis using a numerical variable (caculated dose value from different studies) with their sample sizes. I am planning to get the summary of the dose variable as follows with this equation: ni=sample size of that specific dose; dosei=dose value
Summary dose = Sum(ni*dosei)/Sum(ni)
This could ca... |
I have collected data on 1680 test scores and 1680 participation rates from 7 different courses and 4 different semesters using information from 60 students.
I am confused of whether to use a correlation test or distribution comparison test to analyze the following questions:
1. Considering that each course has a varyi... |
Hello fellow StackExchangers,
Let's say I have an experiment where two people are asked several questions, and for each question, they can independently select one of 5 preformed answers (A to E). So the answers may look something like this as an example:
Q1. D C
Q2. B B
Q3. D D
Q4. A E
......
I am interested not in th... |
I am doing some stuff with the SciPy's levy_stable distribution. The documentation says:
levy_stable.pdf(x, alpha, beta, loc, scale) is identically equivalent to levy_stable.pdf(y, alpha, beta) / scale with y = (x - loc) / scale.
Then, I understand that
levy_stable.pdf(x, alpha=1, beta=1, loc=0, scale=10)
should be ... |
I am wondering is there any established framework to optimize the parameter $\lambda$ of a particle filter such that $p(O|\lambda)$ is maximized, where $O$ is the observation sequence. For HMM and Kalman filter this can be done via the EM algorithm, which guarantees a local convergence. Is there something similar for p... |
I have been working on decomposing a monthly time series of the country's exports using JDemetra+ with the X13-ARIMA-SEATS model. My aim is to break down the series into its Trend, Seasonal, and Irregular components and then perform seasonal adjustments. The objective is not forecasting, but to utilize seasonally adjus... |
I am currently working through some math related to my work, and trying to understand how the individual pieces of the following equations come together for the Fisher information matrix expression (Eq. 8). I attached part of the document it comes from, but will attach formulas at the bottom as well. From what I unders... |
I encountered a multi-class classification problem and I wonder which model would work the best in my scenario. I have around 50,000 vectors (each of size 200) with corresponding categorical labels expressed a vectors of size 500 (closer categories correspond to closer vectors). There are around 5000 distinct labels. I... |
I am interested in using penalized regression (LASSO) with the glmnet engine in tidymodels to fit a model with a response variable that is continuous and bound between 0 and 1. I am familiar with how to fit a model to this type of data using a more "standard" generalized linear modeling framework (say, using the beta f... |
I'm learning about collaborative filtering, and all the resources I've found so far describes how to find items a user might like. However, how would I find the most similar users to a specific user, given the following conditions:
The user-item ratings are sparse, i.e., most of the items are likely not rated by a use... |
I have a question which makes me so hurt.
Let's have a price time series $y_{t}$ for the same asset (for example, daily S&P 500 values) $y_{t}$
It can be trendy (trend stationary or difference stationary) or not (stationary for the first moment, for example).
Currently, I can use 2 approaches: calculate the ARFIMA-GARC... |
I am kind of new to statistics so this might have been asked before (and I either haven't found or understood it).
Given a dataset of fractions: $[a_1/b_1, a_2/b_2, .. a_n/b_n]$, the overall ratio of the dataset would be calculated like this: $ \frac{\sum_{i=0}^n a_i}{\sum_{i=0}^n b_i}$ (1) - (not sure if it would be c... |
I am predicting a time series $y$. I have a baseline prediction time series let's call it $x$. By baseline I just mean a prediction I will later improve on.
I did more research and found that I can systematically come up with another time series $z$ that have lower or even negative correlation with $y$. $z$ has a prett... |
I am trying to interpret the results of a competing risks survival analysis. I am interested in understanding the effect of the variable party on the risk of a protest. Note that party is a binary variable that takes a value of 1 if a party is present in a given country-year observation and 0 otherwise.
Estimates:
... |
I determine that Team A achieves higher customer satisfaction scores than Team B with wilcoxn rank sum test. A customer satisfaction score is calculated from different sized groups of customers, and the different sized groups of customers can be repeated in the data. Each team will never have the same groups of custome... |
Can AIC/BIC be used to compare logistic regression against a random forest (RF) model? I've seen discussion where AIC/BIC is more apt for linear models and not RF.
|
Coefficient in Black, P-Value in Blue and Standard Error in Red. Using these results, can I deduce whether X or Y is the lead or lag variable in the time-series?
|
I'm trying to make a Quadratic Discriminant Analysis in R, but appears the follow mistake: "some group is too small for 'qda'". I was reading about it and I concluded that I have more columns (variables) than rows in a level of my categorical variable. Then, I want to know what criteria could I use to delete more varia... |
I'm working on my Masters Thesis and I'm encountering an issue regarding model convergence.
A bit on the background: the thesis is about utilitarian decision making in moral dilemma situations and its relation with dark personality traits (such as Psychopathy, Narcissism etc.) and potential moderating effects of charac... |
I'm working on developing a neural network (NN) to predict the duration (in seconds) of a fault. However, I've encountered a couple of challenges:
Model Performance: My neural network seems to be predicting near the average fault duration, and the loss is currently high (over 10,000). For instance, with previous data:
... |
I ran mice function and generated 3 mice imputed datasetes.
I have a nonstandard model that is not supported by with function so. I used this example and pool_parameters below to pool the model estimates based on Rubin's Rules.
models <- lapply(1:imputed_data$m, function(i) {
mixed_model(
cbind(incidence,... |
I am fitting a gam model with multiple environmental factors as predictors (actual evapotranspiration, climate water deficit, wind speed, etc).
My goal is to understand how each one of them contribute in explaining the variance of the response variable. Therefore, I am trying to calculate individual contributions of ea... |
I am trying to derive the differentiation of joint copula from this paper http://www.nicksun.fun/assets/ms_references/madsen2009.pdf, which is done in equation (4.3). To summarize
I fail to understand why the derivative of $z'\Sigma^{-1}z$ is $z'(\Sigma^{-1} - I_n)z$? Am I missing something?
Here $z = [ \Phi^{-1} (F_1... |
This may be really a simple question.
I know that if there are correlated variables, they may not be good to use for modeling. We have to use the PCA such that each PC is orthogonal to one meaning every PC is independent of one another.
If you have 4 variables, then you will have 4 PC at maximum. You have to determine ... |
I need to evaluate the impact of the Labour-Intensive Public Works programme on social cohesion using DiD. I chose a set of control variables and an outcome variable. The thing is to choose the right control and treatment groups for DiD estimation. The initial settings are as follows:
"Public Works Programmes (PWPs) ar... |
We know that if $X$ is positive, then $X^2$ is highly positively correlated with $X$.
I've plotted an array of integer numbers from 100 and 110 with the following code:
X = np.arange(100,111)
X_2 = X**2
plt.scatter(X, X_2)
plt.show()
The correlation as computed with the Numpy corrcoef function is pretty high: 0.99991... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.