instruction stringlengths 9 38.7k |
|---|
Assume I have a dataset split into train/val/test and I want to compute the optimal threshold value for an F1 score. This threshold value is in [0, 0.5] as described in What is F1 Optimal Threshold? How to calculate it?.
For a classifier that outputs a probability I would select the optimal F1 threshold on the validati... |
When using a parametric bootstrap, we use MLEs to parameterize the model. When working on a normal distribution, I assume that we use MLEs for both the mean and variance. But the MLE of variance parameter is biased, and this makes me confused.
I think that the idea of bootstrap is to generate samples from a distributio... |
I'm working on a project that generates a list of decimal numbers every hour. The amount of values in the list can range between 1 - 6000 depending on the some variables (time of day etc). Each of the values will range between -1.0 and 1.0. Anything below -0.1 is considering a negative result and anything greater than ... |
Suppose I want to estimate the area of a circle by getting 10 measurements of its diameter. I assume that the measurements are Normal (D,1). I want to get an estimate of the area, A using the method of moments. My question is, will this work if I used the method of moments to get an estimate for D and just get an estim... |
I just started learning about ANNs about a week ago with no classical training. Just by watching videos and reading blogs/white papers, I've gotten this far.
I have a question about the final output of the ANN.
Say for instance I was building a XOR with two input node, 3 nodes in one hidden layer and one node in the ou... |
Is there a way to use LASSO for dimension reduction by choosing only relevant attributes? Is there a defined procedure for doing it optimally? Is there a example dataset that can be used for it?
|
I am reading the book "Time series analysis by state space methods" by J.Durbin and S.J. Koopman (second edition). On page 17, the book says, for local level models, the probability of one-step prediction error (of Kalman filter) $v_t$ at time $t$ is equal to the probability of observation $y_t$ at time $t$ conditioned... |
I'm trying to understand how to perform meta-regression treating each
arm of studies in my data as an individual study with a single
proportion as the outcome. I have read through the documentation for
the R package metafor, but have only found the option to estimate
using relative risk, odds ratio or other si... |
Can someone give me a counter example of when we should not use standardization on variables? I understand what standardization is but i am not getting the point why we need to standardize variables? I seached for many sites but can't find an answer, On many sites i found that we should use it when variables are measur... |
The Scikit-Learn package in Python has two metrics: f1_score and fbeta_score. Each of these has a 'weighted' option, where the classwise F1-scores are multiplied by the "support", i.e. the number of examples in that class.
Is there any existing literature on this metric (papers, publications, etc.)? I can't seem to fi... |
I have some indipendent variables stationary at level, some stationary in first difference and one stationary in log first difference. Is it possible to run a regression with variables with different transformation? My dependent variable is stationary both in first difference and log first difference. Thank you very mu... |
we perform a two-tailed two sample t test in each dataset and obtained P values. then we use weighted stouffer's Z score method to transform each Pi to Zi (Zi=Φ−1(1−pi/2)) and the combining Z .
Now, I don't know how to transform the combining Z score to stouffer's adjusted P value, whether P'=2Φ(Z) or P'=Φ(Z) ?
|
I am reading Section $2.4$ of The Elements of Statistical Learning (page $18$). The authors are looking for a function $f$ for predicting output variable $Y$ given values of the input $X$. Starting from the squared error loss, they derive the regression function
$$ f(x) = E(Y|X=x) $$
as a solution to an optimization pr... |
I have trained two different models (an ANN and an SVR) on the same training set, using K-fold CV.
I would like to know if I have to evaluate their performance exactly on the same test set.
|
$\sigma(x)$ is the sigmoid function, that is, $\sigma(x)=\frac{1}{1+e^{-x}}$. And $x$ is from a Normal distribution of 0 mean and 1 variance. Now I'd like to calculate the expectation of the derivative value of the sigmoid function, i.e,
$\int_{-\infty}^{\infty}\sigma(x)(1-\sigma(x))\mathcal{N}(x|0,1)dx$
Thanks in adva... |
I am working with firm-level panel dataset spanning multiple industries. I normalized the independent variables (e.g. inventory) by firm size (measured using firm assets) in order to control for firm size. My dependent variables (DV) are Sales and Profit. Do I need to normalize DVs as well just because I normalized my ... |
I know that from Hastie et. al's paper, that in the single response $y$ LASSO, the $\lambda$ values are chosen such that:
$N\alpha\lambda_{max} = \max_l |< x_l, y_l > |$
Also, $y$ is by default standardised before forming the grid of $\lambda$ values on log-scale. Then, the grid is de-standardized by multiplying back b... |
Lets say that i have linear regression $Y= a +XB$, and in my $X$ matrix i have a dummy for the gender, lets call it $d_{g}$ which is 1 for male and 0 for female. The coefficient $b$ of $d_{g}$ shows the effect of being male relative to the effect for being female. How can i get the effect of being female ? Or the effec... |
I am getting some very weird results. I have created a density plot for various continuous response variables, which are independent of each other.
I have noticed that the Density value seems to be very small. I know the height is meaningless and what needs to be interpreted is the area under the curve. Therefore I ha... |
I'm calculating Pearson's r for a set of dichotomous values.
For one item in my data set, all values are identical. Since the variance in y will be 0, I will ultimately end up with a division by 0.
I guess I have two questions:
Is it fair to say that the correlation coefficient is 0, or is it more valid to say that i... |
I was reading a research paper in a reputable journal. They mention the following:
The balance sheet ratios are demeaned within quarter and normalized within quarter by dividing them by one standard deviation.
First of all, why would someone do that?
Second, if i want to replicate the output this standard deviation is ... |
So say the predictor variable is coded 1,2,3,4 for 4 different cities. Is this bad? I've heard that it only makes sense for things that have a natural ordering. Like number of stars for a movie or something. But in R, if you do factor(city), it basically splits it up into 3 different dummy variables. So why does the di... |
I've analyzed effects of temperature and sample thickness on drying process via response surface methodology. I've faced to four high leverage points (my four axial runs) that stick together on normal probability plot. these points aren't the outlier (on residual versus run plot).
|
I am performing a meta analysis on longitudinal cohort studies reporting outcomes in cognitive performance as a function of adherence to a nutritional variable. Most of them provide "standardized means differences" or "standardized beta regression coefficients" which I can easily convert to a correlation coefficient.
... |
I have a problem with my co-author, we do not agree on the inerpretation of the regression coeffcients. In our regression (part of a more complicated model, which does not matter here) we defined the dependent variable as log difference, that is, ln(Gt) - ln(Gt-1), where G are local investment. The most relevant indepe... |
In a binary classification problem, in the training data set, how many rare events should i have. I know that is difficult to say e.g. 100 but at least what factors should i take into accoun to determine the number of rare events?
|
Square of number < 1.0 makes that number smaller. So the gradient became smaller and learning very slow. So for me, it looks naturally to use L2 loss when the difference between target and output is more than one and use L1 when it is < 1.0. The same is true for example for Mean Relative Squared Error there we don't ne... |
I have two groups as control and study. I measured blood stem cell levels in each groups. I compared the levels with t-test between two groups and found statistical significance between two groups. However, i got a critique by a reviewer that age and sex may be a confounding factor effecting stem cell levels. So, how c... |
Does anyone know why when I perform a lmer analysis (here using the builtin sleepstudy dataset) the estimated variance matrix of the random effects from VarCorr are so different from the variance of the estimated random effects (by applying cov to the ranef that extracts random effect)
thanks
(fm1 <- lmer(Reaction ~ Da... |
I am trying to get a grasp on what is the purpose of the loss function and I can't quite understand it.
So, as far as I understand loss function is for introducing some kind of metric that we can measure the "cost" of an incorrect decision with.
So let's say I have a dataset of 30 objects, I divided them to training / ... |
My project is to set a distribution loss of PNL in CHF into a distribution loss in USD. To do this I will need to have a distribution loss of the spot rate CHF/USD. I have simulated this distribution.
So have 2 distributions:
A: One is the simulated spot rate of USD/CHF
B: The other is the loss distribution of the PNL... |
In R, I have a sample of 348 measures, and want to know if I can assume it is normally distributed for future tests.
Essentially following another Stack answer, I am looking at the density plot and the QQ plot with:
plot(density(Clinical$cancer_age))
qqnorm(Clinical$cancer_age);qqline(Clinical$cancer_age, col = 2)
... |
Currently I'm trying to analyze data using a mixed model in R.
The data is structured as follows: There are 2 conditions, A and B. For each condition, there are 3 treatments, 1-3. These treatments were done in triplicate, i.e. there are 3 samples per treatment per condition. For each sample, the percentual abundance o... |
I am currently doing a study on bankruptcies in Europe. I am using the Cox proportional hazards model (time-constant version) in R (coxph).
I have analyzed covariates such as GDP growth, return on assets, etc., in order to determine which covariates are statistically significant (p < 0.05).
Now I want to combine cova... |
I'm looking at a question for association rule mining and this comes up:
What is the confidence for $\emptyset \implies A $?
What is the confidence for $ A \implies \emptyset $?
Given:
$$\newcommand{\Conf}{{\rm Conf}}\newcommand{\Support}{{\rm Support}}\Conf(A \implies B) = \frac {\Support(A \cup B)} {\Support(A)}$$... |
I have a categorical variable (e.g., office locations) with about 500 values. The frequency of the values follow a power-law distribution (if you sort the categorical values by frequency descendingly), where a few values have the highest frequencies, and the other ones fall off in frequency (long-tail, to the right).
... |
I'm currently analyzing some microarray data (gene expression) and I'm running the kNN classification algorithm on them.
Data consisted from 920 different genes and 8 different observations (with 5 replications each).
At the beginning I just ran the kNN algorithm on the training data and then in order to improve the re... |
193 participants in 19 groups of varying sizes tasted 6 wines. Each participant then distributed 6 points among the wines in any way she or he liked, e.g., $(0,0,6,0,0,0)$ or $(1,1,1,1,1,1)$ or $(0,3,0,2,0,1)$.
Point totals in groups a-s for wines A-F are as follows (N denotes each group's size):
N A B C D E F... |
I got stuck in my econometrics problem, any idea/thought/help is highly appreciated.
I have 2 data sources, GVAR (noted with "Smith") and Macrobond. Both data cover almost the same time framework. If you have a look at the picture, you will see that graphs of the same variable from these two sources are almost identica... |
I found that, in examining the gender wage gap, there are cases where direct regression shows that men earn more than women with the same educational level (or qualification measured whatsoever) but men are more educated (or qualified) than women earning the same wage. Formally, if: $Y$ is wage, $E$ education and $G$ a... |
I am analysing data using a GLM. In some GLM-s data is binary while in others the response variable is count data. I want to know if it is necessary to use an ANOVA after constructing the GLM model. Or is it enough to report the p-values of the GLM-s?
|
I have a dataset which I split as 80% training and %20 validation sets. (38140 images for training, 9520 for validation) Model that I train is a deeper (~45 layers) convolutional neural network.
I got the below results in the first epochs of training:
Epoch 1: train loss: 1041.52 - validation loss: 1045.89
Epoch 2: tr... |
I have 5 independent variables and 1 dependent variables and I run up some codes in r and what I found was it didn't have any multi-colinearity but did have some heteroscedascity and auto-correlation as mentioned above. Is there any way I could correct these two simultaneously? The data are oil price analysis based on ... |
I have a situation where I have two sets of apples. I want to show that one batch has more problems than the other. How could I go about doing it?
The problems are things like: "Mold", "Worms", "Rotten"
So far I looked at each apple and gave it a score where each instance of a problem counted as "1". So if an apple... |
I want to test with a full model testing significant interactions with the main predictor 'Nadd' for my log transformed response ratio ('MSA'):
MSA ~ (MAT + MAP + MST + Ndep + Duration + Fert)*Nadd + (1|Experiment)
There is a wrapper function in 'glmulti' that allow to filter out undesired interactions from the full m... |
I am working on a problem where I need to reliably measure the nth percentile of a non-parametric distribution without having to use all the data. Ideally, I was wondering if it is possible to do this like the case with a parametric distribution like Gaussian, where all you need for Gaussian is the mean and variance?
|
I have a binary outcome fit by a logistic model with a continuous independent variable that is logged to ensure a linear rather than exponential relationship to the dependent variable. I have included the second order term as it appears the fit is improved overall. The resulting formula is:
fit <- glm(y ~ poly(log(x),2... |
I have a problem with the Difference-In-Differences' control group.
In particular I have data from 2001 to 2015 and the problem rises because the timings of the treatment period can start from 2006 (till 2015) but is different for the different treatment group's elements. In this case the dummy variable that represent ... |
I know this question has been asked a billion times, so, after looking online, I am fully convinced that correlation between 2 variables does not imply causation. In one of my stats lectures today, we had a guest lecture from a physicist, on the importance of statistical methods in physics. He said an astounding statem... |
Consider a piecewise linear function with $M$ knots:
$Y_i = \beta_1 + \beta_2x_i + \beta_{21}(x_i-\kappa_1)_+ + \beta_{22}(x_i - \kappa_2)_+ + ... + \beta_{2M}(x_i-\kappa_M)_+ + e_i$ where $(x_i-\kappa_m)_+ = (x_i-\kappa_m)$ if $(x_i-\kappa_m) > 0$ and equal to zero otherwise.
For a penalized spline, the regression p... |
It is common in Deep Learning to use SGD (with mini batches). However it is also common that the data sets are too large to compute the full current accuracy of the model using the whole data set as it trains. Thus, it seems that one alternative is to instead use fractions of the data set to asses how the training is g... |
When I use Baron & Kenny's approach to test mediation, I receive the following results (IV: independent variable, M: mediator, DV: dependent variable):
DV ~ IV : IV is significant
M ~ IV : IV is significant
DV ~ IV + M : M is significant, but IV not
Now, the curious thing is that these data are based on an experiment ... |
Consider a high-dimensional linear decision problem with points $\bf x_i \in \mathbb{R}^N$ and corresponding binary labels ${\bf b}_i \in \left\{0,1\right\}$. Assume there is an optimal decision boundary $\bf d$ and bias $\bf b$ such that the decision rule ${\bf d}^\top {\bf x}_i > 0$ perfectly predicts the class label... |
Let's say you have some Real-valued features $\mathbf{X}$ and Real-valued univariate responses $\mathbf{y}$. We want to fit a regression model to this data:
$$\mathbf{y} = f\left(\mathbf{X};\beta\right) + \mathbf{\varepsilon}$$
Where fitting is done by minimizing some loss function $L(f(x;\beta),y)$:
$$\hat{\beta} = \m... |
I have data like the following image, where the x-axis is the absolute elapsed time in hours (think calendar days; this plot goes over ~2.5 years), and the y-axis is the manually entered uptime of a machine in hours.
For my data processing, I need a very robust way of smoothing the data. The image below shows a black, ... |
I have a question which I can't find an answer online. When we ask a software (SAS, R,...) to calculate the LSMeans from a linear model, like regression, what is the procedure? Does the model find predicted values and simply calculates the mean, or is it slightly different?
|
I have two vectors that look like this:
I would like to make a significance test on the paired differences between the two vectors, as well as measure association.
The process of data generation is "known" to generate log-normal data, when randomly sampled. In this particular experiment:
samples are not random, there... |
I have 4 different data sets with samples of time-series measurements of different actions. The duration (# data points) of each measurement in the different sets is:
Set # 1 = 40000 data points
Set # 2 = 8000 data points
Set # 3 = 5000 data points
Set # 4 = 40000 data points
My plan was to have a window size of 1... |
I'm using the standard kernel: $K(x_1, x_2) = \exp(-\frac{1}{2} (\frac{(x_1-x_2)}{l})^2)$, with $l=1.0$.
I picked some arbitrary function, and then picked 15 points from which to learn from. Here's the graph I get when I plot those points, the real underlying function, and the learned conditional distributions confiden... |
When I use simulation to determine a p-value I am aware that the exactness of my p-value will be at most an estimate because I am using the scores of my sample and not my population, so that my computed p is on average close to its true p-value.
How do I deduce whether my estimate is a good estimate or a not-so-good e... |
After 15 years post uni formally not using stats I find myself covering for someone at work for the next 6 months and it is rather stats heavy. The memory is very hazy but the mind is willing.
I have to test how effective a training technique has been in my unit to see if it will be rolled out across the organisation.... |
I am dealing with a time-series consisting of 20-second observations over a 24-hour period (4320 observations). I'm wondering if it is sensible to characterize significant shocks (such as an important news event) as structural changes, even if it only applies to a single day data. Or are structural changes strictly mac... |
I notice that after normalizing a variable by firm size (to control for firm size), the variance of that variable goes up. I was expecting the variance to go down in fact. Does this mean that I should not normalize by firm size?
|
There are a lot of people in this site that say that you should never delete covariates from your model just because they're insignificant.
That seems quite silly to me. Just because your variable is insignificant (in the sense that the $p$-value is high), doesn't mean that it won't affect your model predictions. That ... |
Suppose $X$ is normal with mean $\theta$, and variance equal to 1. What is the distribution of $X^2$?
|
I feel like this is an extremely basic question, but have not been able to dig up an answer.
We're enumerating migrating fish, and there are some counting periods (hours) in which we were not able to count during the full period. In these cases, we've estimated the total passage according to the form $$\hat{m}=\frac... |
In my machine learning textbook, the most common way after applying a ML algorithm to a training set and test set is to compute the mean square error between your predictions and the response variable in the test set (in the case of regression). I was wondering, as an alternative, can one measure the correlation (or so... |
I was wondering if there is a way to estimate parameters of Johnson SU distributions parameters with some univariate data.
|
I am running a cost sensitive ensemble methods (for the first time to access algorithms of this type) 'CostSensitiveRandomPatchesClassifier' in Python on my imbalanced dataset (positive cases are rare and counted for 0.5% of the total).
What I found are:
I set the cost matrix element in the order: [Cost_FP,Cost_FN,Cos... |
I was asked in an interview to solve a use case with the help of machine learning. I have to use a Machine Learning algorithm to identify fraud from transactions. My training dataset has lets say 100,200 transactions, out of which 100,000 are legal transactions and 200 are fraud.
I cannot use the dataset as a whole to ... |
I'm working through the Coursera course Bayesian Statistics: From Concept to Data Analysis by the University of California, Santa Cruz and there is a worksheet that requires me to use R or Excel to find the answer to this:
Let $Y ∼ Gamma(2, 1/3)$. Find $P(0.5 < Y < 1.5)$. The answer is given as 0.078.
I would like to ... |
The standard error of a proportion will be the largest it can be for a given $N$ when the proportion in question is $p=0.5$, and gets smaller the further the proportion is from $0.5$. I can see why this is so when I look at the equation for the standard error of a proportion, but I can't explain this any further.
Is th... |
I was conducting a meta-analysis of single proportions(i.e. without a control group) and was trying to perform a meta-regression on a moderator in my data set (lable:modb) using two different R packages (meta and metafor) in order to see if they could give me the same results. I used three transformation methods before... |
Suppose I have the following dataset:
import numpy as np
a = np.array([ 0.00854492, 0.00622559, 0.01733398, 0.04077148, 0.03027344,
0.04418945, 0.07006836, 0.04626465, -0.00158691, 0.04345703,
0.06213379, 0.0300293 , 0.05517578, 0.02636719, 0.05688477])
a.mean()
0.035742187999999994
a.std()... |
What does t state for in this equation ht=tanh(Whhht−1+Wxhxt)? I found it in this article about recurrent neural networks:
http://karpathy.github.io/2015/05/21/rnn-effectiveness/
Another example is this photo
There is t, t-1 and t+1
|
This is the first time I am designing an A/B experiment and I have read up all I could but still not completely clear on making a decision. It would be really great if the pros here could provide some guidance on the below setup or point me in the right direction
We are building a new capability that will enhance the p... |
Let's say I have a Bayesian model with a proper prior $\pi$, likelihood $L$, data distribution $p(x|\theta)$ (assume $\theta$ is a scalar) and the vector of sample values $x$:
$$p(\theta|x) = \frac{\pi(\theta)L(\theta|x)}{p(x)}$$
If I took my model seriously as a hierarchical description of the data generating process,... |
I'm using the Cross-Entropy Method (CEM) [1] [2] to train a neural network (NN) for use in reinforcement learning.
I get poor performance when my elite sample size gets larger than a couple samples, even if I increase the total number of samples as to keep the elite proportion low. I'm wondering if the problem is that... |
After looking at This question: Trying to Emulate Linear Regression using Keras, I've tried to roll my own example, just for study purposes and to develop my intuition.
I downloaded a simple dataset and used one column to predict another one. The data look like this:
Now I just created a simple keras model with a sing... |
Maybe you find my question a bit simple but I'm really confused as I'm not statistician.
I have 2 SNPs (can be proposed 2 genes instead) that are related to a primary disease (like major depression), by simple cross sectional case-control design.
already it is clarified there is a significant correlation between these ... |
I generated a csv file with 167 attributes and around 5000 entries. One is a nominal attribute, two are dates and the rest is numerical.
I can import the file into the weka explorer without problems. But all clustering methods and most attribute selectors are greyed out. This still happens if I delete around 50 of my a... |
I am not well versed with statics. Basically an engineer, and use statistic algorithms to solve problem.Currently I am involved in time series analysis,, using R, and for this using forecast package.
So I am trying to understand the way Arimax(auto.arima) works. I was mainly trying to understand the forecast part. So... |
we know that t-test consider the arithmetic mean only. How could I compare the geometric means of two different groups or several groups?
|
I'm dealing with a low event rate problem (e.g. credit card fraud).
I've balanced my data with SMOTE, and ran a neural net model (cross validated with recall as the measure).
However my precision (as can be expected) is very low.
I want to use the positive predictions (TP + FP) from my model as an input to another mo... |
I want to do a double- blind sham controlled clinical trial of a laser therapy for a skin disease. As the primary endpoint is change in inflammation between pre and post treatment/sham biopsies I expect the sham arm to have very little to no effect. I expect that the treatment will have moderate-high improvement- lets ... |
I have a toy example of modeling sinus function using simple FC layer NN. My input data is just 150 data points uniformly randomized in range from 0 to 10.
I started from fiting NN using tanh activation with following architecture:
model = Sequential([
Dense(10, input_shape=(1,), activation='tanh'),
Dense(1),... |
My colleagues and I have been using Google's R-package CausalImpact for a while but recently discovered something that we can't quite explain. Depending on the order of including the different control time series into the variable "data" CausalImpact generates different outputs.
Example:
Using a slightly different vers... |
Let the task be classification and the neural network under discussion to have Sigmoid activation functions and be trained by Backpropagation and SGD. How can I force the networks hidden activations to be normally distributed for each class while using gradient descent?
The idea is to simplify statistical analysis with... |
Imagine you have a time series dataset, e.g. price returns of a set of stocks over time. You want to predict the price returns of a stock, given only non-price data of the stock for that date (so, for example, recent changes in price or previous price levels would not be in your feature set, but various fundamental par... |
Text of the problem I have to solve..
State the generic case of a Bayesian treatment of the parameters $\theta$ used to model the data, i.e., $p( \theta | X, Y)$.
Derive the estimate of the mean, assuming that the model of the output variable is a Gaussian distribution with a fixed variance.
Which are the advanta... |
As far as I'm aware, there exists two attempts at inputting the structure of tree-like data into the structure of an LSTM.
In "Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networks" a Tree LSTM is used to parse syntax trees for text classification.
In "Spatio-Temporal LSTM with Trust ... |
I need to estimate the survival function using Kaplan-Meier method. I am considering the duration of 60 days. In the beginning (Day 1), lets say there are some 400 individuals. My question is: 'after my study has started, can I add more people into the study on day 20th. Does KM method allow this? Will my survival prob... |
I have 500 observations and 200 predictors, and I want to do the prediction while selecting some important features. I know that regularisation method (ridge, lasso) are shrinkage method for high-dimensional setting, and the lasso also has an advantage of model selection. It is the fact that the setting with 500 observ... |
While the results of the private test set can not be used to refine the model further, isn't model selection out of a huge number of models being performed based on the private test set results? Would you not, through that process alone, end up overfitting to the private test set?
According to "Pseudo-Mathematics and F... |
Modern neural networks use cross entropy as a loss function, because of shortcomings of MSE. So, why is MSE still being used in SVM (and maybe other learners) and not replaced by cross entropy?
|
My textbook has the following example problem:
The production manager of bullets claims less than 5% misfire. You
have strong doubts about this claim. You decide to collect 1000
bullets and test how many misfire. Test whether the manager is correct
at the $\alpha = 0.05$ level of significance.
The solution for ... |
This is with reference to the CamVid dataset and one of its tutorial here:
http://mi.eng.cam.ac.uk/projects/segnet/tutorial.html
I'm quite confused by how the model is supposed to be trained on 11 classes, when there are 12 classes in the ground truth segmentation, which includes the void class of 0. How is the network... |
My question is more statistical problem, so I am posting it here. I am writing a function in R to calculate partial correlations and store results in an empty vector. This is a simple version of my code:
library(ppcor)
primary_data = floor(runif(50, min=0, max=101))
my_data1 = data.frame(
A=floor(runif(50, min=0, m... |
I have a data series that looks like this:
Index Date Week Y X1 X2
1 1/1/1999 1 1 0.17 0.70
2 1/8/1999 2 2 0.14 0.32
3 1/15/1999 3 3 0.88 0.93
4 1/22/1999 4 4 0.33 0.49
5 1/29/1999 5 5 0.81 0.04
6 1/1/2000 1 6 0.35... |
I have a model defined in state-space form as:
$y_t=F_t α_t+Γ_t w_t+ε_t$
$α_t=Gα_{t-1}+Rη_t$
$ε_t∼(0,H_t ) ,η_t∼(0,Q)$ - measurements of vector and transition shocks
Where y_t is a multivariate vector of length m = 4, and α_t is p=1 dimensional (I think). Furthermore, m contains 2 stock variables and 2 flow variable... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.