instruction
stringlengths
9
38.7k
I am recently working on Missing Value Imputation. The dataset I am using is Mammographic Mass data set found from here. Now, the dataset contains missing values in multiple columns. I need some ideas how I can build a model or use any technique to impute the missing values.
When you have a posterior that looks like as one step in Gibber Sampler $P(\xi | \Sigma_\xi, \theta) ∝ exp\{-1/2 \xi\Sigma_\xi^{-1}\xi\}P(data | \xi, \theta)$ Do you always assume inverse Wishart for $\Sigma_\xi$? $\Sigma_\xi^{-1} $ ~ $Wishart(\nu_n, \Delta_n)$ where, $\nu_n = \nu_o + N$, and $\Delta_n^{-1} = \Sigma\x...
I see a lot of examples using MCMC to solve for posterior distribution when the likelihood is simply one of linear regression. What if the likelihood is an ugly, complex function. Which R package can solve a problem like that? It is a Gibbs sampler problem, because there are a number of RVs involved, and must be sampl...
In most of the literature, it is emphasized that the L2 norm (MSE) gives a higher error when dealing with outliers compared to the L1 norm (MAE). But what happens when we normalize the data between 0 and 1? Doesn't normalizing the data reduce L2's sensitivity to outliers since it will have to calculate the square of v...
This may be a naive question, but I'm looking at the Newton Raphson iterative approach ( i.e. using the formula $\boldsymbol{\theta }^{(j+1)} = \boldsymbol{\theta }^{(j)} + \textrm{Hess}_{-\ell}(\boldsymbol{\theta }^{(j)})^{-1} \nabla \ell(\boldsymbol{\theta }^{(j)})$ until you have convergence) to finding the MLE, and...
I an newbie to the statistics and probability. I have been working on Latent Dirichlet Allocation - Topic Coherence Optimization. As a part of my research work, I have two word vectors, say V1 and V2. I have also a reference corpus with hundreds of documents. The Vector V1 is a topic with set of words. Similarly, Vecto...
We're currently planning an experiment and wondering whether this should be regarded as repeated measures. (And more generally, where the boundary between repeated measures and non-repeated measures is.) In the experiment, subjects are asked to find defects in two work-products (in counter-balanced order). One of four ...
I understand how pruning works in cross validation. But when the final tree is built, we will be using the entire dataset for tree training. How is the pruning performed then. I mean how do we see whether removing a leaf changes accuracy when there is no test dataset
So I am on lesson 1 of a statistics and probability course so be nice haha. Just learned the fair chance coin toss and about set notation so you can see my level... I am trying to attach the theoretical information to a real world situation to help the concepts stick in my head, and I just happen to be sitting at a cof...
If we consider a full grown decision tree (i.e. an unpruned decision tree) it has high variance and low bias. Bagging and Random Forests use these high variance models and aggregate them in order to reduce variance and thus enhance prediction accuracy. Both Bagging and Random Forests use Bootstrap sampling, and as desc...
I have made some research and I acquired the following data: 40 "packs" of data each "pack" contains 10 scores of variable A and 10 scores of variable B A is always 1,2,3,4,5,6,7,8,9,10 B is a measurement result and scores in 0-100% My thesis is: the higher A, the lower B. Now, having all this info, I have used Shapi...
I'm a maths graduate and I have good statistics knowledge, optimization and numerical analysis (python mainly). What should be my first step towards ML? What should I first Learn now?
My fiancee and I are discussing maternal mortality rates in the US. According to the data, from a May 2017 NPR article, 26.4 out of every 100,000 women die during child birth in the US. My fiancee wanted to put this into percentage, which is .000264%. He is claiming that using a percentage is more appropriate for this ...
Sample size = 100.I compared scores on a scale for depression and scores on a scale for disability due to pain using Pearson. I got a positive correlation. Next Using cut offs for the scale, I divided patients as depressed and non depressed. I compared mean scores on disability between two groups- depressed and non d...
I have a very hard time remembering terms if I don't at least have some idea of their etymology or what other concepts in the field they relate to. "Determination" doesn't seem to have any meaning outside of "coefficient of determination", contrary to say the "coefficient of correlation", where correlation is something...
I am trying to understand the reasoning behind the A/B testing regarding the sample size and conclusion. Example 1: We evaluate the effect of an EE activity on student knowledge using pre and posttests. The mean score on the pretest was 83 out of 100 while the mean score on the posttest was 84. Although you find t...
How to calculate sample size needed for comparing change from baseline scores for one group? Which statistic would be use to analyze the mean change?
We have a infinite population of x values obeying some distribution which is known to us. Now we am drawing 10 random samples from that population one at a time and we are creating histogram plot. Now we define two random variables as $f_{i}$ and $f_{j}$ where they represent counts (number of x data points) which falls...
I recently touch the idea of Generative adversarial networks, which is a competition between a generative network and a discriminative network. This idea makes me think of replacing the word "network" into a general machine learning model or algorithm. One thing comes to my mind is the difference between regression and...
The question is made up and was inspired by a broader somewhat similar one. Say there is a dataset, cases (objects) by binary (dichotomous) attributes (attribute either present 1 or absent 0). The cases are to undergo cluster analysis appropriate for binary data. Some of the attributes are constants - they do not vary,...
Financial returns have been shown to follow leptokutotic distributions, however volatility forecasting models like EWMA and DCC-GARCH assume conditionally (dependent on time) Normal distribution for returns. Can anyone explain why? Especially when financial return distributions are clearly not normally distributed?
In hierarchical models (HLMs, Hierarchical Bayesian models, etc.) parameters are estimated for each group: | population | |----------------+----------------+---------------| | group 1 | group 2 | group 3 | |----+-----+-----+----+-----+-----+----+-----+----| | x1 ...
Based on what I read in this (very) helpful/clear/pedagogical article ARIMA models for time series forecasting, I decided to systemize a way of specifying an ARIMA model. My algorithm actually computes the PACF of MLE-based residuals, and then (given that my series exhibits an AR signature -- indeed a first nonseasonal...
A clinical trial is being planned, in which the primary outcome is binary (success/failure). There are two treatment groups (treatment/control). The aim of the trial is to show that the treatment is better. The outcome is bad, meaning that in the treatment group, we wish to have a smaller proportion. The events of inte...
I have 3 ads with the resulting data. Ad 1, 4269 Impressions, 26 link clicks, .61% conversion Ad 2, 3155 Impressions, 12 link clicks, .38% conversion Ad 3, 2510 Impressions, 9 link clicks, .36% conversion Should I be doing a chi-squared test to understand the effect of ad copy on conversion AND then to determine the be...
I'm writing my own neural net from scratch (using Clojure). For the activation function for the nodes, I'm using the Sigmoid Function. I was messing around manually creating "trained" nets based on example logic gates from this page, and noticed that my AND gate wasn't giving me as nice of values back as I'd like. When...
I am trying to optimize a function $f(x)$ of a vector of reals $x=<x_1, x_2, ...x_n>$. In my practical application, I have no expression for $f$ whatsoever, all I can do is given a vector $x$, calculate $f(x)$ via a deterministic experiment. How do I go about calculating the gradient? What specific type of gradient des...
Question 1: Assume that in a manufacturing process, I change some parameter (X) and observe some output (Y). For example, I change temperature (X) and observe strength of part (Y). How do I test a hypothesis that (increasing X causes an increase in Y)? I thought of testing for (correlation - Rho), but isn't that just...
I have some time-series. They may be written as $$T(n)-T(n-1)=f(n)+\xi,$$ where T(n) - time of $n^{th}$ occurrence, $f(n)$ some monotonous function from number of event, $\xi$ random noise. These time series may be plotted in a following way: I am interested in $\xi$, thus I want to subtract $f(n)$. This function may...
I'm aware that there's been lots of advances with regards to image recognition, image classification, etc with deep, convolutional neural nets. But if I train a net on, say, PNG images, will it only work for images so encoded? What other image properties affect this? (alpha channel, interlacing, resolution, etc?)
I am using a particle filter to update a belief (the context is the POMCP algorithm found in Silver & Veness, "Monte-Carlo Planning in Large POMDPs"). A belief is represented as a probability mass function over states $x$ in a state-space $\mathcal{X}$. Let us denote the belief by $p(x)$. Assume that we do not know $p(...
Suppose my employer is a grocery store chain and they keep track of the satisfaction of their customers. The data is binomial; that is, all customers report that they were either satisfied or unsatisfied with their shopping on their way out. The business just finished a one-month-long pilot program at one of the stores...
I'm doing a questionnaire on whether international student grants at my college are satisfactory (or not). Instead of asking them if it's enough (which they'll obviously say no) how can I formulate a set of questions that will get unbiased answers? Perhaps the result could also tell me how much more we would adjust the...
Forgive me if this a too much of a beginner question but I am PCA algorithm on a dataset with having a hard time understanding the implemenation of PCA on a dataset with 18 features. These are the questions I have regarding this: PCA normally reduce the dimensionality from n to k. In my case, the number of features i...
Do I need to shuffle my dataset first if it does not appear randomly ordered before creating folds with createFolds in the caret package? And how could I check it myself? (look into source code or else, since I didn't find relevant info in the manual?) Thanks in advance!
I recently discovered this post "Can Principal Component Analysis be used on stock prices / non-stationary data?" which said "Principal component analysis has its nice properties under the assumption of i.i.d. observations." This confused me quite a bit. Can anyone give more details about these nice properties and how...
I'm designing an experiment and trying to do a power analysis do determine how many participants I will need for my experiment to be able to unearth a small effect size (if feasible). I am not exactly sure how to calculate the values for the parameter values that I feed into the pwr package function for linear regressi...
I am trying to solve the following problem: Choose $(a_1, a_2 , a_3 \dots)$ (this is an infinite sequence) in such a way that $$ \frac{2|a_3|^p + |a_1 + a_2 + a_4|^p + \sum_{j=2}^{\infty}|a_j + a_{j+2}|^p }{\sum_{i=1}^{\infty}|a_j|^p} $$ can come close to $3$ with arbitrary precision $\epsilon$ and so that $\sum_{i=1}^...
I have measurements $x_1, x_2, \ldots, x_N$ that have unknown measurement errors $\epsilon_1, \epsilon_2, \ldots, \epsilon_N$ but known variances $\sigma^2_1, \sigma^2_2, \ldots, \sigma^2_N$. The x's can be assumed to be drawn from a "Normal" distribution with means $\mu_1, \mu_2, \ldots, \mu_N$ with the caveats that ...
In R I'm trying to fit a linear regression with autoregressive (AR(1)) errors. In David Ruppert's book it has the following code: library(AER) library("Ecdat") library("forecast") data("USMacroG") MacroDiff = as.data.frame(apply(USMacroG, 2, diff)) attach(MacroDiff) fit1 = arima(unemp, orde...
I have a data set where I have a binary dependent variable but my predictors are mostly categorical or binary, with a couple of predictors that are continuous. The other thing with my data set is that I have squewed results in that much more of my responses are 0 rather than 1. It is however, quite a large data set. ...
I was wondering if we need to check the multicollinearity between variables when we run the stepwise regression, If yes, why? Also, If we have several IV, how we should know which interaction we should include in the model?
I have a list of categorical data and I want to apply an unsupervised classification method to cluster this data. Which method could be used? Example: gene1 gene2 gene3 gene4 gene5 gene6 gene7 gene8 My goal is to cluster these genes. Could anyone suggest me how to do clustering with these labels?
I see some implementation minimize, let's say, $\sum_{i=1}^n ||\hat{x}_i - x_i|| +\frac{1}{2}\lambda||w||^2$, I had also saw those that minimize $\frac{1}{n}\sum_{i=1}^n ||\hat{x}_i - x_i|| +\frac{1}{2}\lambda||w||^2$. Which way is preferable? I can see that they are mathematically equivalent if tuning $\lambda$ and a...
Am trying to understand the basics of mediation and am confused between an actual indirect effect and mediation effect. My query is what if A causes B and B causes C, but there is no direct effect between A and C? It is obviously not mediation given that there is no direct effect of A on C (I would like to call this an...
I'm not even sure if the title of the question makes sense... I have the solution to the following question in front of me, but can not make sense of it: Let $X_1, \ldots, X_n$ be a random sample from a distribution $\mathrm{N}(0, \theta)$. Is $\hat{\theta}_{MLE}$ a UMVUE of $\theta$? (HINT: $\frac{X^2}{\theta} \si...
To derive moment generating function(mgf) of $f(x) = 1/2 e^x $ when $x<0$ and $= e^{-2x}$ when $x > 0$, Since mgf $M(t) = E(e^{tx})$, we get $E(e^{tx}) = \int_{-\infty}^\infty e^{tx}\cdot f(e^{tx})dx = \int_0^\infty e^{tx}\cdot e^{-2e^{tx}} + \int_{-\infty}^0e^{tx}\cdot {1\over 2}e^{e^{tx}}$ But is there any way to int...
I am writing my thesis and am stuck on the data-analysis part. I want to find out how having a reservation influences revenue. I want to find out whether guests with a reservation spend more time at the table than walk-in customers, and whether they spend more money. After that I would like to find out whether the day...
I am reading the paper about Robust Sparse Principal Component Analysis. the method uses projection pursuit, and the problem boils down to optimisation of the following function: $$ \bar{a}_j = \underset{\|a\| = 1, a\perp \tilde{a}_1, \ldots, a\perp \tilde{a}_{j-1}}{\arg\max} V(a^tx_1, \ldots, a^tx_n) - \lambda_j\|a\|_...
I was reading through Stanford CS229 note and came across this loss function for multiclass classification: We have Given this, I don't really understand how minimizing this loss function would give us the correct answer.
I am new to programming as well as econometrics and would like to ask some guidance for learning. I am planning to calculate the effectiveness of a public works scheme in country A. By effectiveness I mean the rate of success by which participants were able to return to the open labour market compared to registered job...
I am trying to understand a theoretical issue about the nature of thresholds in binary classification. In medical research, cut-off points are usually chosen along the possible values of the continuous output of a diagnostic test. In these cases, interpretation is quite straightforward; for each threshold, a point in ...
I'm investigating the distribution of simple (1 dependent variable) linear regression coefficients. I've created 2 different models and I've investigated the distribution of the regression coefficients by simulating these models. $X_i \sim\mathcal N(9, 3)$ and $Y_i | X_i ∼ N(10 + 35X_i,\ 10^2)$ $X_i \sim\mathcal N(3,...
The formula for calculating the position of the whiskers is Q3+1.5IQR and Q1-1.5IQR But doesn't that mean that the length of the whiskers should be of the same length? How are they of different lengths in some boxplots?
I'm very new to R and haven't explored repeated measures before. I have three groups (morphs: br, ye, gr), and multiple response variables that I measured over time (0hr, 1hr and 24hr). My sample sizes are low, with just 3 samples per morph per time point. The samples of the different morphs were taken from 9 individua...
I have the follow problem: I need a statistical model or machine learning method that allow me to parameterize a probability distribution into a finite number of parameters $\theta$. That's mean, given $\theta$, I would get the distribution function $F_\theta(x)$ over $\mathbb{R}$. But I still need the following featur...
I have a categorical variable, country which takes on values like India, US, Pakistan etc. I am currently using a linear SLM for a classification task. So my country value varies from 1-20. How should this be a feature in the classification task. Should i have a one hot vector like (1,0,0..) for us and assign this vect...
I'm probably missing something very obvious, but I don't seem to understand in what cases does the AUC (area under the curve) actually matter. From what I gather, AUC is basically using a range of possible thresholds and then averaging them, differently from for example F1 that always uses a threshold of 0.5. I get t...
I'm a PhD stats student. I'm working with a data set of count data. It's counts of users who are involved in an n-way real time chat conversation. The # of users range from 1 to 6 and there are approx 300 pieces of data in the set. My initial motivation was to understand if the data would fit a Poisson distribution, my...
I modified this question to be more specific. I'm fitting a ARIMA-GARCH model to my hedge fund index daily log return series. I used ACF, PACF, Ljung-Box test and Archtest to check for autocorrelation and conditional heteroskedasticity. As the ACF and PACF for return itself don't show significant autocorrelation, (but...
While reading about reinforcement learning, I saw that this is a prediction method, somewhat similar to Monte Carlo. What is an example of it?
I'm a rookie in statistics, but just wrapped up a semester of R analysis for natural resources. I'm working on my grad capstone and hoping I might be able to get some help generating ideas for worthwhile analysis to answer the following questions: ****Changes in Run Timing**** I don't have any effect for this question,...
I am trying to cluster my dataset with 15 clusters. As the original labels and the output labels of the K-means algorithm may be different, I am wondering how to find the accuracy. I am using MATLAB kmeans inbuilt library function.
I wanted to know how much of machine learning requires optimization. From what I've heard statistics is an important mathematical topic for people working with machine learning. Similarly how important is it for someone working with machine learning to learn about convex or non-convex optimization?
I have data set of different school in a certain area to assess the cause of reason behind student's cause of failure in the English exam. Data set has several kind of variable like continuous, categorical, variable with percentage value 0 to 100 etc. DV : Percentage of student pass in the English exam (0 to 100) IV :...
I am building a simple recommender system using recsys libraries. http://ocelma.net/software/python-recsys/build/html/quickstart.html Rather than "ratings data" I simply have implicit feedback of sales (binary 0 or 1) for each items for each user. Is it as simple as interpreting my rating as "1" for items where a sale...
I am trying to recreate Figure 2.4 from Elements of Statistical Learning, which shows the training error rate, test error rate, and optimal Bayes error rate for binary classification using $k$-nearest neighbors for various values of $k$ in $[1,150]$. The problem is, my test error rates are way too low and are below the...
I'm interested in the distribution of the logit transform of a $Beta(\alpha, \beta)$ random variable; that is, the distribution of $X$ where $Y\sim Beta(\alpha, \beta)$ and $X = {\rm logit}(Y)$. I've derived the PDF of this distribution as $$p_X(x;\alpha,\beta) = \frac{1}{B(\alpha,\beta)} \left(\frac{1}{1 + e^{-x}}\ri...
I am doing a road segmentation task for high resolution images. I have three different data sets: Around 100 with extra high resolution with the ground truth. Around 500 images with slightly worse resolution and groundtruth we extracted ourself, making it a little bit worse as well. About 2000 images with very bad r...
Context of Problem I am trying to troubleshoot communication issues between process sensors of a large manufacturing company. I have been given 1-year worth of data for 1,000 distinct processes (observations), as well as signals coming out of sensors at each plant.The company uses 10,000 different sensors across differ...
The WIKIPEDIA Page on Bayes Factors, quickly mentions something that caught my attention. The exact quote from WIKIPEDIA is pasted below this post. Specifically, I'm wondering if there is any property attributed to bayes factors that has made the Wikipedia page to say that $Bayes~Factors$ are known to have lower Type I...
With the following box, you have to get from point 1 to point 2. You can move up, down, left or right. The borders and the X squares are objects that you are not allowed to get through. ------------- | | | | 2| ------------- | | X| | X| ------------- | 1| | | | ------------- Every time I move I get 80% chance ...
I'm doing scientific research on wastewater viral concentration methods. My goal is to determine the best method out of 3 methods used throughout literature and show that the results are statistically significant. Though I also want to compare these methods to no concentration, supernatant only and pellet only. So in t...
One approach to model comparison in a Bayesian framework uses a Bernoulli indicator variable to indicate which of two models is likely to be the "true model". When applying MCMC-based tools for fitting such a model, it is common to use pseudo-priors to improve mixing in the chains. See here for a very accessible trea...
This isn't completely clear to me. Say you have a massive passage that you want your LSTM to learn off of, how is it making sure it doesnt remove details from the first paragraph?
From Tensorflow docs, we can use transfer learning for object detection when you run from cloud. Also, can we using transfer-learning for running locally ? i see that we have a doc about running on local but i can not find any documents that write about transfer learning when run on local machine . I expected it in pip...
I have two groups, Group 1 and Group 2, where the distribution of var is quite different. However, Group 1 has much more people than Group 2, and the support of Group 2 is a subset of the support of Group 1. That is, for every person in Group 2 with a given value of var, I would expect there to be a person with ne...
In the NB classifier, we have instances with $n$ attributes ($x = (a_1,\dots, a_n)$) values in a finite set $V$ and we want to find the most probable classification (max a posteriori classification) \begin{align} v_{\text{MAP}} &= \text{argmax}_{v_j \in V} ~P(v_j|a_1,\dots,a_n)\\ & = \text{argmax}_{v_j \in V} P(a_1,\do...
I am struggling with some analysis I'm doing and would appreciate some insights: I'm measuring people's dependency on "Environmental attitude" (DV) on the number of hours of sports activities they are doing "out in nature" (IV 1) and inside a building (IV 2) [the data is from a survey N~500). When I run a linear regres...
I was going through a tutorial on coordinate descent algorithm available on https://en.wikipedia.org/wiki/Coordinate_descent. The tutorial begins with "Coordinate descent is a derivative-free optimization algorithm." However, in the pseudo code, there comes a derivative term in the weight update equation (see figure). ...
I am trying to find the relationship between price of an airplane ticket and multiple variables like (how early you can book the ticket, the season of flying, the day of week of flying, minimum stay, one-way or return). The Goal is to have an total average ticket price and the price effect of the variables. I have the...
I am using an ensemble of rf,knn,xgboost and logistic regression to predict final probabilities. I am taking weighted average of all the prob predicted by individual models. I would like to know wouldn't this cause overfitting and I wont be able to generalize this for some other test set? As I am taking average of prob...
This is one of the questions asked in the swirl package of R. One of my students however, has pointed out that the correct option of this question is the wrong answer. His assertion is that the correct probability is: 18/36 + 10/36 - 6/36 = 22/36 Instead of, 18/36 + 10/36 - 4/36 = 24/36 His point seems correct, since t...
This might seem like a trvial questions to some but sadly not me. My dataset has heteroscedasticity and therefore I use a heteroscedasticity consistent standard error estimator (I use the RLM macro by Andrew Hayes in SPSS) for my analysis. Now I also look at a subset of my data (59 datapoints, complet set 950 datapoint...
I have a dataset about the functionality of rural water supply points (boreholes etc) and I am undertaking a logit regression. My independent variables of interest are the type of water point (about 5 categories) and the year of construction (1950-2016, so I consider this as a continuous variable). The dependent variab...
So I am asked to fit a logit model using the method of least squares in connection to logistic regression. Let $\pi(x)=\mathrm{P}(Y=1|X=x)$ be the probability of success of a binary response variable $Y$ for a given $x$. Then it is established from the differential equation $d(\pi(x))=\beta\,\pi(x)(1-\pi(x))dx$ that th...
This is from Psychological Science 22(11), p.1363: If an analysis includes a covariate, authors must report the statistical results of the analysis without the covariate. Reporting covariate-free results makes transparent the extent to which a finding is reliant on the presence of a covariate, puts appropriate ...
I have seen a few useful examples on the SKlearn documentation page where in some situations, over-fitting can be handled to a reasonable extent by making sure that the splits leave each node with at least a certain number of samples/observations. I'm assuming other software packages, like R, have this feature too, I ...
There are a number of good Q/As about log-linear models (i.e., here). The data I am analyzing is off shifts between categories, 0, 1, 2, 3, 4, and 5, within students, in that Var1 represents a student's category at Time 1, and Var2 represents a student's category at Time 2. I'm trying to use a log-linear model to analy...
I have the following hierarchical model: $y_{i} = \alpha + \beta_{i}x_{i} + \varepsilon_{i} $ where $\varepsilon \sim N(0,\sigma^{2})$. $\beta_{i} \sim N(\gamma x_{i},\sigma^{2}x_{i}^{-2})$ Knowing this information I would like to understand why we can redifine the prior of $\beta_{i}$ as following: $\beta_{i} =...
Can I get any statistics or plots on numbers of users visiting a website before and after adding a pop-up or notification on their website which regularly asks users for filling some details in profile etc. just like on LinkedIn. Edit: I just want to know whether the number of users increase (due to reminding them ofte...
I followed Tensor flow for poets and classified images into 4 categories c1,c2,c3,c4. Now I have lot of images whose category is not known but I know for sure that those images falls into only one of the four categories. And also I know some images will no fall in to c3 and c4 for sure. ANyway can I use those clues an...
Is it possible for all the sample values to lie within 1 standard deviation of the sample mean? (Given that the distribution is normal) Would like to know the answer both in therms of Theory and Practically.
I am very new to the concept of regression. While going through an R output for a multiple regression I came across a set of estimates for the slope and got interested to solve for the same. for 2 independent variables the formula derived from the covariance matrix works fine but the trouble starts while solving it fo...
We calculate power in hypothesis testing as 1-beta (probability that null hypothesis is false given that alternative hypothesis is true). As this probability increases, power also increases. By similar relationship can't we say that power could also be calculated as equal to alpha( probability that null hypothesis is r...
I would like to check in Python if a time series is stationary. I have the following variables: a=np.array([1.003012239,0.995837317,0.991792465,0.993738715,1.000136408,1.004957838,0.995088793,1.000531886,1.00143537,1.003889035,1.004658898,1.003711617,0.994557676,0.991662887,0.992302628,0.992792462,0.994133425,0.997536...
I'm trying to predict an article's page views based on its content and a bunch of other factors. Everything except for the content is numeric (e.g. time of day, length of title, length of article). I was reading about one-hot encoding and it seems I can treat the textual content of the article as a "bag of words." Th...
I am using Poisson regression to relate road crash data to road geometric characteristics. Why should the variance equal the mean in Poisson regression? Thanks in advance
I have time series data that reflects users activity on some platform, and it has clear daily seasonal pattern. I understand that in order to fit a model such as ARMA to this data I should first detrend it and remove its seasonal component, which is commonly performed using differencing. This should leave me with a tim...
This is a matlab code that could generate a random walk in two dimensions of length 1000: xy = cumsum (-1+2*rand(1000,2),1). The 'stepsize' is between $[-1,1]$. In this case, we are talking about the set of real numbers from $-1$ and $1$. The rand function in this case generates numbers between $(0,1)$ over a uniform ...