instruction stringlengths 9 38.7k |
|---|
The problem is from [ISLR][1] Problem 5.R.R2. The data is here.
Consider the linear regression model of $y$ on $X_1$ and $X_2$. Next, plot the data using matplot(Xy,type="l"). Which of the following do you think is most likely given what you see?
The answer is:
Our estimate of $s.e.(\beta^1$) is too low.
The expl... |
My data look like this: The dependent variable is score on a language task (numerical). I have $2$ between subject variables:
age (young vs old: categorical)
language (monolingual vs. bilingual: categorical)
Then, I have $3$ within-subject variables (task conditions):
verb type (2 values: categorical)
focus (2 val... |
The frisch-waugh-lovell theorem uses the following line in the proof:
$\hat\beta_2 = (X_2' M_{1}X_2)^{-1}X_2'M_{1}y$
How do we know
$(X_2' M_{1}X_2)^{-1}$
is invertible?
|
I have a set of outcomes $\{A, 2A, B, C\}$, which on a roll appear with probabilities $\{0.10, 0.15, 0.40, 0.35\}$ respectively.
How many rolls do I need to get 30 $A$ elements?
|
for example, 30 events during 10000 person-years, the cumulative incidence rate is 3 per 1000 person-years, how to calculate its 95% CI?
|
I am going to compare means of two groups (Male, Female) from my complex stratified sample.
I have scores of 3 subjects of more then 3000 respondent for each subject.
I checked for normality and get the following picture:
i.e data for groups isn't normal in all three cases.
Therefore I can not use the tests of hypot... |
I am looking to correctly name something.
Often when I have my data, I calculate a "value". For instance a moment like the mean value, or a quantile. Or I aggregate a continuous variable into say 5 categories. For instance, for a time series I would calculate the mean value or some wavelet coefficients.
Then I use all ... |
I find this paragraph in "Intelligent Systems and Applications: Extended and Selected Results from the ..." book that discarded some data from dataset because they were not acceptable by the MATLAB ANFIS and sigma was zero.
My question is which type of data is in this condition?
Illegal parameters in fisGaussianMF() -... |
PCA operates by the following principles/constraints
Principal components are orthogonal basis vectors spanning the original feature/variable set
Principal components maximize variance between observations
Questions:
1. Is there an analysis or manipulation of PCA to achieve the following?
Principal components are or... |
In my view, it is almost impossible to successfully optimize both accurate prediction of previously unseen observations, and understanding of the phenomenon. Better to focus appropriately.---ljubomir
ljumboir wrote this comment to explain an answer he wrote that compares Machine Learning to Statistics:
I'll argue th... |
I understand that response variables are dependent on predictor variables.
For an easy case like Baking a cake, we know that Baking time, oven temperature are predictor variables while Moisture of the cake, thickness of the cake are dependent variables.
However in the following example, I find it very tricky to distin... |
Suppose I have an interval censored survival model in which each interval is a month long period, and there are twelve intervals (i.e. one year total). Also suppose that this model has been trained and tested with good results. Now I collect new data in real-time, meaning that I collect data for each month sequentially... |
I have a dependent/response variable that is categorized into 7 different levels with 1 being least significant and 7 being most significant. I have 20 plus independent/predictor variables that are nominal, ordinal, interval and ratio data that I want to utilize. I know I cannot use regular logistic regression because ... |
What are some names for the Markov Chain
$$
X_{n+1} = X_n?
$$
I have heard this called a "maximally uninteresting" Markov Chain. Are there any other names? Something cooler-sounding than "constant" Markov Chain.
|
I am currently writing my Master's Thesis and I have a question in regards to the Kolmogorov-Smirnov test (ks.test in R), Anderson-Darling test (ad.test in R), and Wilcox/Mann-Whitney U test (wilcox.test in R).
With KS and AD I am testing whether two samples are drawn from the same distribution and with the MWU test I ... |
I have plotted the boxplots of the distributions of certain groups and I was bewildered to see that the means appear outside the boxplots. How could this be explained?
Since boxplots are a mainstream visualization technique of distributions, I felt that my question fit the scope of this Forum.
My code is the followin... |
I have a dataset of n = 55 samples with 300,000 - 600,000 features for each sample. I am trying to train a model (ksvm classification) to predict the class of each sample. N = 26 of the samples are class 1, N = 29 are class 2.
Due to the large number of features, I planned to pre-filter the features to include only f... |
In manifold learning such as Laplacian Eigenmap, a common method of obtaining the similarity matrix (that measures "affinity" or "connectivity") is to use Gaussian kernel in terms of the data points' Euclidean distances.
Question = can I use distance covariance or distance correlation instead of Euclidean distances?
... |
Let's say one has a univariate Gaussian distribution with mean $\mu = 0$ and standard deviation $\sigma$.
It is easy to see that the distance from $\mu$ to +1$\sigma$ is...well...$\sigma$.
Let's now say we have a bivariate Gaussian distribution with
$\vec{\mu} = {[ 0 \space 0]^T}$
and covariance matrix $\Sigma =
\beg... |
One commonly given reason to use mixed-effects model rather than a fixed-effects model is “the assumption of independence of errors does not hold in a multilevel structure, this will cause the standard errors of regression coefficients to be wrongly estimated”. Is this what is also referred to as “non-sphericity”?
But... |
I tried to estimate parameters for the AR(1) and MA(1) models. I got 0.342 for theta and -0.343 for phi (coefficients of AR(1) and MA(1) respectively). The residual ACF for both the models was also the same.
My question is if this is possible? Or that I have an issue with my Matlab code?
|
I am trying to do a one way ANOVA and having some difficulty proceeding it. Among all the assumptions, I am stuck with these two: normality and equal variance. My questions are,
My independent variable has 4 categories. The normality assumption is satisfied for two of the 4 categories. I read that ANOVA is quite
r... |
In section 6.2.2.3 of http://www.deeplearningbook.org/contents/mlp.html, the author says
"More rarely, softmax functions can be used inside the model itself, if
we wish the model to choose between one of n different options for some
internal variable"
I'm trying to think of an example of when one would want to do... |
Suppose we have a base set $[1;n] \subset \mathbb{N}$ of size $n$. From this set $m$ numbers $S = (i_1,i_2,...,i_m)$ are picked. The same number may be picked multiple times. $m$ may be greater than $n$ or not.
It is conjectured that the selected numbers were chosen randomly, i.e. with evenly distributed probability an... |
I have a series of classification tasks at hand and as a final step, I need to build a classifier for a particularly small dataset. This dataset has 9 features and the class is binary while having only 65 instances.
This is the procedure I followed:
Splitting the 64 instances into a train and test set using a 90% / 10... |
I am looking through an example (found here https://answers.yahoo.com/question/index?qid=20080303223718AA2T5qI) on the central limit theorem. I understand most of the best answer and am able to follow how they derive most of the numbers. What I am confused on is where the numbers for this line (= 0.8286574 - 0.1713426)... |
I have a one dimension weather temperature data and I need to split into 7 clusters(maybe less). Temperature data in the very low end and high end is not as common as middle range values. So using kmeans might violate its assumption that each cluster need to be relative equal sized. But hierarchy clustering dose n... |
Basic regression model question.
Suppose I treated 3 groups of mice, group 1 with water, group 2 with drug A, and group 3 with drug B. The water treatment thus serves as baseline.
Now my question is what is a more appropriate linear model to use in order to assess the effect of each drug relative to the water treatment... |
I'm training a random forest model to predict a categorical outcome. Is there any way I can make the model apply four methods of sampling without having to write four separate codes (one for each sampling method)?
My code is as follows:
set.seed(17)
ctrl = trainControl(method = "repeatedcv", number=10, repeats=3, sampl... |
Is it the same to estimate the time fixed effect by the within estimator and by simply adding time dummies in my regression equation? Why would that be the case mathematically?
edit
$$\text{Y}_{ist}=\gamma_s+TFE+\sum^m_{\tau=0}\delta_{-\tau}\text{D}_{s,t-\tau}+\sum^q_{\tau=1}\delta_{+\tau}\text{D}_{s,t+\tau}+\text{X}... |
I have a dataset with colliding labels (class noise). It has only two (integer) features, one of which is fairly correlated with the output. I am trying to get TensorFlow to optimize the coefficients but it performs so poorly, I think the accuracy is wrong or this is somehow something that tf can't really do. I dumbed ... |
I am trying to get a word2vec embedding of a given phrase using an LSTM RNN encoder.
For example, "How are you?" => [some word2vec representation]
I have pretrained model of word2vec(i already wrote an implementation for this) which gives me the word2vec of words but I am not sure how to get the word2vec given a phras... |
I have an independent variable with the following distribution:
Can I use this variable in linear regression? If not, can I transform it in any way?
|
What is $P(Z^2 < 1)$? I'm not sure what I'm doing.
I am thinking that the way to do this is just apply algebra inside the probability operator and find $P(Z<1)$ by the complement rule. $(1-P(Z > 1))=(1 - .1587)=.8413$.
|
I am using the sjPlot package to estimate my multilevel model and I am loving it. However, I am a bit confused by the output of the random intercept.
Background:
My dependent variable is on a scale from 0-100. I fitted a model with lmer with some individual level variables that are all group-mean centered and a random ... |
I've read through Hazan's paper on online convex optimization. I don't quite understand why the regularization term must be strongly convex instead of more relaxed condition such as strictly convex.
https://ie.technion.ac.il/~ehazan/papers/shalom.pdf
For instance, we want to compute $$x = \text{argmin}_{x \in X} {f^Tx ... |
I’m doing my VAR regression with panel data on stata 12, but I face a problem with observations that are in negative value when generating logarithms. All the negative variables are missing after transformation in Logs.
Is it normal or I have to correct this!
Can I have a advice?
Thank you!
|
I'm currently playing with auto-encoders, so the question is more about research than practical implementation. I know that if I reduce capacity of auto-encoder by making hidden layer smaller, I'll get some kind of factorization of the input (adding noise is more effective, but let's forget about that for a while).
Ho... |
For example, I got an address feature like '32, 5th Avenue', and I could map it to a new feature as '5th Avenue' by only considering about the street part. The latter one will have far less possible values than the origin one. My question is will it perform better in a classification model, especially the tree models [... |
I'm trying to solve for confidence interval for the difference in means and i was given two sample sizes, one less than 30 and the other greater. i dont know if this requires a t test or z test. which is appropriate?
|
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.