I have this line here
$\overline{X}$ = $\sum_{i = 1}^{n}$ $\frac{x_i}{n}$
that gives me

How should I modify my code to display the equal sign between i and 1?
\documentclass[paper=letterpaper, fontsize=11pt]{scrartcl}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fourier}
\usepackage[francais]{babel}
\usepackage{amsmath,amsfonts,amsthm,amssymb,mathrsfs}
\usepackage{graphicx}
\usepackage{lmodern}
\usepackage{enumerate}
\usepackage{float}
\everymath{\displaystyle}
\begin{document}
% PROBLEME 1
\section{Question \no 1 :}
\subsection{Représentation par histogramme et diagramme de Tukey}
\subsubsection{Représentation par histogramme}
\subsubsection{Représentation par diagramme de Tukey}
\subsubsection{Commentaire}
%------------------------------------------------
%
\subsection{Analyse des données des notes}
$\overline{X}$ = $\sum_{i = 1}^{n}$ $\frac{x_i}{n}$
\end{document}






\documentclass{...}and ending with\end{document}. The code you presented has couple issues, it would be better to write it as$\overline{X} = \sum_{i = 1}^{n} \frac{x_i}{n}$(i.e., don't enter and leave math-mode with$between parts of the expression). – yo' Aug 12 '14 at 16:18lmodernandfouriermakes no sense. Either you wantfourierorlmodern, not both. The\everymath{\displaystyle}bit has nothing to do with the issue, but is definitely not recommended. – egreg Aug 12 '14 at 16:52