instruction
stringlengths
9
38.7k
Consider the primal SVM problem: $$ \frac12||w||^2 +\frac Cm \sum_{i=1}^m \max(0,1-y_iw\cdot x_i) $$ We want to find a solution with a bounded norm, by using SGD with a projection onto the convex set: $ K=\{x | ||x|| \le R \} $ Concretely, the update step would be $w_{i+1}=\Pi_K(x_i-\eta_i \nabla f(x_i))$, where $\Pi_K...
in this paper ( http://www.cs.ucr.edu/~eamonn/kdd98.pdf) the author references a set of methods on how to deal with the time series similarities, specifically: now, I am interested in each problem but I failed to find the resources. So, what can be done in each case? or can you point me to the link of the papers (exce...
Going through some discussion on the classic dice roll or coin toss sequence. According to traditional probability theories, there is no connection between not rolling a 6 on the first dice roll, and getting a 6 on the next roll. The probability will be the same - 1/6. Each event is classed as being independent. Howeve...
I am trying to do regression for the first time using qualitative and quantitative data using scikit learn. I want to find correlations between user demographic features like age range, country, gender (all categorical), account age (numerical) and their overall listening time (numerical). I am considering one-hot-enco...
Suppose I have a sequence of iid random variables $X_1, \ldots, X_n$ following the pdf: $$ f_\theta (x) = \theta x^{\theta-1} $$ for $\theta >0$ and $0 <x<1$. I would like to find a sufficient statistic $T(X)$, such that the family $f_\theta (x)$ has a monotone likelihood ratio (MLR) in $T(X)$. I do this by having: $$ ...
There is a well known classical result called Cramer-Rao bound: https://en.wikipedia.org/wiki/Cram%C3%A9r%E2%80%93Rao_bound Particularly, it is a lower bound for a variance of any unbiased estimate. The question is about to things: Is there always an estimate which reaches this bound, i.e. does there always exist $\...
I am writing here because I would like you to help me understanding how to interpret and correctly use the correlation matrix. From the book of Taylor, "Introduction to error analysis" I can easily understand that in a regression of a set of experimental values $x_i$ and $y_i$ ($i = 1, \dots N$) with a linear function ...
This is a very simple question. When I back transform log transformed coefficients it usually looks like this: exp(interceptvalue) + exp(paramter1 coefficicent) When I want to back transform the standard errors. Do I do the same thing? Or do I just have to backtransform it like this: exp(paramter1 std.e) I guess my q...
I have a problem that I was able to reduce to the following statement: What is the probability of throwing at least k ones when throwing n fair six-sided dice and m fair eight-sided dice? Background information can be found at this Math.SE question if you are interested. After initially not finding anything when goog...
For the XOR problem, 2 decision boundaries are needed to solve it using 2 inputs neurons, 2 hidden neurons, 1 output neuron. From the book "Neural Network Design" on page 84, the author says that "each neuron in the network divides the input space into two regions." In the xor network, there are 3 neurons excluding th...
In the following, scalars are denoted with italic lowercases (e.g., $k,\, b_f$), vectors with bold lowercases (e.g., $\mathbf{s},\, \mathbf{x}_i$), and matrices with italic uppercases (e.g., $W_f$). Objective A Gaussian process (GP) is defined as a collection of random variables, any finite number of which have a join...
For linear regression: If the variable is right skewed, a log transformation of the data is suitable. If the variable is left skewed, square, cubic or higher powers is suitable. Source: http://fmwww.bc.edu/repec/bocode/t/transint.html For the independent variables: I applied higher powers for my left skewed data, but t...
I had a interview on deep learning internship job yesterday, and the interviewer showed a loss function formula(below) and asked me 2 questions: \begin{equation} J(\theta)=-\mathbb{E}_{x,y\sim\hat{p}_{data}}\log{p_{model}(y|x)} \end{equation} How to understand $p(y|x)$ in the formula above? On what task does this loss...
My response variable is accuracy (0 or 1) with 10 trials per subject. I thought about treating the response variable as a percentage and logit-transforming it to deal with its boundedness so that the predicted values were sensible, but this doesn't deal with the non-normality of the errors due to a large number of zero...
I found the dynamical system definition of ergodicity to be very intuitive: $T$, a measure preserving transformation wrt $(\Omega,\mu)$ is ergodic wrt $\mu$ if for all $A \subset \Omega$, $T^{-1}A = A$ means $\mu(A) = \{0,1\}$. When I approach Markov chains, my reading is that we have to consider the measure space for ...
Consider the following model: $${\bf y} = {\bf X}{\bf b} + {\bf e}$$ where ${\bf y}, {\bf n}\in {\cal R}^m$, ${\bf b}\in{\cal R}^n$, and ${\bf X}\in{\cal R}^{m \times n}$ where $m>n = {\rm rank}({\bf X})$. ${\bf e}$ is an error vector (with independent, identically distributed components of zero mean and variance $\si...
In the single-layer perceptron, the weight update rule is given by:- $w_j := w_j + (y^{(i)} - \hat{y^{(i)}}) \times x_j^{(i)}$, where $w_j$ is the weight of the $j$th feature, $y^{(i)}$ is the actual output for the $i$th training example, $\hat{y^{(i)}}$ is the predicted output for the $i$th training example, and $x_j...
I am going through the problems in the Stanford NLP deep learning class's written assignment problems http://cs224d.stanford.edu/assignment1/assignment1_soln I am trying to understand the answer for 3a where they are looking for the derivative to the vector for the center word. Assume you are given a predicted word ve...
Assume A and B are two independent random variables with known distributions (say Normal). I am interested in simplifying the following probability into a closed form formula. $$Pr(A \lt 0 | A+B \geq 0)$$ I tried $P(a|b)=\frac{P(a \cap b)}{P(b)}$ and some other probability rules but could not achieve a nice closed form...
In the ML learning textbook I am working through, it says, that for NLP we construct a feature vector from the Text via the Bag of Words model. For that, we are using from sklearn.feature_extraction.text import CountVectorizer count = CountVectorizer(ngram_range=(1,1)) docs = np.array(["The sun is shining", ...
Let $X_{1},X_{2},X_{3}$ be independent uniform random variables over (0,1). Find $E[\frac{X_{1}+X_{2}+X_{3}}{X_{2}}]$. Is there any idea for this?
Suppose there are two parameters $\theta$ and $\eta$. I have shown that $\theta\in(\eta_{\min},\eta_{\max})$ if statement $A$ holds. Let $\hat{\theta}$ and $\hat{\eta}$ be the MLE's of $\theta$ and $\eta$ respectively. Can I say that if $\hat{\theta}\not\in(\hat{\eta}_{\min},\hat{\eta}_{\max})$, then statement $A$ does...
If a password can be anything from 00A0000A to 99Z9999Z is it right to say that the number of possibilities is ? 10 * 10 * 26 * 10 * 10 * 10 * 10 * 26 = 676 000 000
I see different names for variables in different contexts and I am confused. Can you help me understand the differences between: Variable Predictor Covariate Explanatory Variable Independent variable Are these different and if so how? Also, do these have different meanings in different analysis (e.g., ANOVA, Regress...
Wikipedia mentions that "A belief state can be calculated at each time step, but doing this does not, in a strict sense, produce the most likely state sequence, but rather the most likely state at each time step, given the previous history". I got confused while reading above line, if at every consecutive time step, we...
One of the assumptions in simple linear regression is that the error term is supposed to be normally distributed. Now, I found on the internet the following quote: "You’ll notice there is nothing similar about Y. ε’s distribution is influenced by Y’s, which is why Y has to be continuous, unbounded, and measured on an ...
In Ian Goodfellow's deep learning book page 177, the authors motivate the functional form of the sigmoid by normalizing $z$, a linear function of hidden units $h$, $z = w^T h + b$. Unnormalized, $log(P(y)) = yz$ Exponentiating both sides and normalizing: $P(y) = exp(yz) / \sum_{y'=0}^1 exp(y' z) = \sigma((2 y - 1) z)$ ...
I'm working on the two-moons data set, in which we can achieve a perfect discrimination, the classes are separable. I'm using the RBF kernel, and as a consequence, i have to tune the gamma parameter. I noticed that, when gamma is very small, the number of vector support is very important, and the separation will be lin...
If we have a balanced factorial designed experiment where each variable is taken in 2 levels (+1,-1) and we don't have estimates of each proportion for each factor level combination like we did in this question: Simulation of logistic regression power analysis - designed experiments, what is the best approach for deter...
I'm new to applying Bayesian parameter estimation techniques in my research and am also hoping to help others in my area transition from frequentist to Bayesian methods. One thing that I am hoping to locate is several reference examples from the psychology (preferably social, health, or organizational psychology) or co...
I am trying to model two variables showing a non-linear relationship, as shown in the scatterplot below, with a Generalized Additive Mixed Model in R (package 'gamm4). The data represents roughly 15 years of data about wildlife monitoring, across more than 150 areas. The response variable does not follow a Gaussian di...
I'm looking to identify the effect size in mediation studies. My supervisor has told me that I should be looking for r2 but I've noticed that many studies don't report this. For example, I have attached a publicly available paper which reports a mediation study but no r2 values. I'm wondering what data available here w...
I am working on a perception survey of a nationally-representative sample ($n=1243$). I want to calculate the margin of error for each question. A typical question is coded like this: 1. very good 2. good 3. bad 4. very bad 98. refused (vol.) 99. don't know (vol.) I believe I know how to calculate the margin of erro...
I know how to interpret residuals in a linear regression model. I am now working in a model that predicts a binary target combining numerical and categorical variables. My residual plots is as follows: If this were residual plots from a linear regression model I would be able to interpret them and notice that they ar...
Suppose I have a task X which is perfectly solvable by a Feed-Forward Neural Network. When I apply a Recurrent Neural Network to the same problem, may it "loose" it's internal loop-/backward-links (setting them to 0-weight during learning), basically becoming a Feed-Forward Neural Network? Is a Recurrent Neural Networ...
I am analyzing a group of related time-series variables, and am wondering the best way to think of in-group correlations. For example, suppose that my population is daily leaf-fall for all trees. The subgroup of all Quercus Nigra trees in Whateverton, Georgia are all very highly correlated in the sense that, on any g...
I am working on the following problem and I don't know where to even start. Say that I have a random variable $X$ whose distribution is given by an unkown $F$. I have the following sampling process: For $n = 1,\dots, N$ draw $x_n$ from $F$. We do not observe $x_n$. Given $x_n$, draw $J_n$ (some number that might diff...
What would be the distribution of the following equation: $$y = a^2 + 2ad + d^2$$ where $a$ and $d$ are independent non-central chi-square random variables with $2 \textbf{M}$ degrees of freedom. OBS.: The r.v.'s generating both $a$ and $d$ have $\mu = 0$ and $\sigma^2 \neq 1$, let's say $\sigma^2 = c$.
Let's say I have a database to track my customers. On any given day, a customer is active or non-active, and I can discover this in real-time by querying the database. So, right now, I can easily find out that I have X active customers. What I can't do is discover how many customers I had on July 5, 2014, for example. ...
I know that the Diebold-Mariano test is simply testing whether two forecasts are likely to forecast with the same accuracy (null hypothesis) or not (reject the null) based on some loss function. But if the null is rejected, how to infer which of the two forecasts is better? Using loss functions and compare? For example...
I asked users to complete a likert survey (1-5) at the start of an activity and at the conclusion of the activity. What is the best manner to show the rate of change/difference between these two result sets? I was considering a Pearson correlation, but after thinking about things more I don't believe that it is the mos...
I am working in ramdom effects model. when I compute the within-study variance/between-study variance, I find the negative value. Can? for this model. If we find in simulation how should we do? Thanks.
I am writing this question to ask about the mathematical principle behind ANOVA. My knowledge of ANOVA comes from a business statistics text book, as one can imagine, it won't go too deep into the underlying principles. I understand the mechanics of computing the F statistics, I am having a hard time to understand why ...
I'm working on a regression of a data set that involves people playing multiple roles. For example, a single person can be a manager, a department head, and a corporate officer at the same time. I want to understand how each of these roles factor into total compensation per employee. My initial approach was to have a d...
I am trying to do linear regression to predict the time a user spends listening to music using the following dataset: My end goal is to know which characteristics or columns lead to higher listening. (Sum is the total listening time) I was thinking of using PCA before linear regression because there were so many colum...
I am interested in a regression application where my kernel is of the form \begin{equation} k(t,t^{\prime}) = k_s\left(\phi(t),\phi(t^{\prime})\right)= k_s\left(\phi(t)-\phi(t^{\prime})\right), \end{equation} where $k_s$ is a stationary kernel. I came across this paper (section 5) which classifies such kernels as r...
I tried to do a OLS linear regression and got the following error message the end of the output: "2 The smallest eigenvalue is 1e-25. This might indicate that there are strong multicollinearity problems or that the design matrix is singular." I thought regression was supposed to solve/account for multicollinearity. S...
I have a collection of documents and want to detect a hierarchy of named topics from them, what are the pros/cons for using hierarchical latent Dirichlet allocation (h-LDA) over hierarchical agglomerative clustering (HAC)?
I want to know the difference between linear regression in a regular machine learning analysis and linear regression in "deep learning" setting. What algorithms are used for linear regression in deep learning setting.
I've set up a measurement system that allows me to measure thousands of different elements, all of which have potential to be used in a regression model. My aim is to create a model that can predict a target (dependent) variable. Making the thousands of measurements is cheap. What is expensive is measuring the targe...
In the paper "When Is 'Nearest Neighbor' Meaningful?" we read that, We show that under certain broad conditions (in terms of data and query distributions, or workload), as dimensionality increases, the distance to the nearest neighbor approaches the distance to the farthest neighbor. In other words, the contrast in d...
Hastie and Tibshirani mention in section 4.3.2 of their book that in the linear regression setting, the least squares approach is in fact a special case of maximum likelihood. How can we prove this result? PS: Spare no mathematical details.
I've got some data that I've calculated cumulative proportions and standard deviations for, and when I plot it I'm seeing some patterns I wasn't expecting. Is something wrong with my code, is there some statistical thing going on I don't understand, or do I need to look at my data collection methods? Here's my data. It...
Given observations of circular cross sections of a spherical cell ${R_1,R_2.......,R_n}$, with $R_i<R_{i+1}$, find a best estimate of cell(sphere) radius $r$, given that the distances $\sqrt{r^2-R_i^2}$ (say $X$) are uniformly distributed. I tried to find the distribution of $R_i$ from $X$ as $F(X)=P(X<=x) = \frac{x}{r...
I have created a random forest object in R (using the randomForest package) with ntree = N. Now I would like to predict some new data on it using a subset of N, that is using only n trees for the prediction. Is this possible? For the random forest object the forest is located at fit$forest, but I don't know how to ex...
Can someone explain following four machine learning problems: binary classification, regression, multiple independent binary classification, and 1-of-K multiclass classification. Please use set and numerical domain notation to denote the input and output spaces of each problem. Quite confused at these concepts. When ...
I have two time series: 1) Which only contains historical data for production 2006-2011 on a monthly basis. 2) Which contains both historical and projected flow data 2006-2057 on a monthly basis. I would like to use VAR to use the flow data as a predictor for the production. My problem is that the data is seasonal and ...
Let $U_{1},U_{2}, U_{3}$ be independently standard Uniform distributed. I want to find $P(\sqrt{U_{1}}+\sqrt{U_{2}}+\sqrt{U_{3}} \geq 0.8)$. I would like to solve this problem with simulation: Hence, I would have proceeded like that using R: set.seed(1447) stunif_d <- function(N=10000000){ U1 <- runif(N) U2 <- runif(N)...
on the wave of the suggestions given to me on this topic I started (time series similarities: which techniques for each transformation?) I decided to give another try at Dynamic Time Warping but I newly found myself at "en empasse" due to the fact that DTW is unable to capture basic structures in the data. Example: I ...
I am reading the work by Belloni et al (2014), see the name in the title (weblink here). What I understand is that they assume that the outcome can be well approximated by a small/sparse set of controls but the researcher does not know which those controls are from a high dimensional set of possible controls. They outl...
I want to use PCA to reduce SIFT (128 dims) and VLAD vectors (128*k dims, let's say k={64, 128, 256}) dimensions as described in this paper. SIFT descriptors can have integer values (by default in VLFeat) or float numbers (by default in OpenCV). In both cases, SIFT vecotrs have always positive values, while VLAD vector...
I am going through R's function indeptCoxph() in the spBayesSurv package which fits a bayesian Cox model. I am confused by some of the input parameters to this functions. (I also had some questions about the R code which I have posted separately on Stack Overflow: Stuck with package example code in R - simulating data ...
In the very beginning of a video made by Andrew Ng (Associate professor at Standford), it is said that "the learning curves can help to diagnose whether a model is suffering from a bias, a variance problem or a bit of both" My question is concerning the addition of the "bit of both" to the sentence above: How can an al...
I have created couple of graphs in R d5 <- scan('d500.txt') p1 <- acf(d5,lag.max = 36 ,type = c("covariance"),plot = TRUE) Then the next one is correlation p1 <- acf(d5,lag.max = 36 ,type = c("correlation"),plot = TRUE) And pacf p1 <- pacf(d5,lag.max = 36 ,plot = TRUE) If I take a one difference operation d51 <- ...
Let $X$ be a non-negative random variable with continuous density $f(\cdot)$, finite mean $\mu > 0$, and finite variance $\sigma^2$. I am interested in providing an upper bound for $\int_{a}^{\infty}x f(x)dx$, for $a > \mu$. Here is a very crude approach: $\sigma^2 + \mu^2 = \int_{0}^{\infty}x^2 f(x) dx$. Thus \begin{a...
I want to apply a Zero Truncated Poisson regression in R. It works so far with the following Code: require(VGAM) m1 <- vglm(howoften ~ TTCALL, family = pospoisson(), data = data) summary(m1) Call: vglm(formula = howoften ~ TTCALL, family = pospoisson(), data = data) Coefficients: Estimate Std. Error ...
Welch Two Sample t-test data: sample1 and sample2 t = 2.658, df = 95.421, p-value = 0.009217 alternative hypothesis: true difference in means is not equal to 0 95 percent confidence interval: 0.01615943 0.11150922 sample estimates: mean of x mean of y 0.5585566 0.4947222 I have this result for a T test using t.test...
I am wondering what is a suitable measure to separate the blue, green and red points? I tried 'cosine' but some of the red gets confused with green. My goal is to make two generative models; one for blue points and one for green points. EDIT As suggested by the first comment, the same plot is drawn in polar coordinat...
Say I have an observational dataset over 20 years with blood-pressure measured each year for 1000 men. Each year a decision is made whether to start antihypertensive drug A, drug B or continue without medication. This decision is based on the blood-pressure, but the exact bloodpressure threshold is left at the discret...
The dendrogram was obtained using SPSS, the Nearest Neighbor method alongside the Squared Euclidian Distance. It groups together glass fragments from 3 different origins but I have difficulties with the number of clusters, can anyone help? Thank you in advance!
GOAL Graph represantation of "similarity" between key phrases based on documents that mention it in their text, in form of simple graph. I'm working on vectors, of different length, each value in it as a pair {keyWord,strength}. Every document has such a vector created. Therefore it's not a problem to put it into a 2 ...
Say we want to do OLS on $m$ samples $(x_i,y_i)$, where $(x_1,y_1), \ldots, (x_{m-1},y_{m-1})$ have the relationship $y_i = \beta \cdot x_i$, but $(x_m,y_m)$ does not. Specifically, $(x_m,y_m)$ is an outlier where $||y_m - \beta \cdot x_i|| = c$. Can we quantify the effect that this outlier will have on our estimation ...
While most books and papers on Probability Graphical Models (PGMs) describe a nice representational method for Bayesian Networks BNs (and/or Dynamic Bayesian Networks DBNs), where a Joint Probability Distribution/Table (JPD)/(JPT) computation is factored into individual Conditional Probability Distributions/Tables (CPD...
I want know the formulas for the information highlighted in the confusion matrix in the picture below:
Suppose I want to determine the effect of an intervention on a health score. I do not have the means to design an experiment to randomly assign people to the control and treatment groups. The way I recruit people to apply for the intervention is by mailing advertisements to their homes, or going to hospitals and giving...
Suppose I have a random response Y and a fixed predictor X. My model is \begin{align*} Y &= \frac{aX}{b + aX} \end{align*} where $X, Y, a, b > 0$. I have a sample $Y_1, ..., Y_n$ and n is very large. In my problem domain most people fit a nonlinear least squares model on \begin{align*} Y &= \frac{\beta X}{1 + \bet...
Imagine if I have a game that dynamically increases or decreases the difficulty between levels each day and players can choose when they want to play/quit. Additionally, the players always get to see the changes in the difficulty level for the last 365 days so they might be able to guess that there is a local minima/ma...
In this paper by Thomas Minka the author gives the following example : Suppose you, a Bostonian, have entered the New Hampshire lottery along with 999 people from New Hampshire. The prize will be awarded to exactly one of the 1000 people. By sheer luck, you obtain a computer printout listing 998 participants; each name...
Here's my situation: The equation for a simple linear regression model (below) was calculated and the summary output for the model was produced (below). The task is to calculate all equations by hand; however, for the sake of other users, I incorporated the data in R format too. Linear Regression Model: ...
Equation 5.30 of The Elements of Statistical Learning states that the penalized log-likelihood for a nonparametric logistic regression is: \begin{align} l(f;\lambda) &= \sum_{i=1}^{N}\big[y_i\log p(x_i) +(1-y_i)\log(1-p(x_i))\big] - \frac12\lambda \int{f''(t)}^2dt \\ &= \sum_{i=1}^{N}\big[y_if(x_i) - \log(1+e^{f(x_i)}...
I am trying to implement one-vs-all logistic regression by myself on a small dataset that I have already divided into 8 folds (I do not want to use nnet::multinom). I have 14 classes and as many as about 90 features. I have create 14 different logistic regression models for each of the classes. The probabilities I am g...
When using the glm function in the stats package with ordinal variables data$X1 <- ordered(data$X1) data$X2 <- ordered(data$X2) data$X3 <- ordered(data$X3) data$X4 <- ordered(data$X4) data$X5 <- ordered(data$X5) data$X6 <- ordered(data$X6) glm(Y ~ X1 + X2 + X3 + X4 + X5 + X6, data = data) Coefficients: E...
I am using SPSS for analysis of my data using general linear model for univariate ANOVA with 3 independent factors (2 levels each), one random ordinal factor (4 levels), and 1 covariate. I saved the residuals and tested for normality with Shapiro-Wilk and Anderson-Darling tests, but the residuals are non-normal. I read...
I have been thinking about this for about 2 hours now and I don't see my error. In Time Series Analysis by Hamilton it is stated that the MLE of a normal distribution can be obtained by regarding the observed sample of size $n$ as a signle draw from the joint distribution. This intuitively clear since the ML estimation...
I am reading through the Hamilton book on Time Series Analysis. There are numerous references to estimation of models using both exact log-likelihood estimation and conditional estimation. From what I've gathered so far exact likelihood estimation has to be done with any number of numerical optimization techniques. Ho...
I program and do test-driven development. After I made a change in my code I run my tests. Sometimes they succeed and sometimes they fail. Before I run a test I write down a number from 0.01 to 0.99 for my credence that the test will succeed. I want to know whether I'm improving in predicting whether my test will succ...
In a cosmological simulation, we are calculating a physical quantity at different times from 3 different viewing angles; that is at any particular snapshot or epoch, we have three output numbers for the physical quantity. From each run, we have one time array including its error (called x and xerr) and one physical qua...
I am writing some code that uses a Least-Squares estimator. Of course, as mentioned HERE, the covariance matrix can be obtained from $\sigma^2(X'X)^{-1}$. The problem I have, is that I have no idea how to get the constant factor. As the number of measurements goes up, the covariance seems to converge to the correct v...
Let's say I have a random variable B transformed from a standard normal distribution. When the value is larger than 1, it is set to be 0. Is there an analytical way to get the expectation of random variable B?
Let the model $$y_t=\beta_0+\beta_1t+z_t\qquad t=1,2,\dots$$ $$z_t=\epsilon_t+\theta\epsilon_{t-1}$$ where $\epsilon_t$ is White noise with zero mean and variance $\sigma^2$ and $\beta_0,\beta_1,\theta$ constants. a) Is $y_t$ stationary? b) Is $(1-B)y_t$ stationary? (where $B$ is a lag operator) This model can ...
I have a set of data associated with ~60 individuals. For each individual, I have sequence data for a number of different genes. I have performed clustering analysis (using affinity propagation) for each gene, based on the number of pairwise differences between sequences. This means that for each gene, I have a number...
Given a neural network as following \begin{align*} &J = CE(y,\hat{y})=-\sum_i y_i log(\hat{y}_i)\\ &\hat{y} = softmax(z_2)\\ &z_2 = hW_2+b_2\\ &h = sigmoid(z_1)\\ &z_1 = xW_1+b_1 \end{align*} and $$\frac{\partial J}{\partial z_2}=\hat{y}-y=\delta_1$$ where $W_1 \in \mathbb{R}^{D_x \times H}$, $b_1 ...
My personal experience with ML is strictly tied to Coursera ML class. Most of their classes are really good, but I never figured out how to apply it to my data. My question is; I have a lot of user event data that basically says, this user clicked on A,B,C and views page X,Y,Z. My data is nested with users and all thei...
I use R to run neural network model, but The Rsquared is too low. I have tried different learning rate, threshold and neurons but still the R-square is below 50%. Is there anything I can do to improve this condition? My code: formula.bpn<-Y~X1+X2+X3+X4+X5+X6 bpn<-neuralnet(formula = formula.bpn, data = data, hidden = ...
Summary: Given a non-Euclidean distance matrix in which some entries represent replicate observations of an entity, is it (statistically) valid to calculate the arithmetic mean of pairwise distances across replicates? Details: From a matrix of sample by species incidence, I have used a non-Euclidean distance metric (an...
I am trying to build and train a neural network to recognize letters of the alphabet and numbers based upon their design using a seven segment display where each segment of the display is one input into the neural network ( I am using the basic prop simulator). I am just a bit unsure about of how to represent the inpu...
I tried replicating the stochastic vol example in the pymc3 documentation, but using a larger dataset. NUTS was taking too long, so I tried ADVI. from pandas_datareader import data import pymc3 as pm import pandas as pd returns = data.get_data_yahoo('SPY', start='2008-5-1', end='2016-12-1')['Adj Close'].pct_change()...
Here is an interesting question I came across: Suppose you want to design a multiple choice test with $M$ questions. Each question has $4$ alternatives, out of which only one alternative is correct. How large will you take $M$ such that you can distinguish between a good student and a bad student? This is the questio...
In the output for Choice-based conjoint, there are some significant and some insignificant output utilities. When calculating attribute importance (using the difference formula), should I exclude insignificant variables? Or should the calculation include all variables regardless of statistical significance?
Is the Kaiser rule (choosing only PCs with eigenvalues >1) a suitable method to select the best principal components? What are its pros and cons?