instruction stringlengths 9 38.7k |
|---|
It is well known that outliers are heavily punished if the error is squared.
Someone please explain with a simple example how this is the case? Please compare this with absolute error.
I am going through this document.
In page 10, section 4.3.2 Regression with Other Loss Functions, it is mentioned that outliers are h... |
Is there any statistic or method which could describe how much a distribution deviates from the normal distribution? I want to test if my data is normal or not at some level of significance, and I have huge many of samples, I am wondering if there is any quantitative way to test it on my computer. Thank you very much.
|
I have a decision tree built in R using rpart() from rpart package.
However, when following the nodes, we have one condition leading to both outcomes as GOOD. This is weird for me.
What does that mean? If the customer have AccB < 3.5, then he/she is a good customer. If not, he/she is also a good customer? Shouldn't th... |
I have created a logistic regression model using statsmodels in python.
My model has 5 input variables that characterise properties of hillslopes (e.g. mean slope angle, curvature etc) and these are related to a measure of stability.
The number of model inputs stays the same each time. BUT I change the slope size (its... |
Background
I'm studying common coincidences and "near" coincidences that nevertheless (unduly) impress the average person. The below question is an extension of the famous Birthday problem, which asks "How many people, randomly chosen, are needed for there to be a 50% chance two of them share the same birthday?" The ... |
I have Latitude ,longitude and timestamp of image. I want to cluster these image according to detect events. For instance I went to Paris for 4 days then london 3 days and so on. So I want to detect cluster of Paris data and after london.I want each event to be seperated. How can I use this Latitude ,longitude and time... |
I have car accidents data and related weather information. To keep it simple data looks like that:
accident_datetime | accident_zip | weather_condition (sun|rain|fog|snow)
I want to visualize correlation between number of accidents and weather condition. I would go with average number, let's say when it snows ther... |
I have blood sugar values for diabetic patients over the past few years from a clinical practice. Half way through the observation period, a treatment intervention was applied to all of the patients. My data consists of multiple blood sugar readings per person, both before and after the intervention.
I would like to co... |
Suppose that we have four possible events $e_0, e_1, e_2 $ and $e_3$. These event are exclusive $e_i \cap e_j = \emptyset$ and exhaustive $\cup e_i = \Omega$. Now we ask two experts on their opinion as to the probabilities of the individual $e_i$. We get the results in the following table:
There are numerous ways to c... |
I am trying to predict CTR (which bigrams increase/decrease CTR) on a document term matrix (built on bigrams and term frequency weighing) and building a generalized linear model where I have transformed the dependent variable to logit function (log(CTR/(1 - CTR))) since initial CTR is a bounded function 0 to 1). Then, ... |
What type of measure would a variable containing only means be? Would it be a scalar variable? This variable was created to combine several other variables and make it continuous. These variables were all asking for a ranking on several different categories but over the same topic.
|
I need help to understand how R computes the adjusted value when I use the quasi-likelihood distribution and complementary log-log link with variance function mu(1-mu).
My data are rates from continuous numbers (mycelial grow [cm] in treatment / mycelial grow [cm] in control) with outcomes (0< y < 1). My coefficients... |
As an exercise to learn how to manually code MCMC, I've built a Metropolis-Hastings sampler on top of a multinomial-Dirichlet posterior distribution. Since a closed form solution exists, I can compare results from the MCMC with simulations from the actual posterior distribution.
I'm using a Dirichlet proposal distribut... |
Let's assume that you saw your cousin flipping the coin 20 times and he got 12 heads and 8 tails. You see your cousin flipping the coin 20 more times and want to test if the coin is fair or not.
Let's consider the following two cases:
1) the cousin flipped the coin 20 times (didn't care how many heads or tails come up)... |
When imputing a missing value (in my case using MICE) - should I use all the variables in the dataset or should I use only the variable which correlate most with the missing values I want to impute?
Thank you!
|
tldr: ANCOVA shows you a main effect for your IV across all levels of the covariate, while removing variance attributable to the covariate. Regression shows you the effect of the IV at the reference level of the covariate plus interaction term(s) for the other level(s). In the case where the outcome is dichotomous, is ... |
When designing RNN's to predict the next time-step ahead, I've come across architectures where you train with say n timesteps as input and n timesteps as output (at t+1).input: (X(1), X(2)...X(n))
outputs: (X(2), X(3)...X(n+1)). So you have a many-to-many architecture - e.g. here.
I've also seen for the same kind of ... |
I would like to match two schemas coming from different sources (DB). For this I would like to try some machine learning algorithm to come up with a process to decided which column in a table could correspond to the same key. For example it's very likely that FNameand FirstName should be a match and correspond both to ... |
My DV is count, obtained from psychological questionnaire (14 questions with options ”Yes”/”No”, each yes is 1 point, thus overall result is count of yeses).
I’ve checked that Poisson distribution isn’t exactly what I’ve got (data is a bit overdispressed) and NB fits better (in comparison to Poisson – log likelihood is... |
I have a dataset of roughly 2500 people. One of the variables I have is the number of days people shared different types of content on a social media platform. The most frequent value is 0, with low means and variance about double the mean. The range is also extremely high. I would like to test whether or not a number ... |
First time poster and I apologize if the question seems basic but I have searched far and wide seeking the right answer but haven't come across it. Could even be a very basic yes/no. I am currently building a model for a project to predict churn in a f2p mobile game, meaning players can choose to spend money if they wi... |
I have 10 studies who look at a surgery for facial paralysis. The main outcome is time to nerve recovery. I have the mean, SDs for the time in months to recovery but obviously there is no control or baseline data. Do I just use zero for the mean and SD for my pre-op values? This gives me a weighted average which is ess... |
I am trying to evaluate the impact of an intervention (0/1) on readmission rates pre- and post-intervention. Every individual has a pre-period rate and a post-period rate.
A few important points:
1. The duration of time that each patient's post-period rate covers is variable (between 90 days and 500 days). This is beca... |
Assume 10 signals are transmitted each day derived from the same distribution randomly, and as such are considered independent from each other. Each signal is measured by 10 different monitors each adding a noise to the signal. Are the set of 100 measurements mutually independent and pairwise independent? Are there ... |
I am working on a Biology study and myself and a fellow colleague have looked at various patient medical images and we have computed a clinical score based on the pathology noted on the images. This score is in the range 0-9 (where lower values indicate remission and higher values indicate severe disease).
On top of th... |
I am struggling to determine if using a repeated measures ANOVA for my data is the best analysis, and unfortunately my adviser has not been much help. I measured luminosity of various fungal isolates at 14, 23, and 32 days post inoculation. Isolates were generated from five different parental sets: bright72, bright88... |
I am a computer science student and I am currently studying (for fun if you could say that) during my college break, I was implementing a simple program to calculate pi using the Monte Carlo method by counting the points inside a circle,it worked as it should, the I thought if it would be possible to do the same using ... |
In the book Bayesian Data Analysis by Gelman et al. (3rd edition, 2014), a hierarchical model (or one-way random-effects ANOVA) is presented in section 5.4 as follows,
\begin{equation}\label{eq:lme1}
y_{ij} = b_0 + \lambda_i + \varepsilon_{ij},
\end{equation}
where the data $y_{ij}$ come from the $i$th measuring en... |
I am wondering if anyone would have a succinct way of describing the differences between the two. My understanding is that the Fisherian way is non-parametric and relies on the randomization test to conduct inferences while the Neymanian method utilizes a distribution is an appeal to the central limit theorem for a Nor... |
My question: What is the most appropriate way to analyse cases in which two variables and their ratio are all believed to influence some outcome? I would ideally like guidance in a regression framework, but am open to other approaches as well.
Background: In the fields of oceanography & limnology, the Redfield ratio ... |
Is this expected from Gaussian Mixture Model? Given a perfectly homogenous dataset, the cluster center is not exactly the same as the data point?
//Create a vector (180,3)
val v = Vectors.dense(180.toDouble,3.toDouble)
//Create an array with all the elements set to 'v'
val tVrdd = sc.parallelize(Seq.fill(1000000)(v))
... |
I am working on a classifier that is supposed to do binary classification on a dataset includes 5996 examples. ~800 of this examples belongs to class 1 and the rest is class 0. Since there is a huge gap between the examples, I have used SMOTE with tomek and een which applies over sampling and under sampling. The proble... |
I am wondering if there is a direct relation between a Randomized Control Trial (RCT) and an Observation Study in terms of the treatment assignment mechanism or the propensity score. It seems in an RCT, certain conditions are listed, such as the propensity score/assignment mechanism being between 0 and 1:
$$
0 < P(Z_i|... |
I'm (very new, and) struggling to improve the accuracy of a simple neural network to predict a synthetic function.
I started from a neural network to predict sin, as described here: Why does this neural network in keras fail so badly?. I got this working perfectly, but I cannot get the solution to adapt to my own func... |
Consider three different studies based on three different datasets. Each of them has a continuous predictor x, a dichotomous predictor z, and a continuous outcome y.
In each of these three studies, researchers analyze the x*z interaction on y.
Here are three reproducible datasets that meet these criteria:
# generating ... |
How can I decide about the optimal number of components in Principal component analysis when I have mixed data of of categorical and continuous?
I'm using package PCAmixdata for PCA and I wish to know the number of optimal components. in this package we can have he PCA metrics by using the following forumla:
obj <- P... |
I'm wondering is it reasonable if I use the fix training set, and instead have 10 different subsets of validation set with the same size?
So, I separate 70% of original dataset and estimate my model once, then I draw 10 random subsets with the size of 20% from the leftover which was 30% of whole data.
Does it seem a c... |
I have an array of a million float values, and I seek to identify regions of abnormally high values.
For instance, within [0.39, 0. 41, 0.4, 0.67, 0.7, 0.8, 0.37, 0.49], [0.67, 0.7, 0.8] constitutes a region of abnormally high values.
Are there standard algorithms/methods for addressing this type of problem? I was thin... |
I downloaded the 2013 dataset from Kyoto University.
My question is this: how will I know if I should [feature] scale or standardize my data?.
Thank you in advance!
UPDATE 07/13/2017a
This is the script I wrote for getting the data summary using pandas.
UPDATE 07/13/2017b
Here's the data summary, with description of in... |
I want to test the correlation coefficient (i.e. |ρ|=1) that the relationship among variables is deterministic. If sample correlation coefficient ( r=0.93) can i test this value ( 1-r=1-0.93=0.07) using t-statistic ((r√(n-2))⁄√(1-r^2 )) with the statement that the relationship among variables is stochastic (i.e. ρ=0) o... |
Given that what a p-value tells us is the probability of observing the data assuming the null is true, should we ever use null hypothesis significance testing (NHST) when we would rather accept the null hypothesis?
Take the Shapiro-Wilk test through which we might want to establish the normality of our data. Given a p-... |
I know that $\left<x\right>$ is 80. But when it is written that $\Delta x/\left<x\right> = 0.2$, I don't know immediately how to do a sampling of $x$, since standard deviation is mostly written in $\sigma$ but not $\Delta$.
Does this mean that the distribution of $x$ is a normal distribution? Also does it imply the sta... |
The context is this - I'm considering doing a part time PhD in statistical learning and today I've met up with a prospective supervisor who suggested that I think about causality in machine learning as (in his words) a lot of people are doing deep learning/neural network stuff and less so in time series learning and ca... |
Hypothesis testing is akin to a Classification problem. So say, we have 2 possible labels for an observation (subject) -- Guilty vs. Non-Guilty. Let Non-Guilty be the null Hypothesis. If we viewed the problem from a Classification viewpoint we would train a Classifier which would predict the probability of the subject ... |
I have data for 200 patients' blood sugar levels before and after an intervention. There are multiple readings both before and after the intervention.
In order to see if the intervention had a significant effect on the blood sugar, I plan on doing a paired t-test on the means of each persons levels before and after int... |
I am researching a framework using regression analysis. With the beta coefficients I now want to calculate the correlation between my variables with the influence of another.
So I have the beta of 0,465 of the independent on the dependent variable with a sample size of 176; additionally another independent variable ha... |
I have an issue which I would like to seek some feedback on:
In conventional machine learning we attempt to maximise the accuracy and other metrics of our models, and are generally satisfied with over 80% accuracy.
Problem
However, what if the requirement is instead:
For any new input, if you're absolutely certain of ... |
I am referring to a previously asked question on my case for gene enrichment analysis using hypergeometric distribution. Here is my modified question (many thanks to @Glen_b):
I have a mixture of 1496 genes (population size) which 150 (successes in population) of them are tumor suppressors (TS). I have a presumed algor... |
I'm reading Baxter's "Introduction to Financial Calculus" and he defines a stochastic process as a continuous process $X_t $ that can be written as
$X_t = X_0 + \int_0^t \sigma_s dW_s + \int_0^t \mu_s ds $,
where $\sigma, \mu $ are are visible processes that satisfy $\int_0^t (\sigma_s^2 +|\mu_s|) ds $ is finite for a... |
I'd like to solve the heteroskedasticity in logistic regression. In my problem, I have two numeric and 23 dummies variables. I tried to transform the two numerical variables using log, min-max normalization and standard normal transformation but the model continues presenting this phenomenon. How to solve this problem?... |
I have a question regarding the ways to build a representative sample for a research study focusing on air travel passengers in 3 different world regions (NA, EMEA, APAC)
I think I should use the gender ratio of leisure and business air passengers respectively for each region when disseminating the sample / analysing ... |
I am conducting a 2 (stimulus type) x 2 (response mode) within-subjects ANOVA on Response Times on a computer task and I am having trouble making a decision about a particular kind of outlier.
I have one participant for whom each of the four means used in the analysis are not outliers.
However, the difference between ... |
I am interested in calculating the required sample size to perform several statistical tests on the same sample.
More precisely, this is the situation:
There are two groups of individuals, A and B, and we want to test whether or not they show differences with regards to several continuous (hopefully normally distribute... |
I'm struggling to comprehend the most basic of statistical examples.
Here's the setup : someone will perform three throws of a coin in a row.
The face of the coin will return either a 1 or a 0 (heads or tails if you like).
Now there are 8 possible combinations this set of three throws can turn up.
1;1;1
1;1;0
1;0;1
0;... |
The plot below was created by R package Epi::ROC for a binary classification problem. There is an optimal cut off or threshold for the classification probability at which sensitivity and 1-specifitiy are balanced in some optimal way (called ps3 in the plot). My question is how this point is defined mathematically in th... |
I want to forecast sales volume for an item as a function of some exognous features including the price of the item (daily data with daily and annual seasonality).
Sales volume is zero during public holidays. To account for zero sales on public holidays I include a public holiday dummy.
I am not sure how to treat miss... |
I would like to find out whether there is a significant relationship between No-show rates and the part of the week (weekday/weekend), this in order to be able to suggest whether restaurants should allow or not allow reservations on certain days of the week.
Am I right to think a logistic regression would be suitable ... |
I'm currently performing analysis on a dataset I've retrieved by running an economic experiment. Subjects were either in treatment 0 and 1 and had to perform 'real effort' tasks. That is, they had to indicate how many letters they wished to decode for a certain price. This price was determined by a gross value and tax ... |
Recently I was told that scientific papers in English use - log_e while French papers use - ln to denote natural logarithms.
The two notations do mean the same. But I was informed that using the notation ln for natural logarithms in scientific papers in English language is inappropriate and I should use only log_e. But... |
I have data of the following experiment: A group of 10 people performing task A six times. Another group of 10 people performing task B six times. I want to perform a statistical test to see if B is more difficult than task A, but I'm not sure what test and/or what data I should use.
I thought about using the Mann–Wh... |
The question is:
Let $Y_1,....,Y_n$ be independent random variables each with the distribution $N\left ( \mu ,\sigma ^2 \right )$.
Let:
$\overline{Y} = \frac{1}{n}\sum_{i=1}^{n}Y_i$
$S^2 = \frac{1}{n-1}\sum_{i=1}^{n}\left ( Y_i - \overline{Y} \right )^2$
Show that: $S^2 = \frac{1}{n-1}\left [ \sum_{i=1}^{n}\left ( Y_i... |
I am using R "Forecast' package for prediction of churn by including external variables.
However, in my case its bit confusing. What I expect when you introduce more titles a less people will live. In case of titles_live it shows negative sign whereas toptitles_new its positive ?
When I look at correlation analysis the... |
I am trying to train a fully convolutional neural network for 3D medical image segmentation, I have started from the architecture of this paper with the differences being that I have images of varying sizes so I train the network one image at a time (no batching) and I use relus instead of prelus as the non-linearities... |
I am reading the paper by Willemsen et al (2015), "A multivariate Bayesian model for embryonic growth", Statistics in Medicine, 34:8, 1351–1365
where they define the posterior distribution as,
\begin{multline}
p(\beta,\sigma^{2},\gamma,\Sigma_{\gamma}|y) \propto \prod\limits_{ij} N(y_{ij}|\gamma_{i2} + z^{T}_{ij}\bet... |
I am confused about the F-test value in the smoothing terms of a GAM model.
Parametric coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 0.38633 0.19362 1.995 0.0524
SexMale -0.02751 0.12968 -0.212 0.8330
Educ -0.04892 0.03532 -1.385 0.1731
Approxima... |
I am running an A/B test where I submit website visitors to one of two destinations. If the visitor converts on either of the destinations the payout is between $1 and $100. Conversions happen approximately 20% of the time. The split is random approximately 80% to the control group and 20% to the test group.
I am tryi... |
Is it a good practice to find the absolute value of the sum of weights of the features on the first hidden layer in neural network to find the importance of features using neural network ?
|
I am computing effect sizes from various studies for a meta-analysis. Most of those studies follow a typical pretest-posttest design (repeated measures), thus I compute the effect size as a "Standardized Mean Change".
I am using the metafor package in R to compute these effect sizes, but it asks for the correlation coe... |
We have a dataset that lists employers in a fairly unique industry, the number of employees they have and the breakdown of employees as male or female.
The size range of the companies in this dataset is fairly broad, so we’d like to break the dataset into four “bins” by size so we can easily see whether gender diversi... |
I have a randomForest model that performs well on my training and testing data (results of the previous fiscal year). However, I need to predict on different, more recent, data from this fiscal year.
In the new data that I need to predict from, one of the factor variables has new levels that didn't exist in the origin... |
I have a test where respondents are able to attempt each item as many times as required until they get it correct. I am looking to fit an IRT model to data from this test in order to look at the relative difficulties of different items, and how this maps onto person ability.
One possibility would be to think about the ... |
Is there a way to test whether the correlation coefficient between two variables with a shard third variable is significantly different, if the sample sizes are different?
Here is the case, specifically. Variable A and Variable B have the same number of observations, but Variable C has less. I would like to test if... |
I have some generated data that I want to follow a given Gaussian distribution $N(\mu,\sigma)$, and I would like to quantify the distance between the generated distribution and $N(\mu,\sigma)$.
Specifically, I am generating a set of atomic positions and I want the distribution of the lengths between each atom and its $... |
I have a database of labeled images of cereal boxes and am doing some object recognition, intending to do deep learning. All the boxes have similar square shapes, but have some different colors, images, fonts/text. I am looking to generate some features for the model. I have looked into HSV and SIFT features. Are there... |
I recently joined a online retail company and the way they have been doing forecasting and inventory management is not good at all and I'm working on improving the forecasting of the products. While working through the data I come across many anomalies with the data being not good for forecast.
How to modify data when ... |
I built a logistic regression model. How can I choose the optimal threshold by looking at the ROC? I want to be able to make the decision if the observation has the event.
acc = read.csv("path to data")
View(acc)
set.seed(1)
index <- sample(1:nrow(acc), round(0.75*nrow(acc)))
train <- acc[index,]
test <- acc[-in... |
There are several posts about how to select features. One of the method describes feature importance based on t-statistics. In R varImp(model) applied on linear model with standardized features the absolute value of the t-statistic for each model parameter is used. So, basically we choose a feature based on its t-stati... |
I'd like to compare two distributions of measurements for the same entities, to determine the degree to which the two distributions measure the same underlying phenomenon. For example, I'd like to compare countries in the Human Development Index to the same countries in the OECD Better Life Index to determine the degre... |
I'm looking for packages of bayesian optimization with mutual information as acquisition function.
There are many implementations of bayesian optimization in some programming languages like python, R, etc. But UCB, PI or EI are used as acquisition function in these implementation. I'm looking for packages of bayesian o... |
I want to know if sequential data changes the output of a standard (not recurrent) neural network.
For instance, let's say I have a straight line with coordinates in the format:
x: 0, 1, 2, 3
y: 0, 1, 2, 3
Now I have another straight line, exactly the same as the first one, but with the points in a different order:
x... |
Having read this link, I know that it is important to fix the CV sample using the foldid argument when tuning the $\alpha$ parameter incv.glmnet.
Question: How does one define an optimal $\alpha$?
Question: And how is the optimal $\alpha$ selected ?
Taking into account of the foldid issue, I ensured I used the same ... |
I learned about time-dependent covariates in Cox regression in R using the function survSplit of the package survival.
I use this as an interaction term for covariates which do not follow the Cox proportionality assumption which works fine.
The problem is now, that I want to make predictions for new datapoints, but how... |
I'm using the lifelines Python package to learn Cox Proportional Hazard (CPH) model. What I need now is to feed it new examples and generate the predicted hazard rate (the probability of the event occuring at time t, given that the person has survived up to time t). (BTW, sorry if I'm getting my terms mixed up between ... |
I did a logistic regression with selected covariates on a dataset with about 10000 records and event rate of 10%. The cross validated c-index was 63% which admittedly is not very high. Looking at a calibration plot the model seemed well calibrated. However, the reduction in Brier score from a model without covariates w... |
I know I can use fitted method to get the prediction of insample data . But when i print the fitted result, it doesn't give 80 and 95% confidence interval values. How do i get those values as well?
|
In the Compatible Function Approximation Theorem, the following condition is required to make the policy gradient to be exact $\nabla J(\theta) = \mathbb{E}_{\pi_{\theta}}\left [\nabla_{\theta}log\pi_{\theta}\left (s,a\right )Q_{W}\left (s,a\right ) \right ]
$.
There is a condition that the value function approximato... |
Was discussing with a friend: suppose we have one model that uses 1,000 features and another that uses 100,000 features. Assuming their first 1,000 features are the same, shouldn't the one with 100,000 features always do at least as well as the 1,000 feature model?
I say this because, if there's a correlation between ... |
I'm trying to compare pre-test responses on a 5-Point Likert item to post-test responses on (the same) 5-Point Likert Item.
The responses I observed as shown in the following table:
\begin{array} {|l|c|c|c|c|c|}
\hline
&1 &2 & 3 & 4 & 5 \\
\hline
1& 0 &1 & 1 & 0 & 0 \\
2& 0 &0 & 0 & 0 & 0 \\
3& 0 &0 & 0 & 7 & 2 \\... |
I have a question regarding PSM. I'm just starting to dive into this topic but I reached a point where I think external help is necessary.
In my regression analysis (OLS), I have an independent variable, which is a dummy to disclose a annual report or not (1/0). I want to study the characterics of the treated group (1)... |
I have the sensitivity value known as, 91%. Can we derive the True Positive (TP) and True Negative (TN) values from that. Is that possible at all?
Thanks.
|
I'm working to smooth data coming from an accelerometer using Maximum A Posteriori Estimation. Following a tutorial paper, I get this expression (a simplified version of equation 4.10 on p.34):
$$argmin\sum_{t=2}^N ||e_{a,t}||^2_{\sum^{-1}}$$
where $e_{a,t} \sim \mathcal{N}(0, \sum_a)$ and $\sum_a$ is a 3x3 covariance ... |
There's already an excellent post on standardizing values used for regression here. In this post, I am using Cox Regression (Cox Proportional Hazard model) with the lifelines Python library. Now, one way to measure the model's performance is with concordance.
I noticed that if I use the data as it is, I get a concordan... |
I am looking at how well GARCH, GJR-GARCH and EGARCH capture the volatility dynamics before, during and after the financial crisis. I also compute out-of-sample forecasts and examine if there is one model that does well in all samples or not.
However, I'm kind of stuck in my search for a benchmark. I do the same analy... |
I have psychological data that consists of series of binary choices (e.g., 1001010101) made by research subjects, where 1 and 0 reflect two different options that can be chosen.
Are there any known measures of the variation in such sequences?
For example, the sequence of 1s and 0s in 0101011010 is more variable than th... |
since in multiarmed-bandit problem, we can choose which arm to take and get the corresponding reward, however, why can't we conduct a lot of choice of each arm and estimate their probabilities of the reward of each arm just like brute force way?
|
I'm using the lsmeans R package, and I'm doing a simple pairwise comparison between two groups. Is there a way to get the exact p.value in scientific notation rather than the estimate? I've tried setting options(scipen=100000000000), without luck. It just shows 0.000000e+00 when I do so.
lsmeans(fit,pairwise~type+age,a... |
Hi I've been recently introduced to Bayesian Analysis, and Stan.
As a practice problem I was hoping to to model what is most likely average rating that a product will receive.
By product ratings I mean and integer distribution with values bounded to [1,2,3,4,5].
Initially i thought that product ratings will be best de... |
I have a model with a multi-level categorical predictor (more than 2 levels), and a continuous predictor. I am including an interaction term in the model, but have found that only some of the individual interaction dummy variables are significant.
I know that if my categorical variable had only 2 levels (one dummy var... |
Note: find_pct = ct_find / ct_rec
I want to use Fisher's exact test to decide if the apparent dip in find_pct of line 2 is real or due to random sampling. I apply Fisher's test using R to compare the ct_find:ct_rec for lines 1-2:
fisher.test(rbind(c(138,542-138), c(18,155-18)), alternative="less")
I obviously misund... |
Scikit-learn has a CountVectorizer under feature_extraction which converts strings(or tokens) into numerical feature suitable for scikit-learn's Machine Learning Algorithms.
It has a parameter like : ngram_range : tuple (min_n, max_n).
If I use :
vec = CountVectorizer(ngram_range = (1,2))
Will it incorporate Unigram... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.