instruction
stringlengths
9
38.7k
I have a point on my scatter plot which seems to be the outlier. I did some calculations and the y-coordinate turned out to be the outlier among the other values of dependent variable, but the x coordinate did not. Can I still call that an outlier and omit it from my analysis?
Suppose that I have a 2-dimensional space whose dimensions are named $D_1$ and $D_2$ (such as "height" and "weight"). $N$ samples are located in this space by measuring $D_1$ and $D_2$ for each of them under a certain condition $C_1$. In this space I can compute the relative positions of the samples with some distance ...
I have bird abundance (dependent variable) data for several hundred routes, and data describing the hectares of 17 different land use types (independent variable?) around those routes. I want to determine if bird abundance is significantly higher around any of the 17 different land use types. My plan to answer this que...
I am lacking of an interpretation of the evidence lower bound (ELBO), when comparing two different samples $x_1, x_2 \sim X$. Writing the marginal log-likelihood as the sum of lower variational bound and the KL-Divergence between the approximated ($q$) and true ($p$) posterior as $L=L^V + D_{KL}(q(z|x)||p(z|x))$. A var...
I have a panel data-set across three waves (year 0, year 5 and year 10) which includes the health outcomes and behaviors of respondents. In Stata I do the following in order to prepare my data for analysis: reshape long bin_residence_y psum_unemployed_total_cont_y household_income_y health_y current_county_y binary_hea...
I'm trying to model a future balance for any time t in a list of bank accounts. I have historical balance & transactional data, and other factor data that affects the balance of an account (such as interest payments, fees, etc) that I'll try to fit in the model as well. My question is, what model/kind of model should I...
I am trying to learn Kernel density estimation, I need help to understand how the bandwidth $h$ affects the Kernel density estimator. Consider a Gaussian Kernel $k(x)~=~\frac{1}{\sqrt{2 \pi}} e^{-x^2}$. The Kernel density estimator is given by ${\hat{f}}_h (x) ~=~ \frac{1}{n} \sum_{i=1}^{n} K_h(x-X_i)$. Clearly, $k(x)$...
In the standard textbook RL setting we usually use the MDP framework where we assume that the current state is independent of the the whole history given the previous state. Obviously, in real life this is not always a valid assumption and can often become a reason for an RL algorithm failing in a specific environment....
I have difficulty understanding the meaning of stationary policy in the RL (MDP) setting. Specifically, let's assume stationary dynamics $$P(s_{t+1}=j|s_t=i,a) = P (s_{k+1}=j|s_k=i,a) \ \forall t,k,i,j,a$$ In other words, given a fixed policy, the probability of transitioning from state $i$ to state $j$ under some acti...
In this scikit-learn example, they demonstrate how to plot the hyperplane. Whilst I have some understanding of this I will ask about few basic points: What are the scattered dots? Why do we add a +1/-1 margin to the line? Are the dots on the dashed lines important? Why is this useful? How is it to be interpreted? For...
I observe 25 events over a period of 50 seconds. I assume that the events are generated by an underlying Poisson process. What is the standard deviation of the count? What is the standard error of the count? Please note that I understand the concept of a standard error for a sample mean, but am having difficulty und...
Every local minimum of a feedforward neural network with one layer and $H$ hidden units is in a family of size $H!2^H$ (MacKay 1992) (link to paper) I find it very intuitive that there are several equivalent minima. For example, by interchanging the order of each hidden unit, the output is unchanged, so from here we ...
I'm unsure how sampling is done in Bayesian Hierarchical modelling, i'm reading a book on how to use it in PyMC3 but it doesn't explain the math and i'd like to understand it. Suppose i want to estimate the parameters $\theta_{1},\theta_{2}$ and $\theta_{3}$ and i have samples $y_{1},y_{2},y_{3}$ corresponding to the ...
I am running a logistic regression in SAS where the outcome variable is a binary on sale success (IVs are: location of the customer, Vendor, handling time, experience level of sales person etc.). Either an offer was applied (sale) or it wasn't (no sale). However, the cases with the event of a sale amount to 500 and the...
I am working with data that follows Epilepsy patients from first seizure until up to two years of follow up. I'm comparing the number of MRIs they've received during their follow up between two time periods: before we established a clinic "Before Group" and after we established a clinic "After Group". I'm using a nega...
I'm trying to create an alarm system where I'm able to detect when a metric is behaving abnormally. The metric is a financial one, say EPX, Earning per Unit, which means that each unit earns money over time, and is not earnings from sale of the units. I plotted the distribution and have noted that the distribution is ...
When using the basehaz() function (basehaz() calls on survfit()), there is an option to set centered = FALSE, which means hazard are not calculated relative to the mean of the predictors, but instead to when all values are zero. This option does not appear to be present in survfit(), and when adding a centered = FALSE ...
I am cleaning data that I will use with machine learning prediction algorithms. Several of my variables in my data set are sums of other variables. eg) given variables x1, x2, x3, x3=x2+x1 or even x4= x5+x6+...x10. I feel like I should remove these variables but am not sure. Is there any reason to keep variables like t...
I am new to the Stochastic process. I am interested in identifying the description of a stochastic process. For example, Example 1: let us consider the queue at post office. Let's imagine that we observe the queue every minute. Therefore, at the n-esimo minutes there would be a number of people. We indicate the Xn the...
Are there ways to handle paired inputs in the deep neural network (DNN)? First, I will describe my problem, and then I will describe an equivalent problem in the image. We have many protein sequences (each distinct but equal length), and we don't know their functions (we know the function of some). To determine the f...
As described here and here, $\chi^2$ feature selection can be used in order to filter a set of words that have a low dependency with a given class C. In my case, I have a corpus of documents where each is assigned a sentiment (positive or negative). After pre-processing my text—stopwords, stemming and removing words th...
I was reading a paper about variance reduction techniques, where they want to create a valid correlation matrix of size $n \times n$, but with the same pairwise-correlation coefficient, therefore, every off-diagonal entries are set to the same number $\alpha$: $$ R_n = (r_{ij}) =\begin{pmatrix} 1 & \alpha & \cdots &...
In Andrew Ng's notes, he states that $p(e^{(i)}) = \frac{1}{\sqrt{2\pi\sigma}}exp \left( \frac{-(e^{(i)})^2}{2\sigma^2} \right)$ implies $ p(y \mid x; \theta) = \frac{1}{\sqrt{2 \pi} \sigma} exp\left( \frac{(y - \theta^T x)^2}{2 \sigma^2}\right)$ . I would like to know how does the first equation imply the second one....
I'm trying to figure out how to calculate clustered standard errors via boostrap when the clusters are nested. I know that when there is a single level of clustering, you sample at the cluster level rather than at the individual level. Any idea what you do when there are multiple nested levels? To be more concrete, let...
favorite I built a logistic regression model using sklearn on 80+ features. After regularisation (L1) there were 10 non-zero features left. I want to turn this model into a production model but I don't want to do all the variable modifications I done for the 80+ variables. I took the variables left in from the regulari...
When I run a regression with an interaction term (composed of one continuous variable and one binary variable) and several covariates, I get an interaction term value of -6.52. However, when I run two separate regressions for each value of the binary variable, the coefficients of the predictors are not -6.52 apart. Thi...
Looking to find geometric mean of monthly data that's been converted into quarterly data. I've tried several methods but only provide simple arithmetic mean as shown below. Thanks. monthly <- ts(mydata,start=c(1960,1),frequency=12) quarterly <- aggregate(monthly, nfrequency=4,mean) ---need geometric mean This looks p...
Adaboost is an ensemble method that combines many weak learners to form a strong one. All of the examples of adaboost that i have read use decision stumps/trees as weak learners. Can i use different weak learners in adaboost? For example, how to implement adaboost (generally boosting) to boost a logistic regression mod...
This is purely for pedagogical purposes. Here's what I've observed with "experiment design" at my workplace (We design consumer facing systems and we do A/B tests tweaking small things to see what has the highest impact, to whatever it is we're measuring. Not possible to reproduce this outside the organization): Contr...
If I normalize training data then apply the gradient descent algorithm which outputs hypothesis h(x1,...,xn), I understand that I need to also apply the same corresponding transformations to the x1,...,xn of any new test data before plugging into h if we'd like to get predictions for this test data. My question is - wh...
I've been given a question to figure out whether a company will issue a dividend based on percent profit. The mean percent profit for companies which give out dividends is 12, the mean for those who don't is 1.5. They each have a variance of 36, and the percentage of companies which give out dividends is 75. I need to ...
Adaboost prediction is the sign of the strong classifier. How can we obtain the probability of the prediction $P(y = 1 | x)$? Can we use the logistic function or some other function as follows: $$P(y = 1 | x) = \frac1{1+\exp(-F(x))}$$ where $F(x)$ is the strong classifier.
I’ve got several thousand observations in approximately 300-dimensional space, in a relatively sparse matrix (typically 30 non-zero dimensions per observation). I'm using a clustering algorithm (so far have been working with DBSCAN) to identify clusters, though my primary interest is not in the assignment of points to ...
Super-basic question here: I'm looking for a way to find the dominant cluster of a set of clusters (as in the first image): This is not what I get when I run a Gaussian Mixture model with one component (it tries to cover everything): I'm sure there's a standard approach for doing this, I just don't know what it's cal...
Does R-Squared for a random forest increase as the number of predictors increases? I have read over and over again that $R^{2}$ increases as you increase the number of predictors when the model is linear regression / ARIMA. Is this the case when using a random forest as a regression model for time series data? I ask th...
I have data that I would like to model as Normal Means, i.e. with $X_i \sim \mathcal N(\theta_i,\sigma^2)$ for $i = 1,\ldots,n$, and I want an estimator of $\theta = (\theta_1,\ldots,\theta_i)$ that minimizes mean squared error. Typically, in this setting, we would use the James-Stein estimator (which is not minimax ad...
Is there a generally acknowledged "fine" line between the meanings of the two terms "statistics" and "data science"? If not, why is "data science" seen nearly everywhere? Just want to learn about the opinion from the active scholars so that I may not embarrass myself when it comes to the subject(s) nor mislead people t...
I have 30000 image data with 5 class grading label (0,1,2,3,4). I use dynamic resampling technique. At beginning I resample each class to equal amount. Then I decrease the minor class(1,2,3,4). In the end, the ratio approach to 1:2:2:2:2 at 200 epoch. I applied densenet169 with cross entropy loss on raw image: I foun...
I am working with multiple strongly imbalanced binary data sets (# of majority class > 20x # of minority class). Although all the data sets are strongly imbalanced, the ratio of the classes differs between data sets (Ex. One data set has 360/5600 examples as minority, another has 120 out of 6400 minority). Can you can ...
In a paper about deep neural networks they say: In a general feedforward linear network described by an underlying directed acyclic graph, units can be organized into layers using the shortest path from the input units to the unit under consideration. The activity in unit $i$ of layer $h$ can be expressed as: $$S^h_i(...
Today I read an interesting statement, which I am not sure about its correctness. Assume we are looking at a data set with one column $H$ that is numeric. It has a bunch of missing values. Now let's say I just replace the missing value in column $H$ by the mean of this column (calculated by excluding the missing value)...
For a symmetric distribution with zero mean, the population MAD is the 75th percentile of the distribution I came across this statement in the wikipedia page for MAD(Median Absolute Deviation) but could not come up with anything on how to prove it? Any easy-to-understand solution or hint should be good.
Given only a sample of IID variables with unknown density $f$, is there a way to derive a nonparametric tolerance region $T$ that contains at least a specified proportion $p$ of the population with at least a specified confidence $c$ and with minimum volume? Such a region would prioritize points of high density and not...
I have a binary classification problem(benign/malicious) and I have applied simple neural network with one hidden layer for solving the problem. I have 46 features in my dataset and for the hidden layer I am using 46/2. Also my data is not scaled so for it I am using standardscaler. I am getting accuracy of around 99.7...
Apologies if it feels that my question touches more on implementation difficulties as much as a true statistical query. I have clinical trial data in long format Subject Timepoint Clinical Score 1 1 35 1 2 20 1 3 15 2 1 ...
Assume two iid random variables X and Y, with continuous and differentiable pdf $f$ and cdf $F$. Let Z=X-Y. Is the pdf of Z log-concave?
As we all know, formula for mutual information is as follows: $ I(X, Y) = H(Y) - H(Y|X) $ In case of Binary Symmetric Channel with flip probability equal to $f$ and both alphabets of size $2$: $ I(X, Y) = H(Y) - H(Y|X) = log2 - H(f) = 1 - H(f) $ I'm confused about the equality $H(Y) = log2$ a little bit. Is it always t...
A maximum a posteriori (MAP) estimation maximizes the posterior distribution using Bayes' rule and provides a point estimate. Is it correct to say that MAP is a Bayesian inference method? Or does 'Bayesian inference' only refer to methods that estimate the full posterior distribution (as opposed to a point estimate)?
I am trying to test the assumption of proportional odds in order to carry out ordinal logistic regression. I am using R, but can't seem to find an efficient way to do this. I have looked into the graphical method described here: https://stats.idre.ucla.edu/r/dae/ordinal-logistic-regression/ , but I have 21 independent ...
I'm computing partial dependence plots to visualize the relationship between predictors (including interactions) and outcome. I study patients with brain tumours and mortality is very high (90%). I use random forest (randomForest package) to perform binary classification (dead yes/no). Moreover, I use the plotmo packag...
What kind of regression shall I use for such a data set where all explanatory variables are categorical (not ordinal) and dependent variable being ordinal? Can I use classification? Thanks in advance!
I recently stumbled upon a logistic regression model with four predictors $x_1$ $x_2$ $x_3$ $x_4$, having an AUC = .800 (implemented in R glm(formula, family = binomial)). $$ ln(\frac{p}{1-p}) = b_0 + b_1 x_1 + b_2 x_2 + b_3 x_3 + b_4 x_4 $$ When a fifth predictor $x_5$ was included in the model, AUC decreased by .005 ...
I am a student working on a project whose main subject is variable selection through methods such as AIC stepwise regression, Ridge regression and LASSO regression using R. My aim is to build a simple and efficient model which tries to predict the response given a data set which contains values for 44 predictor variabl...
I'm building a classification model in R using random forest and the package caret. I'm interested in which parameters are optimised during resampling. As an example, lets use the iris dataset and fit two models - one that uses no resampling, and one based on 10-fold cross validation: set.seed(99) mod1 <- train(Species...
In Bayesian hypothesis testing, where one actually commits to estimates of the probabilities of each hypothesis, an analog of the Bonferroni correction is easy to justify. Namely, in the multiple comparison scenario, we might ask when Bayesian hypothesis testing: "what is the probability that at least one of these hypo...
I'm having a problem with this question: Record shows that the students in a certain university has mean IQ of 115 with a standard deviation of 10. A research conducted on 30 students showed a mean IQ of 110. What is the probability that the sample of 30 students will have a mean IQ less than 115? Our class came up wit...
In most spectral clustering papers I've seen (von Luxburg's tutorial, Michael Jordan's NIPS paper, and some papers that predate those), they like using the affinity matrix generated by the Gaussian kernel. It seems to me simpler to look at the spectrum of the negative distance matrix (or negative square-of-distance mat...
I have a sample mean and sd of a variable X that I suspect is log-normally distributed. I calculated the mean and sd of the variable log(x) using the equations from the Wikipedia article here. I then took these parameters for log(X) and simulated X in R using rlnorm or by exponentiating the data simulated with rnorm. ...
thanks for everybody who was reading through this. In the meanwhile i was checking in detail every line in the code. The most recent changes visible here are correct. So this question is solved. I leave this piece here for everyone who wants to take a look. In the lesson pdf of Victor Chernozhukov, i have seen that it...
I triy to find a model to study the effect of temperature on my product data, which exibits a seasonalities(Day of the week, and Month) I transformed the data using Ln and calculated the return as RT=Ln(Pt/Pt-1) I then add Seasonal Dummies for the day of the week and month I apply the linear regression and then got som...
I have a time series with lots of steps/jumps (data file here). A plot is given below. I would like to subtract an appropriate value for each of these square wave features to bring them back down to the baseline of the signal (i.e. remove the jumps so I get a smoothly varying signal). A median filter works really well ...
For a biostatistics class, I have to determine the annual probability of at least one heart attack for various groups of given data that was collected over a period of 24 years. I won't put all the data here as there are several "risk factors" in tables, but for the sake of example, I'll use incidence of heart attack b...
Is there a good paper or reference for doing multiple imputation when there is more than one outcome variable? Anything that specifically addresses building the imputation model or software to use for this imputation would be really great.
What does eigen vector with largest eigen value mean and how it has effect on covariance matrix?
Data from single machine at different times (before/after setting change). I ran 5 tests, change a setting, and ran five more tests. I got these results: A: 2209 1948 2189 2227 2225 A Average: 2160 A Standard Deviation: 119 B: 2763 3055 3117 3083 2876 B Average: 2979 B Standard Deviation: 152 How do I quantify the feel...
Could you provide a step-by-step for dummies explanation of how Hamiltonian Monte Carlo work? PS: I've already read the answers here, Hamiltonian monte carlo, and here, Hamiltonian Monte Carlo vs. Sequential Monte Carlo, and here, Hamiltonian Monte Carlo: how to make sense of the Metropolis-Hasting proposal? and they d...
The low-rank matrix approximation problem involves finding of a rank k version of a m × n matrix A, labeled $A_k$, such that $A_k$ is as ”close” as possible to the best SVD approximation version of A at the same rank level. Let's suppose $y^{*} = N_{n}(\mu_x , C_{xx})$ is the marginal distribution of the response vect...
I have been working on a project with LibSVM and have noticed there is an option to train the SVM model with "shrinking heuristics" which are used to speed up the classifier training. After doing some googling, I couldn't find anything substantial explaining what shrinking heuristics is. My understanding is that shrink...
Context A group of social scientists and statisticians (Benjamin et al., 2017) have recently suggested that the typical false-positive rate ($\alpha$ = .05) used as a threshold for determining "statistical significance" needs to adjusted to a more conservative threshold ($\alpha$ = .005). A competing group of social sc...
I am reading Statistical Rethinking (Section 4.3). When describing how to define a model for height in population the author says: To complete the model, we're going to need some priors. The parameters to be estimated are both $\mu$ and $\sigma$, so we need a prior $Pr(\mu, \sigma)$, the joint probability for all para...
There are many classes, and also there is expert rule for each class, for example ,age and student for first class and age and credit-rating for second. Is there any algorithm, that can be used to combine this rules into one decision tree like this
Let's say we have A1, A2, ... , Am different articles in the corpus and each of them has W1, W2, ....., Ww words. We are training a language model on them. Do we: Scheme 1 Take the first batch of data as first S (Number of time steps) (S1, S2, .., Ss)words from each article (for the sake of simplicity let us assume ba...
I would like to compare the effect of a treatment between two groups. My dataset is summarized in this table: Each score corresponds to a proportion (namely, the proportion of successes on a given cognitive test). How would you compare the difference of treatment effects between Group 1 and Group 2, taking into accoun...
I have bird abundances and hectares of land around ~4000 different routes. Hectares if land around each route are divided into 17 different land use types. I want to test whether the type of land around a route affects the bird abundance in that area. I know the response variable is abundance, but are hectares and land...
Since a smaller sample is needed to reach a given level of significance for a one-tailed test than a two-tailed test, why not just run two one tailed-tests on both sides? I understand that taking a one-tailed test, in many cases, makes unjustified assumptions about the direction of the effect under question, but why ca...
I have four individual groups with two controls and two interventions. The second control group is specifically related to the first the intervention group, making the comparison to the second intervention group unnecessary. Differences between the groups are being analysed by the Kruskal-Wallis test followed by Dunn'...
In machine learning context, suppose I have 100 observations which will be split into training and validation set (say #1 ~ #100) and totally separate 100 observations for test set (say #101 ~ #200). Suppose there is no order in the observations #1 ~ #100. I tried 5 different split. Model 1. #1 ~ #20 as validation set ...
Is it possible to train neural networks such that certain activations are rewarded and some other activations are penalized? In other words, I would like the network to generate preferred values more often. An examples of this would be: Assume that a neuron has 25 inputs and the values of inputs are restricted to [-1, ...
I did an experiment by feeding three diets (PK, HG and Control (C)) to an insect species. These three diets were offered on two different substrates (PAM, PDA). And I used two parameters to measure which diet is best, 1) developmental time of insect, 2) No. of adults reaching to adulthood. Now I was wondering which te...
Consider a MA system $$y[k] = x[k]+a_1*x[k-1] + a_2*x[k-2] + a_{9}*x[k-9] + n[k] \tag{1}$$ where $n \sim N(0,\sigma^2)$ is Additive White Gaussian Noise and $x$ is a zero mean Gaussian white process of unity variance. In this model only 3 coefficients are non-zero whereas the rest are all zero or close to zero. I shou...
I am trying to do a linear regression with 6 independent variables and 1 dependent variable. I used this formula in R to run the linear regression: multilm<-lm(insdata$Payment~insdata$Bonus+insdata$Make+insdata$Kilometres+insdata$Zone+ insdata$Claims+insdata$Insured) > summary(multilm) My results don't look right co...
Here is a problem that I am looking at. Is this model really commonly known as a Gaussian mixture model (the one often appears as an illustration of EM algorithm)? I am confused because Gaussian mixture model (as far as I know) is usually formulated using latent variable, and density function will usually involve som...
Is simultaneity the same as heterogeneity? Are both sources of endogeneity and hence bias? As far as I understand, simultaneity bias arises when both variables are determined from within the model where as heterogeneity bias is differences across observational units which causes the error term to be correlated with the...
Generally in supervised machine learning algorithms, the model performance is measured splitting train, test, validation set. But in case of unsupervised method , like autoencoder, is it necessary to have such split ? Can't the training dataset itself be a test set to evaluate its performance ?
I have two measurements from two different distributions. I know both of these distributions are binomial and I measure $k_1$ successes from $n_1$ trials for distribution 1 and $k_2$ successes from $n_2$ trials from distribution 2. From this, I estimate the probability parameter for each distribution as ${p_1} = \fra...
I have a dataset of 100 000 examples. Only 1% are positive (1000 examples). I want to predict the probability that a positive event happen. To do that I have built a 4 layer DNN (Linear W*x+b -> ReLU)with a sigmoid single unit output layer. I calculate the loss using the mean_squared_error loss function and an AdamOpti...
You have a closed box with 10 red balls, 10 white balls and 10 blue balls. (Otherwise the balls are identical.) Without looking in the box, you pull out exactly three balls. What is the probability that the three balls will all be a different color (i.e. 1 red, 1 white and 1 blue)? The order of color does not matter, o...
I was doing studies in reinforcement learning and trying to apply it in Computerised Adaptive Testing (CAT). While learning IRT, I felt it is similar to behaviour of RL setting - receiving feedback and adjusting parameters(or learning) in each cycle. Is Item Response Theory (IRT) a form of reinforcement learning? Can I...
I need to perform a t-test at the 0.05 significance level to test whether two coefficients are significant. My degrees of freedom are 96. When looking for my t-critical do I need to affect my level of significance since I am testing for the significance of two coefficients in the same test ?
So I'm reading about the derivation of the variance for normal distribution and I don't understand the following derivation with the use of gamma function. So, if I continue this derivation the integral becomes $$ 2\int_{-\infty}^\infty ue^{-u}du\ $$ which is clearly not gamma function (in gamma function integral goes...
I have my feature space that is Year Month Day Hour Minute Second Lane Direction Speed Flag A sample vector would look like: [2015, 11, 5, 2, 20, 58, 4, 2, 45.7, 2] The features take the values: Year : 2012 - 2017 Month : 1 - 12 Day : 1 - 7 Hour - 0 - 23 Minute : 0 - 59 Second : 0 -59 Lane : 1 - 6 Direction : 1 - 2 ...
While training my own custom dataset with DeepMask model, accuracy is reaching 99.5 percent. When I compute proposals using this model, the results are good but still not commensurate with the accuracy. I am doing wound detection and I have 1500 images. Maybe it is because my custom dataset has only one class. So if I ...
I would like to understand the functional form of the Generalized Pareto distribution (GPD) presented in Wikipedia. My questions are: what is the rationale for replacing $z$ with $\frac{x-\mu}{\sigma}$. Also, in Picture 2 in the last paragraph it is mentioned " ... extend the family by adding the location parameter $\...
I am having a mighty difficult time interpreting the following results given to me based on a generalized linear model with a Poisson distribution: Data: data represents the number of visitors to a store and whether their visits were necessary (they really needed something) while they were store members or not. Compa...
I am trying to understand the relation between population/probability space/sampling. My arguments are divided in 3 sub-questions which trace my attempt to link in a logical way the three concepts. I am using an Economic example, but I regard my question as generic. Consider a target population of individuals; for eac...
I'm having some trouble with a Confirmatory Factor Analysis (CFA) and my data. I use a scale of 16 items in which one item always belongs to two out of four latent factors (SE, CE, Goal, indicated by a "g", and Others, indicated by an "o"). If I add a factor for inverse items (_u), the CFA proves a good fit. However, R...
In class we've seen that $a$ (the weights) must satisfy $$X^T (y-Xa) =0$$ Here $X$ is a $(n\times d)$ matrix (so we have $n$ samples in $\mathbb R^d$) let's denote the residuals $r = y-Xa$. In our class notes, it is written that The normal equations require the residuals to be orthogonal to each of the columns of $X$....
I'm currently trying to get the basics of Pytorch, playing around with simple networks topologies for the fashion-MNIST dataset. However, when I record the loss of those models after each epochs, it seems its going up rather than going down. Here is a graph of those series : You can find my code in this repo : https:/...
In the gradient descent method, the learning rate (which is multiplied by the results of the gradient on each weight) identifies the size of the step (steep down) that the algorithm takes in each iteration to reduce the objective cost function. How does it differ from the parameter momentum? Thank you
I have been taught about the partial correlation coefficient. I later read that there is alao such a thing as a conditional correlation coefficient, and that these are not the same. What is the difference between the two?