instruction
stringlengths
9
38.7k
SO, I've been working on the MICCAI BRATS 2016 dataset, and was trying to implement a state-of-the-art but very simple model using keras, which he originally did using theano. Here's my model's code in keras: K.set_image_dim_ordering('th') model = Sequential() #first set of CONV => CONV => CON...
I'm currently working through a set of old past exam papers for a course, and came across this question which just has me flummoxed. I've slightly rephrased the relevant information and the question itself below, but am confident it's true to what's being asked: $X$ has an exponential distribution, with a mean of $1$....
I am faced with a classification problem. One of my features consists of categorical data with 150 factors (these are related to jobs i.e. sales assistant, desk clerk etc). My initial approach was to use the randomForest package (in R) but it appears that it cannot handle more than 52 levels. I have heard about word em...
I have an imbalanced (two-class) classification dataset, based on which I am trying to train and cross-validate a classifier. During the process of the k-fold cross-validation, I set aside the test subsets before I oversample the remaining (training) subsets. I also standardize (zscore) the training subsets, and I stor...
I have couple of questions in times series forecasting. If the time series is nonstationary, should we make it to stationary for running auto.arima OR will this function automatically convert it? How to optimise the auto.arima? If we take log of a time series to make it stationary, the forecasted values are in the lo...
A support vector machine initially poses the following optimization problem: $$max_{\gamma, w, b} \gamma \\ s.t\ \\ y^{(i)}(w^Tx^{(i)} + b) \ge \gamma,\ \ i=1,\dots,m \\ ||w|| = 1$$ I understand the constraints and what we are trying to maximize. What I don't understand is why $||w||=1$ constraint is a non-convex one. ...
I had few data analysis and modelling roles and was always "unfortunate" to work with, let's call it bad data. Think of default probabilities 1 of 10 000, or sales time series that has 3 sold products per day which occasionally jumps to 10 or drops to 0 with certain seasonal component of course. What do you think, can ...
I have panel data and want to find out whether the effect of key independent variable is changing over time. At first, I intended to run OLS for each year separately, then compare coefficients. But then I started to have doubts. Maybe there is a better strategy?
I am working on an assignment in which I am given a set of features and a (continuous) target and I need to find what is the most important factor driving the target. I thought about several different ways of approaching it: Looking at Pearson's and/or Spearman's correlation coefficients between each variable and ...
In the answer to the question: Chi squared goodness of fit test, user glen_b comments that: The circumstances where it really makes much sense to formally test goodness of fit are surprisingly few. Perhaps the reason for this that in a lot circumstances, there are better options. However, the one-sample multinomial m...
This is slightly embarrassing, as I've done a fair amount of statistical work, but for years I've heard this niggling voice at the back of my head, and I need to ask someone. I remember when I first heard about multivariate regression and an example being used was a cancer trial of patients receiving surgery vs. chemot...
I'd like to make a prediction for a single image with Keras. I've trained my model so I'm just loading the weights. from keras.preprocessing.image import ImageDataGenerator from keras.models import Sequential from keras.layers import Conv2D, MaxPooling2D from keras.layers import Activation, Dropout, Flatten, Dense fro...
I am struggling on how to report a significant categorical x continuous interaction, which I found using a negative binomial regression. I have posted the output from STATA below. So far, I have said something along the lines of, "there was a significant lang2 by emotdys3 interaction term at age 3 (B = *, p = *), post...
First of all: I don't know if this is the correct place to ask this question. If it is not, please help me deciding where I should post it. I want to study Machine Learning as a MSc (UCL if possible) and my background is undergraduate mathematics. I'm in my second year and in my third year I can choose only one of the ...
I bumped into my econometrics book (Wooldridge 6th edition) over testing whether slopes and intercept are the same for two different groups (men and women, white and black etc.). It says that the hypothesis that each $\beta$ is the same across the two groups is $k+1$ which I understand, but then it says that for the u...
An urn contains $2n$ balls, of which $r$ are red.The balls are randomly removed in $n$ successive pairs. Let $X$ denote the number of pairs in which both balls are red. Find a) $\mathbb{E}(X)$ b) $\operatorname{Var}(X)$ Attempt to find answer: Let $X_i$ equal 1 if both balls of the $i^{th}$ withdrawn pairs are red, a...
I am working on a commodity-exchange rate model as part of my thesis. My dependent variable is log of first difference of exchange rate of Colombia and my independent variable is log of first difference of crude petroleum price. I have daily data for last 20 years for both the variable. I am interested in looking wheth...
I read this paper: "Experiment Size and Power Comparisons for Two-Sample Poisson Tests", Wei-Kei Shiue and Lee J. Bain, Journal of the Royal Statistical Society. Series C (Applied Statistics), Vol. 31, No. 2 (1982), pp. 130–134, about which I have a question. Suppose two Poisson processes are observed for fixed $s_1$ ...
I am working on an exercise in which I have to study how does one specific feature of a listing on a website for house rentals affects the number of reservations. I plotted my kernel density estimator (similar to a histogram) for the number of reservations for each variant of the feature: I was thinking about doin...
When I try to run a Kruskal-Wallis test on a sample with fractional weights, SPSS throws the following warning: Frequency weight data values must be positive integers. Positive non-integer frequency weight data values are encountered. These values are rounded to the nearest integers for the analysis. When I try to ru...
I found a problem in taking the limit (when $X= 1$), this is what I am getting: $\underset{n\rightarrow \infty}{\lim}F_{Xn}(x) = $$F_X(x):= \begin{cases} 1\,, &\text{ if } x>1\\ \frac {1}{2}\,, &\text{ if } x=1\\ 0\,, &\text{ if } x<1\end{cases}$ Please suggest what am I doing wrong?
I split the training data into a train (75%) and test data (25%). I got an AUC for test data less than training data. does this mean overfitting ?
I have a question about finding the standard deviation of a discrete version of a Normal Distribution (maybe a binomial distribution?), knowing the mean and the probability density function value of the mean. For example, using an age recognition algorithm, we get the age of person estimated to be 26 with 40% confidenc...
Suppose you have some non-continuous data that you can bin, e.g. integer value test scores. So you go ahead and bin your data into bins of 100-90, 89-80, 79-70,...,9-0 and then you make a nice line plot over the medians of each bin e.g. over the A bin you'd put the median of the grades for values between 100-90. Now wh...
I read this paper and Hinton categorized data representation into: Localist (local) representation Distributed representation In another presentation by Mikolov categorized text into: Local representation N-grams One hot vector Bag of words Continuous representation Distributed representation LSI (LSA) LDA I wa...
How do I find a confidence interval for a series of values that are log-normally distributed weighted by their values? The distribution would look like: $\sum_{k=1}^n 2^{mU_k}$ Where U is a random variable between 0 and 1, and n is the number of samples and m is some scale factor greater than 1. I have found similar qu...
I have this problem where there are two teams: a and b. They play a series of 5 games that are each independent of the other. The winner of each game is given a certain number of points. Whichever team has the most points at the end wins the series. Each game is played and there are no ties, either a or b wins. I am gi...
I have a dataset that looks at immigration applications and visa acceptances (granting of visas). The rates are calculated for "accepted" and "rejected" of visa applications. However, the dataset also has values for cases that were closed. Normally this is when the immigrant either stopped showing up to appointments,...
I'm curious whether a testlet IRT model would be appropriate for a situation where polytomous responses on a 1-5 scale are decomposed into pseudoitems indicating whether the response is $\ge X$ response 1 = 0,0,0,0 response 2 = 1,0,0,0 response 3 = 1,1,0,0 response 4 = 1,1,1,0 response 5 = 1,1,1,1 So instead of 1 item ...
For some sampled function of real variable, defined on [a, b], how can [a, b] be split into subintervals of unequal width, so that for each interval one can say, "On this interval, function is approximately equal to ..."? Formally speaking, function is to be approximated with several rectangles in some optimal way (e.g...
I've extracted the scores for a multi-label classification problem. For every instance I have ~35 000 labels/scores. The score values are between 0 and 1. To get the relevant labels based on the scores I need to use a threshold. My first try was to basically compute the mean and then take all the values above it, but b...
How to show that $y_t=x_t+\nu_t$, where $x_t$ is an $AR(p)$ process and $\nu_t$ is a white noise, follows an ARMA(p,p) process? Say $x_t=\phi x_t + \epsilon_t$. Then replacing $x_t=y_t-\nu_t$, we get $y_t=\phi y_{t-1}+\nu_t-\phi \nu_{t-1} + \epsilon_t$. Doing this with an AR(p) process always yields the $\epsilon_t$ a...
For Autoregressive Integrated Moving Average models (ARIMA), if the residual autocorrelation function (ACF) of both autoregressive, AR(1), and moving average, MA(1), models is the same what does this imply? Also, which model do we choose and will the forecasts be the same?
Using R, I used logistic regression to predict a binary target variable. But using a rule like "$<50\%$ then $0$ and $\ge 50\%$ then $1$" feels arbitrary. How can I do that with R? I mean compute a cutoff point according to my data.
Originally, without SMOTE, my ML learning steps go like this: Feature vectorization split data into X_train, X_test, y_train, and y_test use X_train and y_train for machine learning predict/test on X_test and y_test I think there are two spots I could inject my SMOTE codes. One is I can inject it before the train/...
I cannot grasp my head around this property of stationary series and the autocorrelation function. I have to prove that \begin{align} \sum_{h=1}^{n-1}\hat\rho(h)=-\frac{1}{2} \end{align} Where $\hat\rho(h)=\displaystyle\frac{\hat\gamma(h)}{\hat\gamma(0)}$ and $\hat\gamma(h)$ is the autocovariance function \begin{align...
I have a dataset from retired players from regional soccer leagues, spanning 293 players from the last 10 years. I have the following variables: Team (category, could either be random or fixed) Age of retirement, duration (years played), matches played. Year of retirement (could be a random factor) I want to predict ...
I have run 10-fold Cross-Validation on kNN to predict my optimal size of k (neighbors). I'm pretty sure I've calculated my model correctly, following to a tee this process: http://genomicsclass.github.io/book/pages/crossvalidation.html. Yet, the misclassification rate increases almost in a linear fashion, as k increase...
Consider the importance sampling estimation error $$ e_n(f) = \int f d\mu - \frac{1}{n}\sum_{i=1}^n f(x_i) \rho(x_i), \qquad x_i \sim \lambda,\, \rho = \tfrac{d\mu}{d\lambda}, $$ where $\mu$ and $\lambda$ the target and proposal distributions, respectively. I know a few probabilistic upper bounds on $|e_n(f)|$, from $$...
I will be collecting a large amount of data over a long period of time by running a cron job to continually scrape a website daily. Because of the sheer volume of data being gathered, it is not efficient to check every single data point. Is there some mathematical way to ensure a certain amount of confidence that my da...
Consider the following scenario: Collection of user data from a community site similar to StackExchange reveals that certain users tend to "agree" with other users; e.g., when participating in the same posts, they tend to upvote or downvote together. Simultaneously, certain users tend to "disagree" with each other. Aga...
Pearson correlation distance:$$d_{cor}(x,y)=1- \frac{ \sum \limits_{i=1}^{n} (x_i-\bar{x})(y_i-\bar{y}) }{ \sqrt{ \sum \limits_{i=1}^{n} (x_i-\bar{x})^2 \sum \limits_{i=1}^{n} (y_i-\bar{y})^2 } }$$ I'm using package 'factoextra' in R to calculate correlation distance measures. This is the tu...
I am looking at this paper by the College Board on the validity of SAT score and High School GPA (HSGPA) for First Year GPA (FYGPA). They state they are using a straight forward linear regression to analyse the data. However, I have a question about how a correlation is affected by a couple of factors for these exampl...
ARMA model selection involves selecting a number of autoregressive lags and moving average lags. Meaningfully estimating the coefficients (i.e. without overfitting) requires the length of the series to be far greater than the number of parameters. If the series is quite short, say 10 time points, then a model that con...
I had some data where I had previously examined the proportion with recurrent hepatocellular carcinoma (HCC) using the BN model as such res<-rma.glmm(measure="PLO",xi=ai1,ni=ni1,data=metadata) res1p<-predict(res,transf=transf.ilogit,digits=2) The investigator is now interested in, for example, the effect of gender on ...
In convolutional neural networks (CNN) the matrix of weights at each step gets its rows and columns flipped to obtain the kernel matrix, before proceeding with the convolution. This is explained on a series of videos by Hugo Larochelle here: Computing the hidden maps would correspond to doing a discrete convolution ...
I am currently working on a panel data model of 30 companies over 10 years where the dependent variable is a score (decimal bounded between 0 and 1, continuous) while the independent are dummies and their lags. I ran different models on Stata, but the only one fitting my data is generalized estimating equations (GEE) ...
Suppose two numbers are drawn one by one from the set ${1,3}$ and it is not known whether the numbers are drawn with replacement or without replacement. Suppose you set up the following test: H0: Numbers are drawn without replacement HA: Numbers are drawn with replacement And the Null is not rejected if the sum of...
I have a data-set/data-frame with columns Description, Department Name, Priority, Doctor name & Location.Description data comes as free text from from the UI. Based on historical description's in the data-set, my data scientist (DS) says he can predict the Department Name value for a new incoming Description. However h...
I am beginner in machine learning and I came across these terms while going through code of cnn, I want to know how to what exactly they mean and other question is that when the weights of network change? after each batch size or after every epoch? Thank you.
I am reading Yann LeCun's seminal paper Gradient Based Recognition applied to document recognition. Although the paper includes details of the architecture, little is said about the choice of hyperparameters. For example the hidden fully connected layers have 120 and 84 units respectively but the reason for this choice...
I have data from experimental setup in which the number of two species of amphipod in five different substrates ($n =5$) was recorded at the end of the 24 hour period. The experiments utilized natural mixed population proportions and so the abundances of each species is odd (70,30) as such rather then use count data I...
I'm working with European Social Survey data and have seven dichotomous questions related to people´s political participation. I would like to create a new variable summing them up to be used for regression analysis, but as far as I know, a sum of variables requires at least ordinal data. Is there a way around that? ...
Let $X_n$ be distributed as a poisson random variable with parameter $n$. Then which of the following are true ? 1.$\underset{n\rightarrow \infty}{\lim} \mathbb{P} (X_n > n + \sqrt n)=0 $ 2.$\underset{n\rightarrow \infty}{\lim} \mathbb{P} (X_n \le n)=1 $ 3.$\underset{n\rightarrow \infty}{\lim}\mathbb{P} (X_n \le n)=\f...
I have a "real life" problem. I am modelling a form of Operational risk at a Company. Each department of the company is asked for how a particular event will impact their department, in terms of cost. Each department provides a "probability that the event occurs" (say, $p$). They then give an opinion of the severity of...
Lets say I have a convolutional neural network where my input images are of dimensions 25x25x3 (3 depth channels for colour) and pass it through a convolution layer of 5 kernels, each 3x3 The depth of each kernel will always be the same as the input depth, so my kernels are actually 3x3x3 The layer will convolve each 3...
I am trying to manually calculate beta-coefficients using Weighted Least Squares, which are given by: X should comprise only one variable and the coefficients should include an intercept. I tried it as follows: set.seed(1) x = as.matrix(mtcars$wt) y = as.matrix(mtcars$mpg) w = runif(length(x)) (t(cbind(1,x)) %*% dia...
I have a model: StepHome <- glm(formula = FTHG ~ HS + HST + AST + HF + AF + HC + AC + HY + AY + HR + AR + HS:HST + HST:AF + AST:HY + HF:HR + AC:HR + HY:HR + HR:AR, family = poisson, data = Data) That I calculated a pseudo R-squared value for from: ...
Denote $\mathbf{Y}^{(t)}$ and $\mathbf{X}^{(t)}$ for the t dimensional column vectors $\mathbf{Y}^{(t)}=(Y_1,Y_2,...,Y_t)^T$ and $\mathbf{X}^{(t)} = (X_1, X_2,...,X_t)^T$. Given assumption (1) that $Y_t$ given $(X_t, \mathbf{X}^{(t-1)},\mathbf{Y}^{(t-1)})$ is independent of $(\mathbf{X}^{(t-1)},\mathbf{Y}^{(t-1)})$ wit...
Let's say I have a sample $X_1, X_2, \cdots ,X_n$ from a Bernoulli distribution, and I want to test the following: $$ H_0 \colon p=p_{0} \quad\text{vs}\quad H_1 \colon p= p_{1} $$ where $p$ is the parameter of a Bernoulli distribution. The likelihood ratio test is then: $$\Lambda(x) = \left(\frac{1 - p_0}{1 - p_1}\ri...
Hopefully this isn't too silly a question but I'm wondering how in independent component analysis when we've got independent coefficients then we identify parts of a face such as eyes, mouth, nose, etc. What exactly does the independence of the coefficients have to do with this? Isn't it more to do with the independenc...
How did we get this formula? Can you explain it with visualization if possible? $$\text{Using properties of f distribution } f_{(1-\alpha), (\nu_1,\nu_2)} = \frac 1 {f_{\alpha, (\nu_2,\nu_1)}}$$
The article plots for every 100 women that use a certain type of contraception method the number of unplanned pregnancies over time. https://www.nytimes.com/interactive/2014/09/14/sunday-review/unplanned-pregnancies.html?_r=0 In particular at the end of the article they say: The numbers are calculated as follows: $ \m...
I'm a bit stuck with the following. Assume $X$ ~$N(0,1)$ and $Y$~$N(1,1)$. Is $Y$ stochastic bigger than $X$? And the same question goes for $X$~$N(0,1)$, $Y$~$N(0,4)$.. I simply don't have a clue how to approach it. Can one please guide me? Thanks!
What are the reasons that in fictitious self-play only average(not the best-response) strategy converge to the Nash equilibrium?
As stated above, How does one show mathematically that adding many variables in a linear regression will only increase R-squared ?
I (think), I understand how LSTMs are roughly working. I need some clarifications though. Since there can be an output at each time step, the "output dimension" (in the sense of many to one or many to many, I don't know how to name it besides "output dimension") can't be bigger than the number of time steps, is that ...
Some particular independent variable has low p (high t value) as a linear regressor. That means (if I understand correctly) that I can trust it has some effect on the dependent variable, and then I look to see what effect it has. Normally I would take the coefficient from the regression output and divide it by the mean...
One thing i never really understand is why kernel trick is called 'kernel'. Kernel means: the central or most important part of something. synonyms: essence, core, heart, essentials, quintessence, fundamentals, basics, nub, gist, substance; what's the connection between above definition and 'make low dimension samp...
In almost most papers and tutorials about VAEs, the reconstruction loss term is shown in this, Bernouli ditribution cross entropy form: $$ C=\frac{1}{n}\sum_{x} (y\ln(x) + (1-y)\ln(1-x)) $$ However, it is usually said that other cost functions are also possible. What are they, and what requirements they should meet, be...
I've been asked to solve a problem for a project. I'm working on Python or R. I need to approximate a function with multiplayer perceptron (neural network). The function is: $y= 2\text{cos}(x)+4$ on the interval $[0,10]$. After reading a lot about perceptron and neural network for the approximation of functions, I foun...
Is there a way to rate the results provided by Naive Bayes algorithm? I mean, if NB detects "I love to play football" and label it as "tennis", is there a way to improve the detection by saying to NB "no, it's not tennis". Same if I want to say "that's correct!" if NB labels it as a football. I think if a detection is ...
$\newcommand{\logit}{\operatorname{logit}}$I have the following model: ${y}_{j}\sim \operatorname{Bin}({n}_{j},{\theta}_{j})$, where ${\theta}_{j}={\logit}^{-1}(\alpha+\beta{x}_{j})$, for $j=1,...,J$, and with independent priors $\alpha\sim {t}_{4}(0,2^{2})$ , $\beta\sim {t}_{4}(0,1)$. And finally we use J=10, and ${x}...
It is not very clear for me the calculation steps of PRESS statistic. What I have found: 1)we set aside the $j_{th}$ observation $⟨x_j,y_j⟩$ from the training set(It means, that we just remove the point $j$ from our model) 2)we use the remaining $N−1$ observations to estimate the linear regression coefficients $β^{−j}$...
I am working on a movie pizza data set movie data set example(single row) Date Day Elite Seats Premium Seats NOM7 UM Pizzac 11/12/2012 "Tuesday" 230 300 2 4 5 NOM7 <- Number of movies whose release day is less than 7 days till 11/12/2012 UM <- Unique Movies on 11/12/2012 Now I wou...
I'm doing a comparative study, measuring the number of times a user presses a key in 13 different scenarios, split systematically over two different interface types (A and B). Data was recorded for multiple users in a within-groups design. I'd like to test the significance of interface types on the keypress frequencies...
I applied lasso regression for variable selection, and out of 10 variables lasso selected 4 variables. fit.lasso=glmnet(x,y,alpha=1) plot(fit.lasso,xvar="lambda",label=TRUE) cv.lasso=cv.glmnet(x,y) coef(cv.lasso) Suppose after this command, we get 4 variables which have non-zero coefficient value, i.e: x1, x2, x3, ...
So we have normal scores aka rankings on the x-axis, called theoretical quantiles and on the y we have the sample quantiles, but how do we calculate them, if we assume that the data derives from a normal distribution? If the result of plot will more or less look like a linear line, then our sample derives from the norm...
I want to compare two correlation coefficients sharing a common variable in repeated measures setting. Suppose $r_{XY}$ is the correlation between $X$ and $Y$ and $r_{XZ}$ is the correlation between $X$ and $Z$. How do I test the null hypothesis that $\mathbb{E}[r_{XY}] = \mathbb{E}[r_{XZ}]$ (equivalently $\mathbb{E}[...
We have panel data and we are interested in a simple panel spatial model: $$Y_{it} = \alpha + \rho WY_{it} + \beta X_{it} + \mu_i + \epsilon_{it}$$ The maximum likelihood fixed effects estimator is what we need. How do we model heteroscedasticity in the ML function? How about autocorrelation? Can someone provide a hel...
As far as I understood, R squared explains how much the variation in Y is explained by its linear association with X. And it's used as an indicator for goodness of fit of a linear model. Then when should I use r (Pearson coefficient)? How is it useful?
I am using currently random forest and SVM for a binary classification problem. Especially with random forest it's easy to get the importance of all variables. But is it also possible to get the relevance for each variable in individual predictions? I don't need a detailed rule how the result was calculated, but whic...
I have 1000 cards on the table, R1 are red and B1 are blue. You have 1000 tokens on the table, R2 are red and B2 are blue. Each turn, you get to pick a token, and I randomly choose a card with uniform distribution. If they have the same color, you get 1 point. Either way, the chosen token and card are both thrown awa...
I have used a "adabag"(boosting + bagging) model on imbalanced dataset (6% positive), I have tried to maximized the sensitivity while keeping the accuracy above 70% and the best result I got where: ROC= 0.711 SENS=0.94 SPEC=0.21 the results aren't Inhofe especially the bad specificity. any suggestion on how to improve ...
I have a sample data whose histogram shows a two peak distribution. So I generated two distributions which is the Mixture (average) of two (1) two weibull distributions (2) two normal distributions I would like to check which of the two distributions is closer to my sample data. Is the anderson-darling test sufficient...
Let's suppose we collect a dataset $\mathcal{X}$, say $\mathcal{X} = (x_1,\ldots,x_N)$, i.i.d. samples from the R.V. $X$ with unknown probability density $p(x)$. Our goal is to estimate an expectation (i.e. a statistical functional): $$ Y = \Bbb{E}_{p(x)}[f(x)] = \int f(x)p(x)dx $$ To do this, a standard parametric...
Suppose we have two categorical variable: C and B. C has 3 levels(0,1,2) and B has 3 levels(0,1,2). Each participant is exposed to each of these variables under a latin square design such that under each session each participant experiences all the three levels under category C and also all the three levels under categ...
Say I have a panel data model with several waves: $Y= \beta_0 + \beta_1 * female + \beta_2 * employment + \beta_3 * wave + \epsilon$ where female is a dummy that takes 1 if $female$ and 0 otherwise and $employment$ is a dummy that takes 1 if employed and 0 otherwise. I am using an OLS model to calculate the predicted v...
A white noise sequence needs to have 0 mean, uncorrelated $\epsilon_t$ and $\epsilon_{t+k}$ and constant variance. A martingale difference sequence has 0 mean and uncorrelated $\epsilon_t$ and $\epsilon_{t+k}$. Is it possible to show that all Martingale Difference Sequences have constant variance? In general, is it tr...
An MA(q) model is $X_t = \mu + \sum_{j=1}^q{a_j \epsilon_{t-j}} + \epsilon_t$ where $\{\epsilon_t\} \sim WN(0, \sigma^2)$ Is it necessary for $\{\epsilon_t\}$ to be i.i.d white noise? My guess is that it is not necessary because one example of an MA(q) model is the k-period long return $r_t[k] = r_t + r_{t-1} + r_{t-2...
It's believed that at least 75% of workers in a factory are supporting a new initiative from their union. The survey says that 360/500 workers voted in favour. Can Ho (null hyp) be rejected with $p=0.75$ with $\alpha$ de $5\%$? This is my procedure: $Ho \leq 75%$ $H1 > 75%$ $1-0.75 = 0.25$ in order to get a value from ...
I'm a bit confused about something that I've seen in several engineering papers. Suppose we have a random variable $X$ with unknown distribution $p(x)$. We're interested in the value of a statistical functional $$ y = \Bbb{E}_X[f(x)] = \int f(x)p(x)dx $$ To estimate $y$, we'll collect an i.i.d. dataset $\mathcal{X}=...
In this blogpost "The Unreasonable Effectiveness of Recurrent Neural Networks" the author says, that he is training "a 2-layer LSTM with 512 hidden nodes" for character prediction. So it will look somewhat like y1 = rnn1.step(x) y = rnn2.step(y1) What I dont get: What are these 512 hidden nodes in a context of an LST...
I've read many threads on this website try to understand why we need to break the data on hand into 3 parts, the training, validation and test data set. I am still thinking it is enough just to break the data set on into into 2 pieces, i.e., the training and validation, then I can fit different models on the training s...
In the book Forecasting with Exponential Smoothing by Rob J. Hyndman it is said that the analytic formula for the forecast variance for the step h in a AAN model is $v_{n+h | n} = \sigma^2$ for $h = 1$ and $v_{n+h | n} = \sigma^2(1+\sum_{j = 1}^{h-1} c_j^2)$ for $h \geq 2$, where $c_j = \alpha + \beta j$. The forecast...
I am using a service quality survey for my dissertation (Teeroovengadum et al., 2016 HESQUAL). My sample size is 138 (studied population appr. 1100) and thus I did a factor analysis of the 48 items. I got 10 factors total, which have different number of items in them. I was interested in running a regression analysis a...
Problem: For an AR(p) process, $X_t = b_0 + b_1X_{t-1} + ... + b_pX_{t-p} + \varepsilon_t$ the Yule Walker equation takes the form $\gamma(k) - b_1\gamma(k-1) - b_2\gamma(k-2) - ... - b_p\gamma(k-p) = 0$ I wish to show that the solution takes the form $\gamma(k) = c_1\alpha_1^{-k} + ... + c_p\alpha_p^{-k}$ where $\alp...
I have a serious doubt about one characteristic of the two-sided test: Suppose we have a random variable: $ X \sim \mathcal{N}(\mu,\,\sigma^{2}) $ where $\sigma = 0.4$ but $\mu$ is unknown. We want to test: $H_{0}: \mu = 3$ against $H_{1}: \mu > 3$ The thing is, that this random variable $X$ is a Proportion. Is the...
When creating an SVM, if the training set is too large, can we use partial set of landmarks? For example, if the training set is 1,000,000, it may be too computationally hard to use SVM, since there would now be 1,000,000 new features for the SVM. Could we do something like use a random 1% of the features? We could use...
I am trying to find the dual optimization problem for the following adaptive SVM. $\mathbf{w}_t$ are the weights of the target SVM. $C$ and $B$ are regularization parameters (constants), $\mathbf{w}_s$ are the weights of the source SVM (constants) and $\mathbf{\xi}$ is a slack variable.