instruction stringlengths 9 38.7k |
|---|
my git-hub file, demonstrating the problem
I am trying to run a binomial regression on a dataset of groups that have taken a pass/fail test. I am working in Python, with statsmodels. My dependent variable is a 2x array of the number of successes and failures for each group. There are eight features, all of which are... |
I am trying to make a classifier that effectively distinguishes between control group and patient group, and then I want to use that classifier to distinguish high-risk patients who convert to patient group versus high-risk patients that do not (highrisk-c vs highrisk-nc).
Thus, I have a control-patient dataset as the ... |
I am new with MatLab and NN. I used the Neural Network Time Series Tool (https://nl.mathworks.com/help/nnet/gs/neural-network-time-series-prediction-and-modeling.html) in order to a make prediction and at the end it offers the possibility to test the NN against new data (for example the actual observations to predict).... |
I created land-use rasters for the city of Montreal for 2012, 2014, and 2016; all of which I converted from vectors to rasters in QGIS. I want to create a logit model to predict land-use changes. I was suggested to split up the data into a series of reclassified rasters with values 1 and 0 ... 1 representing a specific... |
Let's assume we have two linear regression models $m_1$ and $m_2$, where $m_2$ is nested in $m_1$, and two data sets $d_1$ and $d_2$ which are of different size.
Calculating the AIC for each pair shows that the following equation is true:
$$ AIC_{m_2,d_1} - AIC_{m_1,d_1} > AIC_{m_2,d_2} - AIC_{m_1,d_2} $$
Can we concl... |
I've ~150,000 genomic position that seems to be clustered in specific genomic regions (hotspot). However these "hotspots" may have different sizes (from very small ~ 10,000bp to very large ~500,000bp - bp = base pair). Could someone give me some advice to detect such peaks ? My idea was to use a small window-based appr... |
I have 20 predictor variables and 1 response variable.
The predictor variables are non-stationary and hence I differenced them to get a stationary series for 20 predictors.
When I check the correlations between 20 predictors and 1 response (all stationary) the correlations are less than 0.01.
Does that mean I cannot ... |
A bunch of N particles are moving in a 2D plane. We are able to get their positions, speeds, and directions of moving at any given time.
Another bunch of M particles, somewhere 'beside' the N particles, also have their positions, speeds, and directions recorded.
If the first N particles move, the M particles somewhat... |
I have designed an experiment to find out the best width of a smartphone keyboard in terms of typing accuracy (# of mistyped letters / total # of letters typed).
Two factors were chosen for my DOE:
Factor A: People participating the experiment (4 people; small to large thumb size)
Factor B: Area of a smartphone keyb... |
Is there a recommended way to illustrate a heavily skewed distribution using a boxplot? For example, my boxplot looks like so:
It's very difficult to know what the median value is for the green boxplot. If I specify the range using ylim(0, 1), as far as I can tell ggplot2 removes points outside of the range in the bo... |
I am confused while trying to find a general expression for the mean and variance of a stationary VAR model. I am trying to do it for VAR(1). I also can't find it in the literature. Can anyone help me?
|
In CS229, Prof.Andrew Ng says( but doesn't prove ) the relation between Gaussian Discriminant Analysis and Logistic Regression (hypothesis function is sigmoid in both models). Is this (similarity of hypothesis function) because of y being distributed Bernoulli?
|
More specifically, I would like to know the main advantages and disadvantages in using one or the other method please and in which situation I should use them. Thanks!
|
I'am analyzing an artcle , it said that split plot anova was conducted to asses the impact of two different interventions on student scores on achievement test, across two time period (pre intervention, post intervention)
Please help me to interpret the tabel result
|
I wonder if anyone would like to give me some guidance (I am a beginner in R). My data comes from a forest, where they performed a conservation fire. We measured the volume of trees before the fire (2007) and after (2013 and 2016) in eight plots. I want to analyze if there is any difference in tree volume between the y... |
I have a stack of $n$ distinct cards. I randomly draw $N$ cards from the stack with replacement. Assume that $N \ge n$.
What is the probability that I observe all cards at least once?
I got this far:
The probability that the multiplicities of the states in the sample are $m_1, \dots, m_n$ is:
$$\frac{1}{n^{N}}\frac{N!}... |
I have some proportion data looking like this:
This data is bounded between 0 and 1, with most values being either 0 or 1.
I would like to find an appropriate distribution to model this data.
I thought i would use a beta distribution (with parameters below 1 to get the right shape), but it is not defined at 0 and 1 w... |
Say that $Y$ is a continuous random variable, and $X$ is a discrete one.
$$
\Pr(X=x|Y=y) = \frac{\Pr(X=x)\Pr(Y=y|X=x)}{\Pr(Y=y)}
$$
As we know, $\Pr(Y=y) = 0$ because $Y$ is a continuous random variable. And based on this, I am tempted to conclude that the probability $\Pr(X=x|Y=y)$ is undefined.
However, Wikipedia cla... |
Question: Can the correlation coefficient (r or r²) or the covariance (Cov(X,Y)) be somehow translated into a probability distribution for the dependent variable?
Example: If r²=0.8 for two random variables X and Y in a data set, in which X is the independent variable and Y is the dependent variable, how can I obtain t... |
I have data of around 100 companies/ 500 observations for 5 years. however, some of the companies in the data have unavailable observations for the whole 5 years. Some companies have only 3, 4 or 2 years. Is it ok to delete companies with no available data for two years and more? if yes, is there any reference that can... |
I have a question about how to estimate the uncertainty of a value calculated from a non linear model. My non-linear model is the following:
$$
y=A+\frac{B}{1+e^{k(x-x_0)}+e^{c(x-x_1)}}
$$
where $ A, B, k, c, x_0, x_1$ are fitting parameters that I find using a Levenberg–Marquardt algorithm (non linear least square fit... |
I've been working on understanding how R calculates the standard error it reports in the summary() of a regression generated using lm() like:
x <- c(1:20)
y1 <- 3 * x + rnorm(length(x), sd = 0.5)
r1 <- lm(y1 ~ x)
s1 <- summary(r1)
s1$coefficients
and came across the s1$cov.unscaled matrix, which is calculated from th... |
I'm an experienced data analyst who is unfortunately ignorant about statistical techniques and clustering. I'm looking for help in identifying the best technique to solve the problem below.
A cross tabulation sample of my data is pasted below: in short I have 6,500 survey plots with tree species records (% polygon cove... |
The Gompertz distribution has a mean that's difficult to calculate, a variance that is very difficult to calculate (has a hypergeometric function in it), and a skewness that I can't find anyone even talking about trying to calculate. So I can't use the berry-esseen theorem to quantify the error of the CLT approximation... |
I have a dataset and I intend to use multiple linear regression analysis with excel since the dataset isn't that massive in volume, just about 500 rows. I have continuous numerical data and I already checked the scatterplots for linearity. Here are my questions:
I applied the model I came up with to the dataset to com... |
The data is from real time digital marketing campaigns. We setup two paths A and B at the impression level. When a user sees an add, it is counted as an impression.
Now we had 1 lac impression at both the paths. However finally 29 players got converted. The data for the same is below:
Path A Revenue Data:
5084, 200, 54... |
Is there a way to find out which percentiles are being bounded by the interval? Say I calculate a 2-sided tolerance interval for 95% of the population with 95% confidence interval. How do I find out whether this interval is using 0-95%, 1-96%, 2-97%, and so on percentiles?
The end game is that I want to calculate a (so... |
I want to calculate a bootstrap confidence interval for a mean difference between two groups. Apparently, there are two ways to do it, depending on whether the null hypothesis of a zero difference between the groups is accepted or not.
Here are my approaches:
If the null hypothesis is assumed to be true, the bootstrap ... |
I'm thinking of cases where generalisation can be improved if the parameter space was discretised instead of continuous during the fitting stage. It is easy to think of contrived examples where this is true (see the below example), but I'm wondering if there's been any research into the theory behind this and the pract... |
I have a dataset with a non-binary target class $c$. I want to compute the AUC of my classifier and can do this easily using the one-vs-rest approach. I train $\binom{n}{2}$ classifiers where n is the number of different values that $c$ can take and compute the AUC for each of those classifiers then just take the mean ... |
I want to quantify correlation between rankings. Rankings in this case have got ties. Also rankings don't rank all the same entries, the rankings might be of different sizes and rank different sets, of course, with non-empty intersection (there are elements that are ranked on both rankings).
I have read through wikiped... |
I would like to make a simple estimate of regional GDP. Predicted values of GDP on country level are available, so I was thinking about using these values and create a simple model. Simple linear regression would assume that the reliationship between regional and national GDP will be the same all the time. So I tried E... |
**1) i would like to do diagnostics test on the standardized residuals but i'm not sure how to use them, neither how to get them for example in R:
2 ) After the fitting i would like also to compare my garch-models using the AIC and BIC criterion, how can i do that ?
I'm using R and i'm stuck with these doubts; i also... |
I got urinary concentrations from numerous rats with up to four repeated measurements per rat.
I want to compute the intraclass correlation (ICC) in order to assess the high or Low reproductibility of rat urination concentration over time.
I decided to compute ICC (1,1) following Shrout and Fleiss (1979; "Intraclass Co... |
So I'm doing a research for this company for my thesis and I was told I should use ANOVA for this.
I have 5 dependent variables and 3 independent variables. These variables are from the same company with 3 branches. To better visualize this, here is my Operational Framework.
Basically, I want to know the effects of th... |
Suppose I have two random processes $X_t$ and $Y_t$, which are both $I(1)$ in levels and logs, ie, $\text{log}(X_t), \text{log}(Y_t)$ are $I(1)$ as well.
Suppose the variables are not cointegrated in levels but they are in logs, ie there does not exist $\mathbf{\beta} \in \mathbb{R}$ such that $X_t - \beta Y_t$ is an $... |
I have been researching how to do a repeated measures ANOVA in R for a few days, and the problem is there are so many different ways of doing it, that I do not know what the correct or best method is.
The data I want to analyze has one dependent variable (Prosomal Width), and one independent variable (Location) that co... |
(NB: I don't have a very strong background in statistics, so I would not be surprised if this question is naive or the answer is apparent from some rather basic principle.)
I'm wondering how I might analyze the following situation using principles of statistics:
A Manufacturing Process
Consider a manufacturing process ... |
We have 9 cages of mice, 5 (genetically identical, age- and sex-matched) mice per cage. They receive 3 treatments, so 3 cages per treatment. Among the ways to evaluate treatments is to monitor weight change (i.e. repeatedly weigh the individual animals). However, individual mice are not marked in the cages, so we don't... |
I am trying to do a regression analysis in which one of the predictors is a categorical variable that has three categories, say, A, B and C. These categories CANNOT be put in a specific order as e.g. A > B > C. But instead they just fall into different categories, as e.g. race = hispanic, race = asian or race = white e... |
This is a follow up question to my previous question
Let $A,B,C$ be independent normally distribution variables $\mathcal{N}(0,\sigma^2)$ with unknown variance $\sigma^2$. Let $D = A + B + C$.
Given $n$ samples of $A$ and $D$ suggest an estimator $\hat{\sigma}_D^2$ the variance of $D$. Obviously a simple approach is to... |
Take the model $y=\beta X + \rho Wy +\epsilon$
where X contains the dependent variables and W is the weighting matrix. We have that:
$y = (I-\rho W)^{-1}I\beta X = aX$
We can compute the average indirect effect as the average total effect minus the average direct effect.
The average direct effect would be the average o... |
I have some simple model with 2 independent input variables A,B . I want to calculate some probability.
$$
P(X|a,b) = P(a,b|X) P(X) / P(a,b) \\
P(X|a,b) = P(a|X) P(b|X) * P(X) / ( P(a) * P(b) ) \\
... \\\
P(X|a,b) = P(X|a) P(X|b) / P(X)
$$
all probabilities from the right side can be estimated ,... |
My question is: Is there a set of data which allow the median to be larger than the mode, the mode to be larger than the mean and the mean to be larger than the range? If so, is there a pattern, or a specific characteristic of a dataset to allow this situation (skewness of some kind maybe...)?
P.S I have corrected my t... |
I have a dataset where each data point is characterized by two variables: X(time) and Y(volts).
When I plot my data it would be something like this:
The plot shows some data points created a cluster (I demonstrated those with the red boundary). The other data points are noise points which are not important for me. I ... |
I have a webpage with a "purchase" button. Users must be logged in to see the page. I would like to A/B test two versions of the button. Each user will consistently see one version of the button for the duration of the experiment. That is, the unit of diversion is the user.
Should I measure the click-through probabili... |
Suppose I cluster a set of records. I now wish to know which records in the set would maximise the disruption to the clusters if they were removed and the data reclustered.
I also require the same with decision trees. If I build a decision tree from a set of records, how can I establish the records to leave out to maxi... |
From some machine learning notes talking about some discriminative classification methods, in particular logistic regression, where y is the class label (0 or 1) and x is the data, it is said that:
if $x|y = 0 \sim \mathrm{Poisson}(λ_0)$, and $x|y = 1 \sim \mathrm{Poisson}(λ_1)$, then $p(y|x)$ will be logistic.
Why i... |
I'm attempting the final problem in Chapter 2 of Michael Nielsen's Neural Networks and Deep Learning book. The network in question is a simple 3-layer feedforward neural network with sigmoid activation functions for the neurons in the hidden and output layers.
When calculating the gradient, it appears I need to manage ... |
I conducted an experiment with 80 subjects, each of them performing 50 trials. I measured the time (in seconds) needed to accomplish each trial.
Trial-after-trial, every subject has the tendency to get faster in accomplishing his task. I can clearly see that there is a kind of "learning effect". By watching at some plo... |
I have two time series
S = s[1], s[2], s[3],..., s[t-1], s[t]
R = r[1], r[2], r[3],..., r[t-1], r[t]
Such that:
r[t] = p[t,1]*s[1] + p[t,2]*s[2] + p[t,3]*s[3] ... + p[t,t-1]*s[t-1]
r[t-1] = p[t-1,1]*s[1] + p[t-1,2]*s[2] + p[t-1,3]*s[3] ... + p[t-1,t-2]*s[t-2]
etc...
Where p[i,j] are unknown percentages.
My goal ... |
I have to calculate the inter-agreement rate using cohen's kappa. However, I only know how to do it with two observers and two categories of my variable.
My task now is this:
I have a set of tweets. Each tweet should be rated as positive/negative/neutral by two observers, thus I have two observers yet 3 categories.
Ho... |
In some places they speak of "factorial models". For instance: Symbolic Description of Factorial Models for Analysis of Variance.
My question is what is a factorial model? Is it just a model where the explanatory variables are categorical variables?
|
I have some 2d points data and I generated a convex hull mesh. Looking by eye, it seems that the points are not uniformly distributed inside the convex. I wonder what is the best way to characterize this asymmetry? An example is like this:
data:
{{1.70411, -0.82218}, {1.47802, 0.85122}, {3.19453, 2.18674}, {0.583261, -... |
I'm trying to understand precision recall curve, I understand what precision and recall are but the thing I don't understand is the "baseline" value. I was reading this link
https://classeval.wordpress.com/introduction/introduction-to-the-precision-recall-plot/
and I don't understand the baseline part as shown in "A P... |
I understand that random forest regression has a numeric response variable, and random forest classification has a categorical response variable.
The response for my data is always an integer representing a rate per hour. It is fairly constant over time. I have one year of hourly data and only 31 different possible ra... |
Suppose a rank $k$ matrix $Z$ with orthonormal columns $z_1,..., z_k$ satisfies
Frobenius Norm Error: $$\|A − ZZ^TA_k\|_F ≤ (1 + \epsilon)\|A − A_k\|_F -- (1)$$
It is said that Frobenius norm error is often hopelessly insufficient, especially for data analysis and learning applications. When A has a “heavy-tail” of
si... |
I am confused. There is a question / claim, which says this:
Original Claim: the percentage of Blue M & M's is greater than 5%. The
hypothesis test results in a P-value of 0.0010, given alpha = 0.05
So everything is fine so far. I have the P-value and compare it with alpha. Obviously, P-Value < Alpha, so I am rejec... |
I've been reading the book Statistical Learning with Sparsity and I just came across the Group Lasso section.
I can follow the maths to the final derivation of the Group Lasso solutions when the ${\bf Z}_j$ are not orthonormal. Nonetheless, when this is the case, the solutions are said to be easier and have the form
$$... |
Suppose that $X^n := \{x_1, x_2, \ldots, x_n\}$ is a sample of $n$ i.i.d $p$-dimensional points, where $X \sim N(\mu, \Sigma)$.
What is known about the distribution of $\min_{x_i \in X^n} \|x_i\|^2_2$?
I know that $\|x_i\|^2_2$ has a non-central $\chi^2_p$ distribution but does the distribution of the sample minimum ha... |
I have a question about how to calculate and compare median cycle times for the production of widgets in factories. I get a report of median weekly cycle times for the factories. I'd like to compute a median for groups of factories and the company on the whole, but I am suspicious of calculating the medians of medians.... |
I'm having trouble interpreting the ANOVA outputs from an lmer model performed on natural log transformed data. I know the parameter estimates and confidence intervals need to be back transformed using the exponential and the resulting back transformed estimates are ratios/percent difference between 2 groups while all... |
When performing classification using logistic regression, can the score function (the gradient of the log-likelihood with respect to the weights) and/or the Fisher information matrix (inverse of the log-likelihood Hessian taken w.r.t. to weights) be used to compare the quality of fit of two sets of weights (without cal... |
Vector-valued AR(1) time series: $$Y_n=AY_{n-1}+\varepsilon_n,$$
where $ \varepsilon_1,\varepsilon_2,...$ are i.i.d $\mathcal{N}(0,M)$, $M$- strictly positive definite
Prove that an invariant distribution exists $\iff$ $A^n→0$ as $n→\infty$
I know that for scalar-valued AR(1): $X_n=\rho X_{n-1}+\varepsilon,$ where $\v... |
I have a time series of daily returns for many years and i have to do preliminary analysis, GARCH modeling and predictions.
I did all my preliminary analysis, ADF test (there's a unit root) , Jarque-Bera test, acf, ... and GARCH modeling using the logarithm of the data.
My question is : Since the series is non-station... |
Say you want to explore the effects of some binary parameter $X_0\in\{0, 1\}$ on the fitness $f$ of a model $M$. Now $M$ has other parameters $X_i$.
I've found a paper that optimizes $M$ against $f$ on all $X_i$ with $X_0 = 0$, and compares that with $M$ optimized against $f$ on all $X_i$ with $X_0 = 1$. Naturally, the... |
I have a dataset that contains 20 predictor variables (both categorical and numeric) and one target variable (2 classes - Good and Bad). But, there are only 23 observations in the dataset. While I wait to receive significantly more observations, what tests / models can I perform on the available dataset to understand t... |
I am using the ks.benftest from the BenfordTests package in R to calculate the D Statistic and p-value of a distribution with respect to a distribution that conforms with Benford Law. The problem I have is that the ks.benftest function gives me a different result from just using function ks.test.
The code I used for ... |
I'm trying to summarize incoming data to speed up some anomaly detection queries... but I'm not sure how to retain/use the stats I'm summarizing.
Here's my basic goal:
1 million events > 1 minute bucket with stats (count, avg, sum, stdev, variance, min, max, etc). Then I have a query that retrieves 1 minute buckets f... |
I'm studying performance analysis and in the summarizing data methods there's the clustering. I understood what clustering is and the various algorithms to clusterize data, however in my book (The art of computer systems performance analysis, Raj Jain) there's written (according to clustering techniques) the following:... |
I am using R, with the forecast package to forecast electricity generation from a wind farm with rain as exogenous variables.
I have estimated an ARIMA (1,0,1) Model with following function:
ModeloX3 <- arima(carg2, order=c(1,0,1), xreg=chuv,
seasonal=list(order=c(0,0,0), period=NA))
where carg2 is ... |
I have built a multivariate distributed lag model (two regressors) which produces p-values that are significant just below the one percent level. However, my constant has a t-stat of like 26. Should I have concerns?
The R-squared is like .80.
|
The interarrival (ia) times of a Poisson process are exponentially distributed. What distribution function describes the ia times of a Negative Binomial process aka Yule-Furry process?
Thanks!
|
Based on an excellent and very useful discussion on a previous question i posted (How can I use synthetic data to validate my classification model?), i would like to ask a very specific question about the rfe function of the R package caret which performs recursive feature elimination:
in detail, based on the above lin... |
I am given the following dataset:
x = (1,2,3,4,5,6,7,8,9,10)
y = (25,17,20,26,10,19,20,9,15,10)
Each $ y_x $ follows an exponential distribution with parameter $ \lambda_x $, where $ \lambda_x=b_0 + b_1x $.
Suppose that $ (b_0,b_1) $ have a uniform prior [0,1].
Question: Find the posterior density of $b_0$ and $b_... |
I am studying for an exam, not a homework question.
According to a survey taken of 500 randomly selected US high school students, 62.9% plan to attend a four year university. A bootstrap distribution is created to find a 95% confidence interval for the true proportion of US high school students who plan to attend a fo... |
Consider the first multivariate normal random variable $x \sim \mathcal{N} (x |0, \Sigma_x )$, where $x \in R^d$, $\Sigma_x \in R^{d \times d}$.
We also are given another multivariate normal random variable $y \sim \mathcal{N} (y |0, \Sigma_y ) $ , $ y \in R^d$.
We would like to find a matrix $A \in R^{d \times d} $ su... |
This is a mediation model with a categorical exogenous variable. I am trying to compare the results by running SEM and regression. The third step regression was conducted and I found the estimates were the same, but the standard errors were different. Any idea? Thanks for your help.
library(rms)
library(lavaan)
y ... |
I'm trying to analyze some binary data that have been consolidated into probability data over time. The probability data is the dependent variable, pertaining to P(event), and I'd like analyze this as a mixed model logit or probit regression. To that end I've done some research and found incredibly helpful answers like... |
I needed to use SAS to find an adequate model for some data using time series analysis. To get the adequate model I needed to include first order and season differencing, then I used an ARIMA model along with autoregressive and moving average to find the adequate model.
Here is my adequate model: $\text{ARIMA } p=(1, 2... |
I need some help with a statistical design.
I have two spatial point datasets: 1 is GPS points of known disease infections in a field (Yes or No Mark Variable). The other is potential detected infections by imagery.
The GPS points are all off by +/- 2m accuracy. However, I don't care. The GPS dataset pattern seems to... |
In experiment, if you know before that an attribute $X$ may affect the treatment effect, so you could do stratify sampling from your target population, e.g., if $X$ is weight, then you could divide the target population into several buckets, then do stratify sampling first, then within the sample from each bucket, you ... |
I have got 2 large samples and want to compare the difference. There are 2 methods:
Assume the population variances are unknown and unequal, and use the Welch $t$ test.
Assume the population variances are known and unequal (estimated as sample variances, which is ok since my sample size is million level and the sample... |
Adding exogenous data as external regressors in an ARIMA model seems pretty straightforward, but how does one do so with ETS methods?
Is there a way of creating a weighted combination of the ETS forecast and a regression based on the exogenous data?
|
Let's say we want to conclude that attributes A, B, C and D are the most relevant attributes to maximize the precision of predicting Y, and then rank those attributes based on their importance/relevance.
Now let's say SVM and Random Forest both seem to be good fits to model the data and Random Forest provides better ... |
Lets say we have two competing models to forecast something.
We can test with the Mincer-Zarnowitz regression if model 1 is unbiased and encompessing all the information of model 2:
$y_i = \beta_0 + \beta_1 \hat y_{i,1} + \beta_2 \hat y_{i,2} + \varepsilon_i$
whereas $\hat y_{i,1}$ is the forecast of model 1 and $\hat ... |
If $k$ is an squared or absolutely integrable kernel are the belo equalities true ?
$$z(s)=\int_{R}^{} \! k(u-d) x(u).du \ \ =\int_{R}^{} \! k(u+d) x(u).du \ \ $$
and
$$\int_{R}^{} \! k(u-d) k(u-d^{'}).du \ \ =\int_{R}^{} \! k(d-u) k(d^{'}-u).du \ \ $$
|
I have a bunch of images and a pre-trained AlexNet model. I have fetched bottleneck features for all images as their representations. I want to find top-K similar images for a given image. What similarity metric (e.g. cosine similarity) is best suited for finding similar images given their bottleneck features?
|
We want to correlate customer lifetime (dependent variable) with feedback rating the customers leave (independent variable) to determine whether we can use the feedback as a prediction for customer churn.
Our data is in a format like this
I'm not a statistician but I assume that if we just correlated Lifetime with Fee... |
I'm trying to figure out what technique to use in order to detect a tremor in accelerometer data. I have the acceleration in the x, y and z coordinates. I've plotted 4 graphs of this data below with various degrees of tremor. The plots below show the data for 20 seconds in which the tremor occurred. Ideally, however, t... |
I have quarterly data on inflation from 1990 Quartal 1 to 2016 Quartal 3.
If I want to perform the pseudo out-of-sample forecasting one quarter ahead with an autoregressive function, do I have to estimate the model until 2016 Quartal 2?
When choosing how many lags to include in the AR model (by looking at BIC and AIC... |
I conducted 2-level mixed effects analysis both in SPSS and in R for a same model (random intercepts and slopes model). Results have been generally similar. However, I have one dataset where degree of freedoms differ greatly. According to manuals for R/SPSS, both packages seem to use the same method (Satterthwaite) to ... |
Graphical model: $(A) \rightarrow \{C : C \in ch(A)\}$ where $ch(A)$ is the set of children to A. So basically a tree rooted in A with edges pointing away from A.
I have categorical distributions of nodes given their parents' values, that is I have the values for $P(C|A)$ but not $P(A|C)$.
Given some evidence, i want t... |
I am reading the PixelRNN paper (https://arxiv.org/abs/1601.06759). I am having a little trouble understanding how one implements the concept of masked convolutions. Section 3.4 states:
"The masks can be easily implemented by zeroing out the corresponding weights in the input-to-state convolutions after each update."
... |
I'm thinking about writing a framework for time series analysis and obviously the question of scaling for big data sets comes up.
From my experience even for large data sets (larger than the main memory) this will
either be handled by scanning in a linear fashion (e.g., for feature extraction)
or it can be process... |
If I had a data set,
$A = \{5,6,8,4,2\}$ then computing the mean and the standard deviation is quite simple. This set has a mean, $\bar{x} = 5$ and a standard deviation, $\sigma = 2$.
But what if I had errors on all the samples in the data set, like so
$$B = \{5 \pm 1, 6 \pm 1, 8 \pm 3, 4 \pm2, 2\pm 4\}$$
How do I com... |
I'm trying to run chi square - test of independance. Between Category A that include values 1,2,3 and Category 2 that include values from 1 to 12.
As you see, there is violation of the assumption that on cell should not have value inferior to 1 and total of cell with expected value inferior to 5 not exceed 20%. (in the... |
I'm testing the randomForest package in R and observing something really strange. Let's first look at the R code below:
n <- 1000
set.seed(12345)
X <- matrix(rbinom(n, 1, 0.5), n, 1)
X <- 2 * X - 1
e <- 1 / (1 + exp(X))
W <- rbinom(n, 1, e)
dat <- cbind(W, X)
dat <- data.frame(dat)
dat$W <- factor(dat$W)
rf.classif ... |
Why expect the Discriminator network to converge to probability 1/2 when it is defined as
indicating the probability that x is a real training example rather
than a fake sample drawn from the model [1] [2]
Given this definition, I would expect it to converge to 1, i.e. thinking constantly that x is from the real t... |
I'm going through the Price Is Right example in chapter 5 of Probabilistic Programming & Bayesian Methods for Hackers.
It reads:
Example: Optimizing for the Showcase on The Price is Right
Bless you if you are ever chosen as a contestant on the Price is
Right, for here we will show you how to optimize your final pri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.