instruction stringlengths 9 38.7k |
|---|
I have a function $f$ which maps real numbers between $0$ and $10$ to $\mathbb{R_+}^{1000}$. For example, $f(4.0)$ returns a set of thousand positive numbers like $1.0, 1.4, 4.3, 0.5$, etc. Theoretically the elements in the resulting set can take any positive value, but most are small.
To begin with, I would like to fi... |
I have the following Q-Q plot that was generated from an Two-Way ANOVA in R. Here is the ANOVA:
And here is the Q-Q plot:
I've generated a Q-Q plot of the ANOVA residuals. Are the following statements correct?
1) The residuals follow a roughly normal distribution (which is what we want) since the Q-Q line is mostly a... |
Given the standard multinomial logistic regression model with reference class K:
$P(Y=j|X^{(i)}) = \frac{\exp(\theta_j^TX^{(i)})}{1+ \sum_{m=1}^{K-1}\exp(\theta_m^T X^{(i)})}$
Would I run into any problems if I estimate K-1 binary regressions independently (R: glm(,family = "binomial") vs. nnet::multinom()) on filtered... |
From a chapter dedicated to the sampling distribution of Pearson's r:
What is this formula for z called? This seems to be the first time I'm coming across it, or maybe I've forgotten. And what is z here? It does not have the notch at its right end, so it must be not the z' described in the chapter.
|
I've been doing a lot of clustering work lately and have been using the PAM algorithm.
Based on my research it appears to be deterministic because the initialization of medoids are selected from items in the dataset (selected randomly). Further, subsequent medoids in the SWAP stage are also items from the dataset. The... |
Feature ranking in Random Forest is considered a multivariate feature selection method (Filter). And RFE is a wrapper method.
And I know that embedded methods are a combination of filter + wrapper. So is RF feature ranking + RFE an embedded method?
|
I am trying to compute the MLE for a sample $X_1, \ldots, X_n$ where
$$
f(x,\theta) = (\theta + 1)\theta^x, 0 \leq x \leq 1
$$
I have defined the likelihood as:
$$
\begin{align}
L(\theta|x) &= \prod_{i=1}^n (\theta+1)\theta^{x_i}\mathbb{1}_{[0,1]}(x_i) \\
&= (\theta+1)^n \theta^{\sum x_i}\prod_{i=1}^n 1_{[0,1]}(x_i)\\
... |
Cross-validation is an extremely useful and popular technique, as shown by the inspired name of this site. However, it can often be quite expensive. For example, take Nadaraya-Watson regression, where cross-validation requires $O(n^2)$ operations where $n$ is the number of data points. So there is a motivation to s... |
I'm running a model with 2 continuous predictors (x1, x2) and 1 continuous outcome variable (y). The results show that both of the slopes are significant, as well as the intercept, with no significant interaction effect. Let's say that my results are something like this:
(intercept): 216.00
x1: -12.00
x2: ... |
I am describing a new species of ant. Molecular and Morphological data suggests that there are 2 separate species. In fact we are very certain they are separate based on behavioral information. I would like to statistically analyze the measurements I have taken from my samples to support what I have found morphological... |
The following is a question and instructor provided solution from a recent exam I took.
Question:
Prove that $\sqrt{n}T_n$ converges in distribution to N(0, 4).
$T_n$=$(\bar{X}^2 - \hat{\sigma}^2)/\hat{\sigma}^2$
With the X's being a random sample from an exponential population with unit mean.
Solution provided:
The ... |
Suppose that I have the following dataset in R:
library(lme4)
data(Machines,package='nlme')
mydata <- Machines[Machines$Machine!='C',]
There are 3 levels with the factor Machine, so the last line above is meant to limit to only two levels (A and B) of the factor Machine. With the following model:
print(lmer(score ~ 1 ... |
I am trying to calculate the Hosmer-Lemeshow Goodness-of-Fit (GOF) test, following the steps presented in the book "Logistic Regression. A Self- Learning Text" by David Kleinbaum and M. Klein.
The following function calculates all the steps, gives as outputs the chi-squared, degrees of freedom and the p-value, as well ... |
This study is about how different treatments affect the quantity of some protein in the blood.
The explanatory variables are categorical (3 different treatments, T01, T02, T03; trtgrp); the dependent variables are the protein level (continuous, logvncsf). 30 subjects (pidID) are randomly assigned to three groups; the d... |
From the original paper, it's not clear whether the adjusted rand index has a lower bound.
Does it? If so, what partition yields the bound?
If now, how can I construct partitions with arbitrary low ARI?
A naive try gave
ARI([0, 1, 0, 1], [0, 0, 1, 1]) = -.5
(written as cluster assignments).
|
Amazon ML (Amazon Machine Learning) is offered by Amazon as a general purpose supervised classification service. They don't even bother to mention what algorithms are being used, they just use the generic term "ML models".
From their Key Concepts page:
An ML model is a mathematical model that generates predictions b... |
I am trying to estimate the posterior distribution using Bayes theorem. The following information is given:
\begin{align}
\newcommand{\prior}{{\rm prior}}
\newcommand{\likelihood }{{\rm likelihood }}
\newcommand{\posterior}{{\rm posterior}}
\posterior&∝\likelihood \times \prior \\
\likelihood(x|θ)&∝ θ^k\times(1-θ)^{n-... |
Let's say that I have n+1 time series of two outcomes : either + or -. Time series A1 to An correlate, ie. have the same sign, with the time serie O with a probability p1 to pn.
Let's says that we know the last realisation of A1 to An what would be the best way to predict O ? I'm thinking of selecting the time series t... |
I know that there are topics about this question but in my view, the answers are not clear enough. I don't understand the main difference between Linear Discriminant Analysis (LDA) and Gaussian Mixture Models (GMM).
Both have the same purpose : determine the posteriori $P(G=j|X=x)$, and maximize it for a certain $j$ ... |
Suppose I'm retrieving the price of asset from 3 different independent sources.
What statistic can I use to test whether data points are close enough that I can be confident they're correct?
I have no prior information about what should actual price be at all. Also, I don't want to trust any of my sources. If many sour... |
Are SSM(sum square of mean?) and SSR(sum of square due to regression) are same or they are two different things?
|
Going with the theme of my recent posts I have implemented a Kalman Filter in an effort to get an ARIMA(p, q) implementation of my own up and running. I apologize, this question is rather subjective I'm sure.
I have gotten the Kalman Filter running but I don't know how to verify it is correctly implemented. It seems t... |
I know little on how random forest works.
Usually in classification I could fit the train data into the random forest classifier and ask to predict the test data.
Currently I am working on titanic data that is provided to me. This is a top rows of the data set and there are 1300(approx) rows.
survived pclass sex ag... |
If the second order inclusion probability is zero for any 2 units in the population, will the yates-grundy-sen variance estimator of the H-T estimator have infinite bias?
|
Is there an existing methodology for applying a supervised learning model to a uncertain dataset? For example, say we have a dataset with classes A and B:
+----------+----------+-------+-----------+
| FeatureA | FeatureB | Label | Certainty |
+----------+----------+-------+-----------+
| 2 | 3 | A | 5... |
Is the newer descriptive statistic (distance correlation) able to resolve these troubling four datasets (Anscombe’s quartet)?
|
I'm a mathematician studying a book on statistical learning on my own and I'm stuck on a problem, mostly because I don't understand what it's asking. I frequent math SE quite a bit and I know they're not too fond of images pasted from textbooks, so I'll write it out here.
Consider inputs drawn from a spherical multino... |
I was looking at velocities of two different data sets ($a$ and $b$). The idea is to look at velocities greater than a certain threshold, $v_b$ and the find the percentage of moving objects. So I take the sum of all velocities ($v_{\rm total}$) and the sum of velocities greater than $v_b$ ($v_{b\ {\rm total}}$). The pe... |
My question has to do with interpreting the ETS model that I have created using R.
To forecast this data I have used an exponential smoothing model with multiplicative errors, additive trend, and no seasonal. I am predicting 18 months into the future, and although I know this is too far in the future and terribly inacc... |
I have coefficients of a logistic regression model. I know from the statistical package used that the estimates are log odds. I am interested in combining two variables, beta 5 (B5) and beta 6 (B6) and then converting this combined log odds into a probability (as B5 and B6 are both measuring the same variable; B6 is an... |
The results below don't really make sense. According to the p-value I should reject $H_0$, however, confidence interval contains the null value that I'm supposed to reject. Any ideas what's going on?
binom.test(51,235,(1/6),alternative="two.sided")
Exact binomial test
data: 51 and 235
number of successes = 51, numbe... |
I have data points $(\theta,y)$ that when plotted in a x-y (with $\theta$ being the x) graph can be fit by the curve
$$y=-\alpha-\frac{\beta}{\cos(\theta_{0}-\theta)}$$
i.e. I can find $\alpha, \beta,\theta_{0}$ that make the above curve fit my data via least squares.
There are really three ranges of $\theta$ in each o... |
This question is related to a previous question I opened
I have a scale I wish to apply Cronbach alpha to. One of the assumptions of Cronbach's is the tau equivalence assumption which according to my review of the literature is barely ever achieved. I was initially using the package tau.test in the coefficientalpha pa... |
I am developing an algorithm which should find anomalies in a dataset.
In order to reduce computation time I used PCA on the data - reduce number of features will reduce the computation time.
When reviewing it with a colleague a question came up about the impact of PCA in such use case, with the following example:
I ha... |
I'd like to test if the underlying process of a volatility series is stationary, and thus if the mean and variance of the underlying process hasn't changed over time (some structural change in the underlying process).
To do this, can I run an Augmented Dickey-Fuller test on the volatility series?
The application I had ... |
This question is somewhat related to a previous question I asked previously
I have a data set that has roughly 300 people in the first set and 150 in the second. The surveys were taken at two different universities in two different countries
The survey has roughly 30 questions which themselves break down - based on pre... |
I would like to compute similarity matrix (which I will further use for clustering purposes) from my data (failure data from automotive company). The data consist of these variables:
START DATE + TIME (dd/mm/yyyy hh/mm/ss), DURATION (in seconds), DAY OF THE WEEK (mon,tue,...), WORKING TEAM (1,2,3), LOCALIZATION (1,2,3,... |
I am reading Caruana (1997) Multitask learning (pdf). In the definition of multi task learning, the author states that;
Usually, we do not care how well extra tasks are learned; their sole purpose is to help the main task be learned better.
This is also the goal of transfer learning right? What is the difference the... |
let x be a random variable with density function
f(x)= $\frac{2\theta x + 1}{\theta + 1}$ if $0\le x \le 1$,$\theta$ > -1 and 0 otherwise
consider the problem of testing $H0 :\theta \le 1 $ $ $ $ against $ $H1:$ $\theta >1 $
let $\phi$ be the test function given by
$\phi(x)$ = 1 if x $\ge$ $\frac{\sqrt{9-8\alph... |
This monday I'll take my exam in Investment analyses. My teacher usually gives a matrix with covariances and beta's, which makes it easy to find Expected return/ Variance. He just posted some exam prep questions. I've been failing to solve some of them. Any chance somebody could try to safe the day?
Given:
The annual e... |
In the code for deep learning models in tensorflow, Keras I see that Reshaping of the data (numpy tensor or ndarray) is a very frequent operation.
It is used to fit different components of a model together.
Why can I reshape data and assume everything is fine? Stochastic gradient and Backprop will get job done?
Does th... |
Suppose $X_1,X_2,...,X_n$ are iid $Bernoulli(p)$. We want to test the hypothesis $H_0: p=0.5$ vs. $H_1: p=0.75$, and also the hypothesis $H_0:p=0.75$ vs. $H_1:p=0.5$ at level $\alpha=0.05$. Is it possible to construct such a test that rejects both $H_0$ at the stated level? If yes, give an example. Present some more d... |
I am not really good in statistics so please bear with me here :)
I was reading an article regarding financial advisors in mergers and acquisition deals and couldn't quite understand how the authors interpret the coefficients from a multinomial logistic regression and reach the percentage increase/decrease in likelihoo... |
I'm trying to manually produce the PCA used in this webpage, hence:
Price <- c(6,7,6,5,7,6,5,6,3,1,2,5,2,3,1,2)
Software <- c(5,3,4,7,7,4,7,5,5,3,6,7,4,5,6,3)
Aesthetics <- c(3,2,4,1,5,2,2,4,6,7,6,7,5,6,5,7)
Brand <- c(4,2,5,3,5,3,1,4,7,5,7,6,6,5,5,7)
data <- data.frame(Price, Software, Aesthetics, Brand)
now the exam... |
I gave my class pre-and post-surveys on their perceptions of their own learning and engagement in my course. The survey had four sections: Confidence in Conservation Biology, Self Assessment of Skills, Self-efficenacy in Science, and Relationship to Conservation Biology. Each survey had 25 questions overall. Each quest... |
I am reading the paper by Mika et al. Kernel PCA and de-noising in feature space and in the 4th page I am reading the following
In the first experiment (table 1), we generated a data set from eleven Gaussians in $R^{10}$ with zero mean and variance $\sigma^2$ in each component, by selecting from each source 100 points... |
I am missing something. I am trying to estimate an ARMA(2,2) model using Maximum Likelihood estimation via the scipy.optimize.minimie function.
I have simulated an ARMA(2,2) process via the statsmodel module with AR coefficients 0.75 and -0.25, and MA coefficients 0.35 and 0.5:
rparams = np.array([.75, -.25])
maparams ... |
Is it statistically valid to enter "control" predictors that are theoretically relevant in a linear mixed effects model (aka multilevel model), even if only very weak and non-significant linear relationships were demonstrated beforehand?
The predictors in question could be considered control variables (e.g., age, SES,... |
I am testing forecasts against against realized values with a number of observations of 4000.
When I calculate the mean MAE, its relatively low. Around 10% deviation to the original variable.
However, when I regress the forecasts against the realized values I get an r-squared value of 0.06...
Is there any rationale beh... |
I'm trying to understand gradient boosting (GB) but even though I read a lot of explanations I'm still not sure I understand it correctly. I'll give a simple example of my understanding first.
Let's say we want to apply GB to the following problem: we want to predict number of inhabitants based on number of rooms. Our... |
I am dealing with the following data frame:
GroupID Month Year Concession_10Yr Action Historical_Action_5Yr
XY1 12 1984 1 0 0
...
Here GroupID is a unique identifier for an organization. Then we have data every ear and month on whether the organization took "action", whet... |
I am studying GLMs and I am struggling a bit with some of the concepts. I think mine is more of a theoretical issue.
Basically I am a bit confused by the meaning of these three concepts: the variance of y (the response), the dispersion parameter and the deviance.
I know they probably have different meanings, but I thou... |
I was reading LeCun's tutorial paper on energy-based models of cost functions, and came upon this table. I don't understand how he got the equation for perceptron loss. Can someone clarify how that equation meshes with this, which I believe is the regular loss function:
I'm new to neural networks and information theo... |
Why are some loss functions better at optimizing one type of problem than another? In other words, what are some factors to consider when choosing one cost function over another?
|
Here are two ranked variables, their corresponding correlation test, followed by my understanding of the results:
x1 = c(32, 16, 22, 8, 18, 1, 9, 10, 7, 2, 21, 26, 15, 17, 5, 12,
19, 25, 13, 20, 29, 24, 6, 4, 14, 23, 31, 27, 11, 28, 3, 30)
y1 = c( 8, 4, 6, 5, 14, 11, 18, 13, 10, 16, 28, 2, 24, 26, ... |
I'm trying to get to grips with my lecture notes but cannot understand the idea behind it. I'd really appreciate some help:
"Generate a sequence of size $n$ from stated distribution. Consider an independent sample $X_1,X_2,X_3,..,X_n$ from pdf $f_x(x)$, with mean $\mu$ and variance $\sigma^2$. Then the CLT says that...... |
I am resolving an anova one-way exercise. But I am doubtful because when using the F-table to get the p-value, I am getting a probability around 2.2 (an obvious error), but if I use a calculator the probability is 0.042.
I have an independent variable with 4 levels. The mean and standard deviation are this:
N M... |
In chapter 2 of his Advanced Data Analysis from an Elementary Point of View textbook, Cosma Shalizi tries to find the optimal linear predictor using only a random vector $\vec X$ for the variable $Y$, without using any of the classic assumptions of the linear model. As far as I can tell, the only assumptions he makes a... |
I have function
\begin{equation}
f(W)=\lambda ||W||_1 + \gamma \sum_{j} ||wj||_2 + \frac{1}{2} |||W-u||_F^2
\end{equation}
$u \in R^{m\times T}$, $W \in R^{m\times T}$ and $W_i \in R^T$ is the $i th$row of $W$.
I would like to solve this function w.r.t $W$. If everything was differentiable, I would take derivative w.... |
Consider the sentence in the abstract of the paper at https://arxiv.org/abs/1610.09038.
Empirically we find that Professor Forcing acts as a regularizer,
improving test likelihood on character level Penn Treebank and
sequential MNIST.
I have used MNIST dataset. However, I could not find any Sequential MNIST or pe... |
I have two joint distributions say $f_1(x,y)$ and $f_2(x,y)$. Let $f(x,y)$ be the weighted sum of $f_1$ and $f_2$ such that
$$f=w_1\cdot f_1+w_2\cdot f_2;$$
How do make $100$ random draws from this new distribution $f$?
|
I have a four layer CNN to predict response to cancer using MRI data. I use ReLU activations to introduce nonlinearities. The train accuracy and loss monotonically increase and decrease respectively. But, my test accuracy starts to fluctuate wildly. I have tried changing the learning rate, reduce the number of layers. ... |
I am attempting to combine Likert scale variables into a new variable using SPSS. One of my new variables would combine 3 items that are scaled 1 to 5 with 1 = strongly agree and 5 = strongly disagree. A 4th item to be included to create the new variable is scaled 1 = friendly to 7 = unfriendly.
How do I create the ne... |
I'm overwhelmed by this one: what are the chances of 3 unrelated individuals having not only the same birthday, but the same birth year?? This happened to me about a year ago at a party with 28 people present. I was skeptical enough to check IDs, and all 3 birthdays were verified August 17,1975.
|
I'm training a 4 layer (2 hidden layers) Neural Net, with 10 input nodes, and 6000 output nodes.
During training, my loss function (RMS), and R2 currently looks like this:
So far it seems like the Loss function is starting to level off, even though my R2 is only at 0.2.
Is it reasonable to expect that there will be a... |
for a random sample $X_1 , X_2 .... X_5$ , from a Uniform (0,1) , isn't the distribution of median (say y) be given by
$$
f(y)= \frac{y^2 (1-y)^2}{\beta (3,3)}\,,\qquad 0 < y < 1
$$
this can be obtained by directly using the result for the rth order statistic
$$
f(x)=\frac{F(x)^{r-1} (1-F(x))^{n-r}f(x)}{\beta (r,n-r... |
$\newcommand{\Balance}{\operatorname{Balance}}$$\newcommand{\Income}{\operatorname{Income}}$Consider the following model:
$\Balance = B_0 +B_1 * \Income + B_2 * \operatorname{Gender}$
Gender is a qualitative variable so we are going to use a dummy variable such that it is 0 when its male and 1 when its female.
So,
$\Ba... |
Here is, I would assume, a fairly common situation: I would like to know which test to use to assess whether the tendency to answer "Yes" on question 1 of a questionnaire is associated with the tendency to answer "Yes" on question 2 on the same questionnaire. Phrased differently, I want to know whether two categorical ... |
I have some images of very simple directed graphs with just a few nodes and edges. I know there is lots of tools, which print out graphs with a adjacency matrix is an input, but I need to do it the other way around.
For example Das and Chanda's paper covers this technique, but on a more advanced level. Their approach c... |
My problem concerns the calculation of variances in 2 different ways (the variances calculated in the 2 different ways do not seem to match)...
I have the following data:
For variable $A$: $\;\;\;\;$ 2, 1, 2
For variable $B$: $\;\;\;\;$ 8, 3, 1
Now define variable $f$ as follows: $f:=A/B$, so:
for va... |
The scenario is regarding treatment effect in an observational study (i.e. not randomised): those given the treatment would be more unwell at baseline.
A clinical trials statistician suggested adding in the baseline as a covariate in the regression model. I remember this being acceptable in randomised trials (RCT), but... |
this question is about MAP inference in an AR(1) model (exercise 1.6 from West, M., Time Series: Modeling, Computation and Inference). It's not a homework assignment.
Assume $n$ observations were generated from the model
$y_t = \phi y_{t-1} + \epsilon_t,\ \epsilon_t\sim\mathcal{N}(0, v)$
where $y_1$ (the first observat... |
Is it possible to use Partial Leasr Square (PLS) regression with discrete variables?
What I mean is, if the inputs of PLS (X predictor variables and Y predicted variables) are discrete variables, can PLS regression be used?
|
I'm building a Decision Tree on the iris dataset using R Studio. I take 100 observations as training data, and 50 as testing one. I train the tree model and plot it using these commands:
treeModel <- ctree(Species ~ ., data = trainData)
plot(treeModel)
And here is the result I got:
I have 2 questions:
What is the pu... |
I am trying to choose the most appropriate test to use for comparison of two sets of ratios, with several replicates.
My data set is the number of male and female offspring, in two different scenarios. One situation has 19 replicates, the second situation has 34 replicates.
I want to test whether there is a statistic d... |
I have a question studying Hogg&Craig Introduction to Mathematical Statistics, 7th edition, in page 354.
I don't know where I got wrong. Please Check. Thank you.
|
I have regressed the following points with OLS
the intercept is -0,085 while the slope is 1,008. So highly dependent. So far so good.
The t-statistics for the intercept are -2,84 and 27,87 for the slope... Both showing significance.
Now when I use the Wald test as
$Wald statistic = c'*inv(Var)*c $
where $c$ represent... |
I would like to calculate the inter-rater reliability for a binomial rating (0 or 1) from multiple events from different subjects by two raters.
Here are some data in R:
Subject <- c(1, 2, 2, 3, 4, 4, 4, 4, 5, 6, 6, 7, 8, 8, 8, 8, 8, 8, 9, 9,
10, 10, 10, 11, 11)
Subject <- c(Subject, Subject)
Rating <- ifelse(Sub... |
I am implementing a Language Model based on a Deep Learning architecture (RNN+Softmax).
The cost function I am using is the cross-entropy between the vector of probabilities at the softmax layer and the one-hot vector of the target word to predict.
For every epoch, I am computing the perplexity as:
where is the numb... |
I have a doubt on how to interpret a result of a hypothesis test. For example, a scenario where I have an existing configuration and also a new configuration. I am trying to check if with the new configuration the program is faster.
The execution of the program in the existing configuration is 70.20 and in the new conf... |
I have one data set labeled by two classes either A or B. I did PLS and I extracted the variable importance.
overal
v3 100
v5 38.77046648
v9 34.2419393
v32 30.14106059
v7 28.7229834
v56 26.37437813
v76 25.72790586
...
If I got it correctly, the variable importance shows the relative importance of the features... |
I am using functional linear model for scalar response. It is that I have i.e. data frame with five columns. Every value in these columns is pressure estimation to certain time ( let's say every 0.04 sec. within 16 seconds). I am trying to predict restriction, which is the scalar response vector consist of five values ... |
I am using a Mann-Whitney U test to compare the willingness between subjects to once monthly injection between two groups. One group is a control while the other is the intervention. I am expanding on a question I had asked here:
What test would you use for my data. I think independent t-test?
Because I am using the Ma... |
Consider a stochastic multi-armed bandit problem, where one of the $N$ arms of a given slot machine must be chosen to be played. Each arm $i$, when played, yields a random real-valued reward $r_i$ according to some fixed (unknown) distribution $p_i(r_i)$ with support over the real line. The random reward obtained from ... |
I used Ben Bolker's easyPredCI function to generate standard errors and confidence intervals from a GLMM (this function creates population-level predictions by ignoring the random effect). When I plot the predicted responses (abundance) and confidence intervals along a gradient of one of my explanatory variables (prop... |
What does one mean by ARCH effect?
I am a little bit confused... I understand the mathematical terms and so on. But I cant explain the ARCH effect in words.
Can someone explain the ARCH effect for me in words?
(ARCH effect for time series.)
|
I am using a mixed effects model to analyse data, but am unsure whether I am committing any violations due to the nature of the data I have.
My data comes from a game whereby people have to identify an object presented on a screen as fast as possible. I won't go into much detail, but there are two methods by which they... |
I have several groups of measurements like shown below, and I want to know of the distance from each group to the overall mean is significantly different from the rest. Can I do a bootstrap where I just draw distances from the total group of distances measured, and set 95% confidence from that? Or should I instead use ... |
If I have a Bayesian network, In my case made up of only Gaussian variables and discrete variables, and I have some data which may or may not have been generated by this network (as in, could have been sampled from it).
Is there any "hypothesis test" which could determine whether or not I can remove the possibility tha... |
In a table, I've got total plant Counts (C), previous yr plant counts(PC), and multiple weather predictors(W; continuous data). The objective is examine the relationship between counts (C) and various weather (W) predictors,
bearing in mind the counts (C) will depend on previous year counts (PC).
Examination of basic... |
I've been scratching my head over it, but as a mere high school student I can't seem to figure it out.
As a big school project I've been doing research after the Monty Hall Problem. I'm trying to figure out whether or not the number of doors in the problem influences the choice of the player (to switch or not to switch... |
I'm trying to fit an ARIMA model in R, but auto.arima and the standard arima function for some reason keep giving me different results and different forecasts.
For example, if I fit the model with arima, I use:
ARIMA011 <- arima(data, order=c(0,0,1))
and it gives me:
Call:
arima(x = data, order = c(0, 1, 1))
Coeff... |
I have 1200 data points and I'm building 6 different time series models. One with 1200 data, another model with 1100, 1000,..., 700 and then I would choose the best model but I don't know how to select between different data lengths. I'm doing so because my data have time based trend and I don't know how many data shou... |
I am reading about RNNs and how to train them and I understood how back propagation works. I have the following model:
$$
h_t=f(Ah_{t-1}+ B x_t),\\
\hat{y}_t=g(C h_t).
$$
For a given sample $(x_1^T,y_1^T)$, my loss function is $L_2$-loss given by $L=\frac{1}{2} \sum_{t=1}^T \|\hat{y}_t-y_t\|^2$. My understanding of bac... |
What's the precise mathematical definition of a black swan random variable?
Taleb describes it approximately here(http://highlands.vmhost.psu.edu/_reading/docs/blackswan.pdf), where he describes three properties:
large impact
incomputable probabilities
surprise effect
It appears that this might simply be a heavy-tai... |
I am reading a statsmodels tutorial for generating and fitting ARMA models here. The author says
The conventions of the arma_generate function require that we specify a 1 for the zero-lag of the AR and MA parameters
What does zero-lag mean?
|
Problem Statement
Let $X$ and $Y$ be random variables such that $X
\sim \text{Poisson}(\lambda)$ and $Y|X \sim \text{Binomial}(x+1,p)$. Find $\text{Cov(X,Y)}$.
Attempt at a Solution
I would like to be able to write $Y$ as $X + Z$ where $Z$ is Poisson and independent of $X$, since then by this question the variance is e... |
I have been reading two excellent textbooks (Murphy, Mohri) in the machine learning. Although I am familiar with R and its utilization for ML, I was thinking of learning C/C++ via machine learning. There are quite many books that introduce the practical ML via R, Python, or Java, but I have not seen any book that intro... |
Let:
$U, V \overset{i.i.d.}{\sim} \mathcal{N}(0,1)$, i.e. independent standard Normal random variables.
$X=\min(U,V)$
$Y=\max(U,V)$
What is the covariance of $X$ and $Y$?
Related: What is cov(X,Y), where X=min(U,V) and Y=max(U,V) for independent uniform(0,1) variables U and V?
|
In a problem I'm working on, I have Bernoulli random variables $X_1,X_2,\dots,X_k$ ($k$ is odd) and I am interested in their sum $Y = \sum_{i=1}^k X_i$. In this problem, $P(X_i=1) = p_i$ and $P(X_i=0) = 1-p_i$. Each $X_i$ is independent, but not all are identically distributed, so $Y$ follows a Poisson Binomial Distrib... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.