instruction stringlengths 9 38.7k |
|---|
I've been using software to calculate multivariate risk ratios from logistic regression models. The basic premise is to predict the risk in everybody with some exposure and then again with the exposure, average the two and take their ratio. The multivariate delta-method is ugly but works.
I know multivariate risk ratio... |
I have 6 populations of fishes and 6 values of Fst (Fixation Index: A measure of population differentiation due to genetic structure) associated with each of these. I want to do a pairwise comparison of the 6 populations to check if they are really different from each other or not (significance)
I am unsure on what tes... |
I am curious as to why standard error estimates on lsmeans depend greatly on whether certain other factors in a model are treated as fixed or random effects.
For example, I have measured the fish species richness (FishTaxa) at different statuses of streams and controlling for Site and Station nested within Site. There ... |
Does it ever make sense to treat a time series as not being a time series?
For example, I have a time series of nine years of annual summer averages of zooplankton biomass and cumulative lake inflow.
The researcher who gathered the data suggested that because the behavior of the system in one year does not have any in... |
For a generalized linear model, the residual deviance is often described as having asymptotically a chi-squared null distribution.
I read that it's the case, for example
http://thestatsgeek.com/2014/04/26/deviance-goodness-of-fit-test-for-poisson-regression/
but I can't figure out why.
Can you help with an explanation?... |
A basic multinomial logistic regression model doesn't do great (~20%) in terms of test classification error for my problem, so a thought I had right away was to apply the adaboost to lower that. Initially, I got negative weights on the subsequent classifiers, but I figured out this was because the original adaboost alg... |
I've found all sorts of papers on dimension reduction for time series such as this (which doesn't seem to work anymore) and this.
All the papers seem to start with a discussion about how their method is superior to some other simpler method.
I have never had to think about dimension reduction in time series before so I... |
I run a call center. If my baseline customer satisfaction score is 90%, how many calls would I have to audit and score to determine or predict what my Customer Satisfaction score is for a specific time study period? (usually a month).
|
I have one response variable and 6 cofactors: a, b, c, x, y, z.
Can I compare a model ~x, y, z against model ~x, b, c or model ~x,z using the deviance?
Why? Why not?
|
(Example from Khan Academy)
Let's say that we're interested in buying a restaurant. We want to know how many customers the restaurant gets each day. The current owner tells us. We don't know if he's lying or not. So we observe how many come in each day for a week. Our data:
Why not use a matched pairs test here?
$n =... |
Given: 10 nodes (people), it's known that 3 of them are criminals
There are n (< 10) matrices 10x10 of interaction of different type between each two people(some of them are cooperations of different types, some of them a betrayers of different types), it's needed to determine criminals, with a playoffs a3, a2, a1, a0 ... |
I have financial data from multiple countries. When we started, the focus was only on US and our main training came from a US dataset which has 58 attributes out of which 27 were used for training. However, now that we are expanding, we have to generalize our models. When I look at data from other countries, the attrib... |
I'm having trouble grasping all the information regarding the workflow with time series. First I'd to check if the data points are iid, or not. Then based on that I'd set up a workflow. This would include feature selection (ranking), model selection and model evaluation. I have read about nested cross validation and I'... |
I am trying to work out a research problem I recently faced.
I have a group of Poisson random variables and I want to find the distribution of the first sample that is equal to a specific number. In math terms I have
Given Poisson random variables $S_{1},S_{2}...S_{b}..$ that are generated from rate parameters $\beta_... |
I have found two ways to deal with ties when calculation Spearman's Rank Correlation.
Calculate the ranks using fractional ranking, then calculate the Pearson's correlation of the ranks.
Calculate the correlation as if there were no ties using the formula
$$1 - \frac{6\sum_i (x_i - y_i)^2}{n(n^2-1)}$$
And add a cor... |
I am comparing different prediction models to predict flooding by R. For models I have Linear regression (lm), Index flood (IF) approach and Independent component regression (ICR). The first two have worked fine. The ICR is giving me exactly same result as the lm model no matter how I do it. I have 8 different predicto... |
I would like to write the following models in a form (using suitable transformations on
either x or Y ) where the new dependent variable, call it $Y˜$ , is linear in the new predictor, call it $x˜$.
How can I define the new Betas ($β˜_0$, $β˜_1$) are in terms of the old Betas ($β_0$, $β_1$)? Or is it impossible?
In my ... |
In neural language modeling, the target for each time step x(t) is the probability of x(t+1). But for sequence-to-sequence model, what's the target at each time step? Or, there is no target until the sentence end? If so, how to propagate error through time? It just propagate error once? I'm could't find the answer from... |
Im trying to learn some hyper-parameters for SVM classifier,
I want to know if there is any correlation between the kernel parameters and the regularization parameter - C,. because if not i can then try optimizing the C parameter and only when one has being optimized start with the kernel parameter, which will save me... |
I am wondering if I should use multilevel modeling (MLM) in my analysis. Theoretically speaking, the data structure appears hierarchical, so from that point of view, I am inclined to use MLM.
But in case anybody is challenging me here, I would like to show that the numbers back up this decision, i.e. I want to show tha... |
I'm reading the lecture notes of Germán Rodríguez on GLM (http://data.princeton.edu/wws509/notes), and I'm a little puzzled why the author keeps testing the residual deviance of a model, say $X_1$, by comparing to the saturated model $\Omega = X_1 + X_2$. That is, the null hypothesis is
\begin{equation}
H_0: \beta_{X_2... |
OK simply I have the following model:
\begin{equation}
\begin{aligned}
x_k & = f(x_{k-1},\theta)+q_{k-1}\\
y_k & = h(x_k,\theta)+r_k
\end{aligned}
\end{equation}
Using Matlab, I generated some data artificially (simulated data) with a vector of parameters $\theta = [\theta_1,...,\theta_n]$ (supposed the true paramete... |
There are plenty of shapes and tastes of neural networks out there. Just like any machine learning model they require as much data you can get to deliver good performance, but it seems that some models are more data-intensive than others. I looked for an overview of which models require more/less data to work well, but... |
I am creating a glm where sex is one of the predictors. I have already coded it such that 0=male and 1= female. Do I need to specify the variable as a factor when creating the glm? How do I interpret the output?
|
What is the explanation of the 2 arguments in the function gosolnp {Rsolnp}: n.restarts & n.sim?
From the package writeup:
n.restarts: The number of solver restarts required
n.sim: The number of random parameters to generate for every restart
of the solver. Note that there will always be significant
rejecti... |
I am new to machine learning. However, I've some experience with python.
My question would be kind of "what should I do", sorry for that.
Basically, I have a project, and I want to use machine learning there.
I can represent the idea like this:
The blue box (Design) has up to 15 parameters which can be changed, and e... |
I have a pdf of a random variable that looks like image below (the support is $[-1,1]$). It is actually function of another random variable, let's say $T = aX + bY + cZ$. When I changed parameters $(a,b,c)$, the pdf changed from the orange bars into the blue bars. You see that it can change from normal-kind of distribu... |
I have a question which the answer is probably obvious, but I couldn't find it so far.
I have a serie of returns which have a standard deviation of 0.0113 and a mean of 0.0009. I want to simulate a large number of these returns, assuming it follows a normal distribution N(0.0009,0.0113).
The problem is, when I run my ... |
This is a question regarding a project I am working on, yet is better dealt broadly.
When creating a hazard model (say coxph) using longitudinal data with time-dependent covariates, the best case scenario is without right-censored data, yet the Cox model handles right censored data just fine. But to what extent? Obvio... |
I'll start by saying that my statistics knowledge is quite limited. I want to find in which locations two 2D climate fields are correlated, and what the sign of this correlation is. The issue is that both datasets are highly autocorrelated, which makes significance testing tricky. So far I've simply split the domain in... |
I have a number of correlated independent variables (4) that I need to include in an OLS regression. Thus, I have problems with multicollinearity. The problem is that I cannot drop any of the variables because my research question is to determine which of these four predictors that matters the most.
I want to know whic... |
I have time intervals and probabilities for an event to occur in these time intervals. I want to calculate the probability of the event happening once or more during the entire period, that is to say with an event $X$, I want to know $P(X \geq 1)$ across all of the time periods specified. The probabilities can be assum... |
So I am following this applied statistics class, and we were taught 5/6 tests for outlier detection and normality test, then told to apply these to some datasets. I am quite confused on how to go for it.
I plotted an histogram of each dataset, and noticed that some of them were clearly not normal, so I rejected their n... |
--- Edit ---
Let's take a very simple model, with Y and X numerical variables and Fact a categorical variable.
mod = lm(Y~X*Fact)
I want to:
Check whether there are differences of Y between the Fact categories; i.e. to make pairwise comparisons of means of Y for Fact categories :
This can be easily done with the glh... |
For my ML course, I am planning on building a soccer match predictor using ANN.
Some of the input variables I have chosen are:
Form in last 5 games
Current Table Position
Number of Injuries
Club Ranking
My question is, how can a training set account for two teams, if each team has a different value for each variable.... |
I'm confused about my degrees of freedom (df) when comparing 2 CFA models using lavaan versus calculating them by hand.
I have 8 observed items/variables loading on 1 factor first:
library(lavaan)
model1 <-'
oneFactor =~ item1 + item2 + item3 + item4 + item5 + item6 + item7 + item8
'
fit1 <... |
I have a sample of $n$ i.i.d. "observations" of a random process $X(t)$ where $t\in [a,b]=T$.
I want to show that there exists a constant $0<D<\infty$ such that
$$\lim_{n\to \infty} P(\inf_{t\in T} \frac{1}{n} \sum_{i=1}^n X_i(t)^2 \geq D a_n) = 1,$$
where $a_n>0$ is a sequence with $a_n \to 0$, as $n \to \infty.$
wha... |
I would like to generate some data with the following relationships:
$ y = x\beta + T\delta + \varepsilon $
$ R_{x,y}^2 = a $, where $a$ is a number that I can choose when generating the data
$ \delta = b*\sigma_y $, where $b$ is a number that I can choose when generating the data
$T \in {\{0,1\}}$
For example, sup... |
I am trying to perform multi-label classification using neural network, with 3 hidden ReLU layers and a softmax output layer. I'm also using mini-batch SGD as the optimization algorithm and negative log likelihood as the loss function with L2 regularization. After performing feature scaling this is what I'm noticing is... |
TensorFlow allows you to create MultiRNNCell composed sequentially of multiple simple cells (LSTM and GRU). I usually use same type of cell when creating MultiRNNCell but I was wondering if there could be some benefits in using both LSTM and GRU?
Does anyone have some experience with it or theoretical insights?
|
Suppose $W_i=\frac{\delta_i}{\pi_i} S^\prime_i(y_i,\vec\theta)$, where $\delta_i$ is iid Bernoulli r.v, $y_i$ is fixed variable and $\vec \theta$ is a vector of parameters. $S^\prime_i(y_i,\vec\theta)=\frac{\partial}{\partial\vec \theta}S_i(y_i,\vec\theta)$. Suppose the vector
$$ S_i(y_i,x_i,\vec\theta) =
\begin{bmat... |
I am trying to do PCA from sklearn with n_components = 5. I apply the dimensionality reduction on my data using fit_transform(data) as defined here: http://scikit-learn.org/stable/modules/generated/sklearn.decomposition.PCA.html.
Initially I tried to do the classical matrix multiplication between pca.components_ values... |
In Kingman, J. (1972) On Random Sequences with Spherical Symmetry. Biometrika, 59(2), 492-494., the author states a theorem that, in his words, "has a close resemblance to de Finetti's theorem on exchangeability".
To my best knowledge a sequence of random variables has the property of spherical symmetry if its distribu... |
I am trying to predict the variable "Mittelwert.von.BAGSOLD" in this dataset:
> str(evaluate)
'data.frame': 38 obs. of 8 variables:
$ Zeilenbeschriftungen : chr "V104000" "V113396" "V114530" "V114538" ...
$ Mittelwert.von.YIELD : num 58.6 70.1 61.7 61.2 62.7 ...
$ Mittelwert.von.RM : num 1.5 3.9 2.7 2... |
I want to estimate interviewer effects on certain questions in a survey. Each respondent was interviewed once by one of four interviewers and the answers to some questions vary greatly by interviewer. I'm having difficulty working out the best way to report this though.
I've calculated the intracluster correlation coe... |
I regularly run multilevel models for repeated measures (over 10 or 15 work days) to analyse within-person links between job demands (say social stressors) at the day-level and well-being (say positive affect) the next day. I am also interested in indirect effects via a mediator variable, e.g. psychological detachment/... |
I am using the ABOD method to identify multi-dimensional outliers in my data. Everything is done in R as I am not familiar with other languages for such purposes.
I use a function that calculates the outlier degree and gives me a vector that contains the scores of all my observations. In theory any observation with a l... |
In estimating vector $\hat{\beta}$ of linear regression, why does variance-covariance matrix of $\hat{\beta}$:
$$V(\hat{\beta})=E[(\hat{\beta} - E(\hat{\beta}))(\hat{\beta} - E(\hat{\beta}))^T]$$
have as the second term inside $E()$ the transpose?
Since I've found covariance to be expressed like (with no transpose):
|
I have a very simple toy recurrent neural network implemented in keras which, given an input of N integers will return their mean value. I would like to be able to modify this to a bayesian neural network with either pymc3 or edward.lib so that I can get a posterior distribution on the output value
e.g. p(output | wei... |
Having a set of points $X\in\mathbb{R}^{n\times d}$ and a similarity matrix $S\in \mathbb{R}^{n\times m}$, I am interested in an approximation of the second set of points $U\in \mathbb{R}^{m\times d}$.
$S$ is constructed using some known measurement between the sets $X$ and $U$, e.g. Gaussian RBF or an Euclidean Distan... |
From literature I understand that the desirable properties of statistical estimators are
Unbiasedness - we want the estimator to give the correct parameter value theta, on an average, irrespective of the sample size--defined by
Consistency - we want larger sample sizes to give progressively better estimates of the... |
Prove that the “Fisher transformation” maps $−1 < a < 1$ to the reals, $R$. The Fisher transformation is defined as $f(a) = \text{logit}[(a+1)/2]=\log[(1+a)/(1-a)]$.
So far I have thought that
$-1< a <1$
$0< 1+a <2$
$-1< a <1$
$-1< -a <1$
$ 0< 1-a <2$
$0<(1+a)/(1-a)$
$\log[(1+a)/(1-a)]$
Are my steps so far correct? An... |
I'm dealing currently with kernels and kernel PCA. For this purpose I've been reading a few papers on these topics. In this context I've been reading the paper "Kernel Principal Component Analysis" by Schölkopf et. al. While reading the paper certain questions emerged:
Performing the kernel PCA, we get a kernel matrix... |
When reading books on statistical estimation I encounter the terms asymptotically unbiased frequently. I don't understand the intuitive meaning and math behind the term.
Also please explain how asymptotically unbiased estimator is different from unbiased estimator?
|
Maybe a silly question: I am used to cross validating in order to tune the hyperparameters of a model (e.g., alpha and lambda in case of an elastic net).
Does it make any sense at all to talk about cross validation for an ordinary least square (OLS) model, which has no hyperparameters whatsoever? In any case, it can be... |
Why does $$y \text{~} N(X \beta, \sigma^2 V)$$ $\implies$ $$M^T y \text{~} N(0, \sigma^2 M^T V M)$$?
When $M^T X=0$ and $M^T M = I$.
|
Suppose, we wish to predict future observations, e.g., by estimating the following simple AR(1) model with OLS: $Y_t=\beta_0 + \beta_1 \cdot Y_{t-1} + u_t$. Further assume that $E[u_t|Y_{t-1}]\neq 0$. Because our only goal is forecasting, we do not care about this endogeneity. My question: can we consistently and unbia... |
I'm analysing weekly sales data for a product which is highly seasonal. I would like to capture the seasonality in the regression model. I have read that if you have quarterly or monthly data, in that case you can create 3 and 11 dummy variables respectively — but can I deal deal with weekly data?
I have nearly 3 years... |
I have a binary dependent variable and 18 independent variables which I want to use as regressors in a logistic regression. Prior to that, I want to reduce the dimensionality of the data set to shield my model against overfitting. Which dimensionality reduction technique do you recommend me given that 8 regressors are ... |
I've been taking a machine learning class, and we learned various techniques for machine learning regression. The examples we considered were typically simple functions, such as a linear function $f(x) = ax+b$. But I'm thinking about how to apply machine learning to my own research, and a question that I have been wond... |
I'm training a CNN for text classification using tensorflow. When I train the model using multiple GPUs per the tensorflow docs, the performance on the dev set goes up 5%!
In the multi GPU case, the batch is split up into n smaller batches which are trained on n models (with identical parameters) on each GPU. The gradi... |
Suppose that we have a population that behaves as $N(1,\sigma^2)$, and we want to estimate $\sigma^2$. I would like to understand the difference between these two approaches:
We take a sample $x_1,\ldots,x_m$ for large $m$ and estimate $$\hat{\sigma}^2=\frac{\sum_{i=1}^m (x_i-1)^2}{m-1}=:T(x_1,\ldots,x_m).$$
We perfor... |
I am trying to calculate the coverage probability and rejection rates for confidence intervals based on the ttest. I have the null hypothesis $H_0 = 0$ and $H_a \neq 0$
I am having a hard time understanding the difference between rejection rate and coverage probability here. Is the rejection rate equivalent to the num... |
I'm looking at the bivariate relationships among a set of time-series data that have the same units. I have computed the covariance matrix and am working on interpreting it. My hunch is that it would make sense to take the square root of the off-diagonals, yielding a result in the same units as the data, just like conv... |
Given the following data:
972, 975, 985, 993, 993, 995, 998, 1001, 1004, 1007, 1008, 1009, 1011, 1015, 1016, 1020, 1022, 1032
I calculate the lower quartile as follows:
Number of values: 18, Number of 'gaps': 17.
Lower quartile is at 17/4 + 1 = 5.25th value.
5.25th value is 993 + (995 - 993) x 0.25 = 993.5
Upper quarti... |
An electronics company produces devices that work properly 95% of the time. The new devices are shipped in boxes of 400. The company wants to guarantee that k or more devices per box work. What is the largest k so that at least 95% of the boxes meet the warranty?
Attempt:
I know I should use the Central Limit Theorem f... |
I am using the rmspackage to draw a nomogram to represent a logistic regression model fit.
ddist<-datadist(data)
options(datadist='ddist')
fit<-lrm(Outcome~Grade+CF+HF, x=TRUE, y=TRUE, data=data)
The model returns:
I plot the nomogram:
nom<-nomogram(fit, lp=FALSE)
print(nom)
I receive the following points for each l... |
Where are MLE equations such as $$\sum_{i=1}^n \bigg(y_i - \frac{e^{x_i^T \beta}}{1+e^{x_i^T \beta}} \bigg)x_{ij}=0$$ for $Y_i \text{~} Bin(1, \pi_i)$ derived?
|
I am currently doing a project with R, and I am trying to forecast a dataset that starts in 1992,january and ends in 2015,december. The data has a monthly frequency.
I find that the best model to forecast is ARMA 5,3. I am using a model with trend and seasonal component to forecast. However, when i try to forecast the ... |
Does likelihood ratio test tell about anything else than whether two models are "different"?
Wikipedia says:
The test is based on the likelihood ratio, which expresses how many
times more likely the data are under one model than the other.
But what does it mean that data is more likely under one model than the othe... |
This is more of a conceptual question so I won't post any examples. I want to predict accuracy from reaction time in a mixed model setting. The problem is that the guessing level in accuracy was 0.5, and when I model the data the usual way I get predicted values which go below 0.5 which doesn't make sense for my data. ... |
There seems to be many questions on MI but I still can't find the answer for FA in SPSS, so here it is:
I have 2.6% missing data on a small sample for a likert scale question. After running a multiple imputation and obtaining 5 iterations, I split the data and ran a factor analysis on each of the 5 MI iterations. No... |
I apologize if this question has been asked previously.
I conduct mixed-effects model analyses in R and MATLAB, so this question is more conceptual than technical. MATLAB and R both produce p-values for each coefficient for GLMERS/fitglme.
In some cases, I may have a model in which there is a 3-way interaction in ... |
I am doing variable selection (regression) on a data set with $n$ = 120 and $p$ = 10 ~ 100. My goal is to have good prediction intervals.
If I am going to include more variables, then the prediction intervals would decrease by looking at the formula. However, I do not feel it is correct, because if I am going to add m... |
I am using the "cmprsk" package in R to test whether risk of developing a disease is significantly different between 3 groups. I can see the crr() function produces a p value for the variables entered into the regression as well as odds ratios, however, there is also a p value for the difference between the Cumulative ... |
I'm trying to figure out if Wishart can be close to Normal for a number of degrees of freedom enough large.
About chi-squared distribution, Wikipedia states:
By the central limit theorem, because the chi-squared distribution is the sum of k
independent random variables with finite mean and variance, it converges to a ... |
I have a large, sparse dgCMatrix matrix in R:
~200,000 rows
~150,000 columns
~1,000,000,000 non-zero entries
R code to generate the matrix:
nrows <- 2e5
ncols <- 1.5e5
nnz <- 1e9
set.seed(42)
i <- sample(1:nrows, nnz, replace=TRUE)
j <- sample(1:ncols, nnz, replace=TRUE)
x <- sparseMatrix(i=i, j=j, x=1, dims=c(nrows... |
In glm() function, it seems that you can specify Normal, Gamma, Inverse Gaussian, Poisson, Binomial, and quasi families. See here: https://stat.ethz.ch/R-manual/R-devel/library/stats/html/family.html. But how do you specify an Exponential distribution?
|
I have ten observations each from a measurement ($precision$) for two algorithms (let them be called $A$ and $B$) for the same data. I wish to test the alternative hypothesis that the mean precision of $A$ is statistically significantly greater than the mean precision of $B$.
I'm unsure of whether I should use a paire... |
I'm working on a recommendation system where the only available data are video completion rates and up-votes (no ratings or down-votes). Most of the users have not voted on anything.
What would be a good approach to recommending videos based on this limited information? Could I do something similar for "related videos"... |
I have a situation where I have very wide confidence intervals, and low rejection rates for a t test. I think that in general wider confidence intervals would be more likely to NOT reject the null hypothesis for a single sample t test since the null value is likely to be contained in the interval - since its so wide!
... |
Suppose i have several studies (e.g 5) and i use conditional quantile regression (e.g using the package quantreg in R) to obtain conditional quantile estimates at several percentiles (e.g 0.1, 0.2, 0.3, ... 0.9) using the same model ($y=B_1x_1 + B_2x_2 + e$) in each study. Can i combine estimates at each percentile (se... |
If the average proportion of people who cycle is 15% across various countries and the standard deviation of this proportion is 0.94 or 94% across countries, how can this be interpreted?
|
I am running a simulation where I know the null hypothesis is true.
The power of a hypothesis test is the probability of making the correct decision if the alternative hypothesis is true. That is, the power of a hypothesis test is the probability of rejecting the null hypothesis H0 when the alternative hypothesis HA i... |
I use multinomial naive bayes to classify questions.
When I use tf-idfs for the words in each sentence as features, I get an accuracy of 67%.
I am trying to follow this paper: Learning Question Classifiers*, Xin Li Dan Roth
It seems like when they use both words and positional tags as features they achieve higher accur... |
I submitted a manuscript and have received the following comment I am not sure how to adequately answer. The context is that I have a table comparing a set of "scores" between men and women to see if there are any gender biases. I performed a Mann–Whitney U test to determine if there is a statistical difference between... |
If $X_1, X_2, ..., X_n$ are iid $N(0,1)$ r.v.s, then $Y = \sqrt{n}\bar{X_n} \tilde{} N(0,1)$ (we can show this by calculating the MGF of $Y$). However, when I try to find the variance of $Y$ directly, I get a wrong answer:
$$
Var(Y) = Var(\sqrt{n}\bar{X_n}) = Var(\sqrt{n}\frac{1}{n}\sum_{i=1}^n{X_i}) = \frac{1}{n}Var(\... |
I want to plot two datasets with the number of times an event happens within a month, based on a variable (changed/unchanged). The number of occurrences vary from 0 to 775,963. Many values (about 25% for the unchanged variable and 10% for the changed variable) are at 0. My problem is that because of the very high dispe... |
I wish to use regression to predict the number of "useful votes" some product reviews will get. However, most of the data have few or zero votes. This renders the usual MAE or MSE completely useless as the algorithm just learns to predict values close to 0 regardless of the input given.
What performance metric can I u... |
Why is the answer to this question 'false?'
If both X and Y exhibit trending behavior, then regression of Y on X and a trend variable will always generate spurious relationship.
What are some cases in which this might be false? Or why is it false in general? I can think of a few true instances...
|
I have a data daily rainfall from 104 stations. The problem is what are the suitable packages to solve my missing value by using R. Most of the program are suitable for multivariate data. Im prefer inverse distance weighting method. Or any other suggestion are most welcome.
my data is look like this
Time MM
... |
I am working in R with a vector autoregression (VAR) model.
The objective. I want to simulate/forecast 10,000 sets of paths from a VAR(p) model of the expected returns of 3 assets, as part of a pet project of mine.
The problem. Using the vars package, I fit my VAR(p) model and use the function predict to forecast an ex... |
I've often heard this phrase, but have never entirely understood what it means. The phrase "good frequentist properties" has ~2750 hits on google at present, 536 on scholar.google.com, and 4 on stats.stackexchange.com.
The closest thing I found to a clear definition comes from the final slide in this Stanford Universi... |
model_pred_gender 0 1 # Confusion matrix structure is not corresct. it is issue.
1 314 698
model_pred_gender[pred>0.6] <- "1" # Now I changed pred > 0.6
tab<-table(model_pred_gender,vdata$Gender) # Confusion matrix creation
print(tab)
model_pred_gender 0 1
0 32 33
... |
A little background:
I'm trying to create a weighted formula for artists telling me how good they are based on the ratings I assign them for different characteristics they have. Basically I'm going to survey some people, asking them to rank order the characteristics in order of importance. From here I want the check th... |
Let $X_1, \ldots, X_{n_X}$ and $Y_1, \ldots, Y_{n_Y}$ be $n_x$ and $n_Y$ iid observations from two independent Bernoulli populations with probabilities of success $p_X$ and $p_Y$. Define the statistics $T_X = \sum_{i=1}^{n_X}X_i$ and $T_Y = \sum_{i=1}^{n_Y}Y_i$. I am testing the hypothesis:
$$
H_0 : p_X = p_Y \ \ \ \te... |
I have five queries with each precision and recall values. Now I want to report the average precision recall curve of 5 queries. Problem is that the length of precision vector is different for each query.
query1_precision = [1.0 0.7 0.5 0.4];
query1_recall = [0.25 0.5 0.75 1.0];
query1_precision = [1.0 0.7 0.5 0.4 0.3... |
I am using a linear model to calculate the ICC in a repeated measures dataset in order to get an estimate of the reliability of my measurement.
The model I am currently using looks like this
mod = lmer(x ~ (1|subj), data = test_data
with a resulting ICC calculated by
$\frac{RE}{RE + res}$
I now want to include anothe... |
medsens() is a fantastic R-method for testing sensitivity of mediation models
estimated by mediate() method (mediation package by Tingley et al; Version
4.4.5). However, I'm wondering whether medsens() is also appropriate for moderated
mediation? And if not, is there an alternative procedure that allows to test
sensiti... |
My data have 500 observations. The response variable includes toxic level and it has several predictor variables. I realized that all observations produced a noise, but higher intensity of toxic level data (above the 2nd quertile) showed a significant relationship with predictors. Is there any way to carryout regressio... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.